Forum Moderators: not2easy
This is the first time I have used a fieldset for a form so new territory here.
Basically - first I want to know if it is correct - validates but that of course doesn't mean everything. Can I have a <p></p> within the fieldset?
Also anybody know how I can get the 2 fieldsets to center within the div id="form-wrapper"
Its a basic layout and no real styling but - structure first.
URL <snip>
TIA
[edited by: Woz at 6:52 am (utc) on Nov. 27, 2004]
[edit reason] no Self URLs please, see TOS#13 [/edit]
You really should edit your post to remove the URL before the moderators do it; a code snippet provides quicker info for people trying to help and adds lasting value to the forum thread.
To answer your question, yes, fieldsets can contain paragraphs, headings, even tables, divs, in fact just about any HTML element. I don't think there are any validation problems involved with that, and as far as I can tell, accessibility would be improved by using headings, paragraphs, lists, etc., just the same as you would outside of the fieldset.
text-align: center; to your container div will center the fieldsets in IE, while giving the fieldsets margin: 0 auto; will center them in Mozilla browsers. You'll also want to set the fieldsets to have text-align: left; to overcome the inherited text-align:center that will cascade down from the container div.
Just realised it was edited - how do show an example of your work - re question if you can't sow a self URL? the URL in question is used for testing and doesn't have a site or any other means of self promotion just an area to post/test coding... I appreciate showing code in the thread is a solution but if it a long example of code and CSS doesnt the thread become bloated and not necasserily demonstrate what you are talking about?
Just realised it was edited - how do show an example of your work - re question if you can't sow a self URL?
The way it's normally done around here is to find the relevant portion of your code, both the CSS and the HTML. Eliminate everything that you're sure has no bearing on the problem - for instance, the font color you use for paragraphs has nothing to do with a complex positioning issue. Remove any links or anything else that makes mention of your site or your post may be edited to "remove specifics."
By posting the relevant portion of the code, as small a snippet as possible to illustrate the problem, it makes it much quicker for people to see what you're talking about than to drop a URL to your page.
Yes, this system is a little cumbersome, but it has its advantages too. One of the main advantages is that it gets rid of a lot of silly "chatter" posts by forcing people to pay attention and spend enough time to put together a quality post. I can't tell you how many times I've started a post, went through my code to find the relevant sections and eliminate specifics, and found the answer to my problem right before my eyes. The extra attention to detail was what did it, and thereby saves the forum from a meaningless post where someone will solve the problem just by saying "You forgot a semicolon on Line 5."
I know the extra time and thought required to fit into this system seems obtruse at first, but ask almost any long-term member here and they'll tell you that disallowing URL drops here is one of the main things that keeps WW such a high-quality board.
Incidentally, and not to be boastful or anything, I believe I answered both of your questions from the information you provided, and I never visited your URL even though it was still present when I read your post. Problems can be solved without a URL more often than you might think! ;)
Thinking about it, it does make much better sense as it is always somewhat annoying when you visit a thread to find the URL is broken and the potential soultion to a problem has passed...
I'll let you know if you answered my questions correctly when I have a chance to try your solution today.