473,385 Members | 1,645 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Manipulating a forms input border

I have a form with a text input field

Is it possible to specify NO border on that field? Obviosuly I tried
border="0" but to no avail.

Thanks ahead,

Dec 28 '05 #1
9 9466
Serg wrote:
I have a form with a text input field Is it possible to specify NO border on that field? Obviosuly I tried
border="0" but to no avail.


Why obviously? http://www.w3.org/TR/html4/interact/forms.html#h-17.4 shows
that the input element doesn't have a "border" attribute.

This type of presentational detail is not the job of HTML anyway, the legacy
presentational features in it have been (mostly) deprecated and only exist
in Transitional variants of the language.

Use CSS for providing presentational hints. You will probably find that the
border-style property will allow you to achieve your goal.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Dec 28 '05 #2
Why obviously? http://www.w3.org/TR/html4/interact/forms.html#h-17.4 shows
that the input element doesn't have a "border" attribute.


Obviously in the sensethat I tried the "supposed" obvious before
posting ;-)

Dec 28 '05 #3
Ok, so now working with CSS forms, the main reason is I have a
background image that I want to use within the entire form.

I was able to bring in the image using... background-image:url()

however, I need to have the size of the form match the image...so I did
set it using px. Yet it still started to tile slightly, is there a way
to say center image, rather than tile?

Dec 28 '05 #4
Gazing into my crystal ball I observed "Serg" <se****@aol.com> writing in
news:11*********************@g14g2000cwa.googlegro ups.com:
Ok, so now working with CSS forms, the main reason is I have a
background image that I want to use within the entire form.

I was able to bring in the image using... background-image:url()

however, I need to have the size of the form match the image...so I did
set it using px. Yet it still started to tile slightly, is there a way
to say center image, rather than tile?


Look at the background properties, eg. background-position and background-
repeat.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Dec 28 '05 #5
Serg wrote:
Ok, so now working with CSS forms, the main reason is I have a
background image that I want to use within the entire form.
This sounds like anyone who has graphics turned off isn't going to be able
to see the form. Not a very good idea!
I was able to bring in the image using... background-image:url() however, I need to have the size of the form match the image...so I did
set it using px. Yet it still started to tile slightly, is there a way
to say center image, rather than tile?


Look at the other background-... properties.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Dec 28 '05 #6
Thanks, slowly getting there. Is there a ONE-STOP guide for
properties?

Because for instance, trying to set the height of the input field, as
well as the font used there, and width, etc.

and while some of the other properties work, background: #FFFFFF for
instance does, font-size: does not!

Dec 28 '05 #7
Serg wrote:
Thanks, slowly getting there. Is there a ONE-STOP guide for
properties?
http://www.w3.org/TR/CSS2/propidx.html
Because for instance, trying to set the height of the input field, as
well as the font used there, and width, etc.

and while some of the other properties work, background: #FFFFFF for
instance does, font-size: does not!


That is a browser limitation. I've certainly set the font size of form
fields that way. (Of course, as form fields are replaced elements, the
actual effects that CSS should have on them isn't clearly defined)

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Dec 28 '05 #8
Gazing into my crystal ball I observed "Serg" <se****@aol.com> writing in
news:11**********************@g14g2000cwa.googlegr oups.com:
Thanks, slowly getting there. Is there a ONE-STOP guide for
properties?

Because for instance, trying to set the height of the input field, as
well as the font used there, and width, etc.

and while some of the other properties work, background: #FFFFFF for
instance does, font-size: does not!


<http://www.w3.org/TR/REC-CSS2/propidx.html> CSS2
<http://www.w3.org/TR/1999/REC-CSS1-19990111> CSS1

<http://www.blooberry.com/indexdot/css/propindex/font.htm> will also give
you browser peculiarities.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Dec 29 '05 #9
Serg wrote:
Ok, so now working with CSS forms, the main reason is I have a
background image that I want to use within the entire form.

however, I need to have the size of the form match the image...so I did
set it using px.


Are you trying to fit text into a background image, or is the image just
for decoration? If the former, know now that it rarely works. Just think
what it will look like when the visitor zooms text because your chosen
font size was too small to read. It will probably be a mess - ugly at
best, unusable at worst.

And if you're going to use that abomination called google groups to post
to usenet, please learn how to quote.
<URL:http://www.safalra.com/special/googlegroupsreply/>

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Dec 29 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Ken Fine | last post by:
I've made a content managment system that uses icons to represent page layouts. To choose a different layout, the user clicks on a radio button associated with each layout icon. On click of one of...
2
by: Richard | last post by:
**** Post for FREE via your newsreader at post.usenet.com **** HI, I am working on a project where I need to input data to a (local) HTML page using multiple form elements, such as text,...
10
by: Andy B | last post by:
Hi, I am very new to JavaScript and my first assignment is to create a simple game. Below is my code which works fine in IE, but not in any other browser (Opera, Netscape, Mozilla). It has no form...
3
by: ShadowMan | last post by:
Hi I have a big form with a lot of input fields. I would use a pretty CSS to make page more readable: - what style do you use in this case? (label strictly near input field? fixed-size label? )...
2
by: s_m_b | last post by:
<script language="javascript" src="/inc/js_popup_window.js" type="text/javascript"></script> <script language =" JavaScript" type="text/javascript"> function openScanWindow () {...
3
by: masterofzen | last post by:
Hi, everybody, Got a question that's completely perplexing me. I'm developing a site that uses a universal (or "star") selector on a global level, for many different pages. The star selector...
14
by: jcage | last post by:
Is there any tutorials online for sending email through forms? I can send an email as well as write to my MySQL database from home with the following code but not at work. I think there might be...
5
by: ankit1999 | last post by:
I have a problem, everytime i'm run this page http://click2travel.in/index.php i get the this error,,,
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.