Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-25-2008, 09:30 PM   PM User | #1
jerry62704
Senior Coder

 
jerry62704's Avatar
 
Join Date: Oct 2007
Location: Springfield, IL
Posts: 1,046
Thanks: 9
Thanked 81 Times in 81 Posts
jerry62704 is on a distinguished road
Question HTLM - fieldset & legend

I want the fieldset "title" to appear in the upper left hand side of the fieldset enclosing bar. I was under the impression that <legend> would put it there, but it doesn't seem to in either FF or IE.

1) Am I correct in my assumption?
2) If not, how do I achieve this?

TIA
__________________
.
.
...and gladly would he learn and gladly teach

Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls
jerry62704 is offline   Reply With Quote
Old 02-25-2008, 09:35 PM   PM User | #2
sobrien79
Regular Coder

 
Join Date: Jan 2008
Location: Willow Grove, PA
Posts: 169
Thanks: 1
Thanked 27 Times in 27 Posts
sobrien79 is an unknown quantity at this point
Html

Code:
<fieldset>
    <legend>This is my title.</legend>
</fieldset>
sobrien79 is offline   Reply With Quote
Old 02-25-2008, 09:43 PM   PM User | #3
jerry62704
Senior Coder

 
jerry62704's Avatar
 
Join Date: Oct 2007
Location: Springfield, IL
Posts: 1,046
Thanks: 9
Thanked 81 Times in 81 Posts
jerry62704 is on a distinguished road
That's pretty much what I have. Here is the code:
Code:
<html:form action="/calculateFS">
	<fieldset title="<bean:message key="fs.calc.input.household.heading"/>" id="hi">
		<legend>Household Information</legend>
		<h2><font size="2" face="bold"><bean:message key="fs.calc.input.household.heading"/></font></h2>

		<div align="right">
			<span><bean:message key="fs.calc.input.numInHH"/></span>
			<span><html:text styleId="numInHH" property="numInHH" size="2" maxlength="2"/></span>
		</div>
	
		<div align="right">
			<span><bean:message key="fs.calc.input.childrenUnder2"/></span>
			<span><html:text styleId="numberOfChildrenUnder2" property="numberOfChildrenUnder2" size="2" maxlength="2"/><br /></span>
		</div>
	
		<div align="right">
			<span><bean:message key="fs.calc.input.childrenOver2"/></span>
			<span><html:text styleId="numberOfChildrenOver2" property="numberOfChildrenOver2" size="2" maxlength="2"/> <br /></span>
		</div>
	
		<div align="right">
			<span><bean:message key="fs.calc.input.qualifyingMember"/></span>
			<span><html:select styleId="qualifyingMember" property="qualifyingMember">
				<html:option value="false"><bean:message key="fs.calc.input.yesno.no"/></html:option>
				<html:option value="true"><bean:message key="fs.calc.input.yesno.yes"/></html:option>
			</html:select> <br /></span>
		</div>
	
		<div align="right">
			<span><bean:message key="fs.calc.input.simplifiedProcessingUnit"/></span>
			<span><html:select styleId="simplifiedProcessingUnitInd" property="simplifiedProcessingUnitInd">
				<html:option value="false"><bean:message key="fs.calc.input.yesno.no"/></html:option>
				<html:option value="true"><bean:message key="fs.calc.input.yesno.yes"/></html:option>
			</html:select> <br /></span>
		</div>

	</fieldset>
I'll try to change the legend to a strut message so it will always be consistent with the title (tool tip) and remove the header once it is working.
__________________
.
.
...and gladly would he learn and gladly teach

Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls
jerry62704 is offline   Reply With Quote
Old 02-25-2008, 09:58 PM   PM User | #4
sobrien79
Regular Coder

 
Join Date: Jan 2008
Location: Willow Grove, PA
Posts: 169
Thanks: 1
Thanked 27 Times in 27 Posts
sobrien79 is an unknown quantity at this point
I dunno. When I take that snippet and throw it into a browser it loads the fieldset's borders and the legend as it should. Granted nothing else shows up due to the other tags. But I get the legend.

Do you have a link to someplace where we can see it publicly?
Attached Thumbnails
Click image for larger version

Name:	legend.gif
Views:	152
Size:	2.1 KB
ID:	6075  
sobrien79 is offline   Reply With Quote
Old 02-25-2008, 10:11 PM   PM User | #5
jerry62704
Senior Coder

 
jerry62704's Avatar
 
Join Date: Oct 2007
Location: Springfield, IL
Posts: 1,046
Thanks: 9
Thanked 81 Times in 81 Posts
jerry62704 is on a distinguished road
No, it is on our intranet until I convert it and then it will be in the public view. The base I'm starting with is there now.

However I did notice that the source as seen in FF doesn't match the source as seen in the RAD program. It could be a case of RAD not publishing it correctly. I just shut it down (first tried republishing, then stopping and starting the server, then clearing the cache in FF and starting over again) entirely and ...
the source from the browser still doesn't match the source in the RAD program. Which is why I hate RAD. Once this is fixed, the whole thing may work. You have verified that the syntax is right and it worked on your machine.

More later...
__________________
.
.
...and gladly would he learn and gladly teach

Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls
jerry62704 is offline   Reply With Quote
Old 02-25-2008, 10:22 PM   PM User | #6
sobrien79
Regular Coder

 
Join Date: Jan 2008
Location: Willow Grove, PA
Posts: 169
Thanks: 1
Thanked 27 Times in 27 Posts
sobrien79 is an unknown quantity at this point
Glad I could help.
sobrien79 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:15 AM.


Advertisement
Log in to turn off these ads.