|
|||||||
New to SitePoint Forums? Register here for free!
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
SitePoint Articles
Join Date: Apr 2001
Posts: 0
|
Discussion thread for Style Web Forms Using CSS
This is a dedicated thread for discussing the SitePoint article 'Style Web Forms Using CSS'
|
|
|
|
|
|
#2 |
|
☆★☆★
![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2002
Location: in transition
Posts: 21,477
|
Also, two elements with the same id, meaning that the label for Address line 1 won't work:
Code:
<tr>
<td colspan="2"><label for="address1">Address Line 1</label></td>
<td colspan="2"> <input type="text" name="address1" id="address2" tabindex="2" /></td>
</tr>
<tr>
<td colspan="2"><label for="address2">Address Line 2</label></td>
<td colspan="2"> <input type="text" name="address2" id="address2" tabindex="3" /></td>
</tr>
|
|
|
|
|
|
#3 | |
|
SitePoint Member
Join Date: Jul 2003
Location: Atlanta, GA
Posts: 3
|
Quote:
FunnyMan |
|
|
|
|
|
|
#4 | |
|
☆★☆★
![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2002
Location: in transition
Posts: 21,477
|
Quote:
|
|
|
|
|
|
|
#5 |
|
I am obstructing justice.
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jul 2002
Location: Ottawa, Canada
Posts: 1,769
|
I was hoping the article would outline more about doing form layouts in CSS. Without tables.
Oh well. |
|
|
|
|
|
#6 | |
|
☆★☆★
![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2002
Location: in transition
Posts: 21,477
|
Quote:
|
|
|
|
|
|
|
#7 |
|
gingham dress, army boots...
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Apr 2002
Location: Salford / Manchester / UK
Posts: 4,856
|
moved to CSS forum
|
|
|
|
|
|
#8 |
|
Community Advisor
![]() Join Date: Jul 1999
Location: Derbyshire, UK
Posts: 4,154
|
Personally I think the article should have addressed some of the accesability elements that are mandatory in newer XHTML standards. Such as <fieldset>
|
|
|
|
|
|
#9 | |
|
gingham dress, army boots...
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Apr 2002
Location: Salford / Manchester / UK
Posts: 4,856
|
Quote:
but yes, the article could have gone a bit more in depth on those issues. omitting fieldset is a grave sin (but i guess the aim of the article was to show styling of most existing forms, rather than teaching better ways of structuring them). |
|
|
|
|
|
|
#10 |
|
gingham dress, army boots...
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Apr 2002
Location: Salford / Manchester / UK
Posts: 4,856
|
p.s.: wasn't there an article by ian lloyd on sitepoint about accessible forms ? it seems to have disappeared...but you can find the resource at www.accessify.com
|
|
|
|
|
|
#11 |
|
Community Advisor
![]() Join Date: Jul 1999
Location: Derbyshire, UK
Posts: 4,154
|
XHTML 1.1 requires fieldset.
|
|
|
|
|
|
#12 |
|
Community Advisor
![]() Join Date: Jul 1999
Location: Derbyshire, UK
Posts: 4,154
|
Fieldset is going to become a more important element the more accesability is pushed - especially if you want to work with large clients who can't afford to discriminate against anyone viewing their sites.
|
|
|
|
|
|
#13 |
|
********* Wizard
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Aug 2002
Location: Burpengary, Australia
Posts: 4,601
|
Fieldsets are awesome
![]() Are they required for all forms? I wasn't aware of that and I have validated pages as XHTML 1.1 before, I just don't recall whether there were forms involved or not? Could someone clear this up a little please? ![]() |
|
|
|
|
|
#14 |
|
Community Advisor
![]() Join Date: Jul 1999
Location: Derbyshire, UK
Posts: 4,154
|
Well when I validated against XHTML 1.1 the forms required a fieldset else it wouldn't pass the tests.
|
|
|
|
|
|
#15 |
|
********* Wizard
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Aug 2002
Location: Burpengary, Australia
Posts: 4,601
|
Okie dokie, I'll have to remember that
![]() |
|
|
|
|
|
#16 |
|
SitePoint Evangelist
![]() ![]() ![]() ![]() Join Date: Mar 2003
Location: Melbourne, Australia
Posts: 464
|
does anyone know where i can find a tutorial that
shows how to make a form fully accessible, validates xhtml 1.1, css2? all that, especially using labels, id (using name cos id never seems to work for me), fieldsets, etc, etc. thanks |
|
|
|
|
|
#17 |
|
SitePoint Evangelist
![]() ![]() ![]() ![]() Join Date: Apr 2001
Location: Sarnia, Ontario, Canada
Posts: 434
|
Just so you know, name is still a valid attribute on form elements. It's not valid on other tags however in XHTML1.1. Form elements still require name. However, giving an id and a name to form elements is a good idea, for the label tag's for attribute points to an id, not a name.
|
|
|
|
|
|
#18 |
|
SitePoint Zealot
![]() ![]() Join Date: Nov 2002
Location: NYC
Posts: 157
|
would anyone have examples of code like this that I can look at? thanx!
I think it would have helped if were real forms rather then images of the forms... |
|
|
|
|
|
#19 |
|
SitePoint Wizard
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2004
Location: Kentucky, USA
Posts: 1,091
|
I do not know what you are talking about viT, care to explain? I've never noticed any problems with Opera's CSS support concerning forms and css...
|
|
|
|
|
|
#20 |
|
Community Advisor
![]() Join Date: Jul 1999
Location: Derbyshire, UK
Posts: 4,154
|
You've got Google auto-fill or some other auto-fill toolbar running, the yellow is basically telling you that it can auto-fill that field for you.
|
|
|
|
|
|
#21 | |
|
CSS Advisor
![]() Join Date: Jan 2003
Location: Hampshire UK
Posts: 26,617
|
Quote:
Apart from positioning and moving them around I'd advise against any styling on checkboxes and radio buttons. |
|
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT -7. The time now is 05:26.













Hybrid Mode
