473,378 Members | 1,549 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,378 software developers and data experts.

legend in fieldset, position horizontally as centrified

Can the legend element in fieldset be placed automatically by Mozilla
horizontally in the middle of fieldset?

Jul 20 '05 #1
2 14118
Marek Mänd wrote:
Can the legend element in fieldset be placed automatically by Mozilla
horizontally in the middle of fieldset?


Maybe. What have you tried? I'd start with text-align: center on
fieldset. You might also try positioning:

fieldset {position: relative;}
legend
{position: absolute;
left: 50%;
width: 10em;
margin-left: -5em
}

--
Brian (remove "invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #2
Brian wrote:
Marek Mänd wrote:
Can the legend element in fieldset be placed automatically by Mozilla
horizontally in the middle of fieldset? Maybe. What have you tried?


In Opera7.54 setting
margin-right:auto makes the legend to be on the left
margin-left:auto makes the legend to be on the right

margin-left:auto margin-right:auto makes the legend to be in the center.

Opera doesnt honour explicit pixel values like
margin-left:30px

Mozilla 1.72 aswell as IE6 do honour explicit pixel values for
margin-left, yet they doent understand the margin auto stuff.
I'd start with text-align: center on fieldset. You might also try positioning:

fieldset {position: relative;}
legend
{position: absolute;
left: 50%;
width: 10em;
margin-left: -5em
}


Your proposed along with mine code (601 bytes)
http://www.hot.ee/idaliiga/testcases...ify_legend.htm
shows that your proposed solution will not likely work in current Mozillas.
Jul 20 '05 #3

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

Similar topics

14
by: Ian Rastall | last post by:
I'm curious as to the group's feelings about using the <fieldset> and <legend> tags around elements other than <form> elements ... I wrote a small test file:...
1
by: Falc2199 | last post by:
Hi all, I am using the "Poistion" attribute to correctly align a column of images that I have on a table. The code looks like so.... <TD valign="top" class="listinglight" align="left"> <A...
3
by: Trent | last post by:
Hello, I have a <fieldset> in a <TD>. I want the fieldset to be as high as the TD. Setting the fieldset's height to 100% works in IE. Opera ignores it. Firefox & Netscape 7.1 give it the...
0
by: Anne van Kesteren | last post by:
Ok, here it goes. Originally I submitted this proposal to www-style. Since I don't get feedback there, I think I missed a few (maybe a lot) of points. Proposal:...
4
by: Adam Smith | last post by:
Hello, Can I use <fieldset><legend><tr><tr> </tr></tr></fieldset></legend> to select multiple rows in a Table such that I can demarcate several rows containing form elements in a table? ...
5
by: dubing | last post by:
Hi, We have some html source like this: <div class="survey"> <form action="students/cbe-graduate-students/survey.html" method="post" id="frmPbSurvey"> <fieldset class="survey_item">...
3
by: JackRbt | last post by:
if FF everything looks fine, but in IE7 the text color is black. fieldset { color: #336699; font-family: arial,verdana,sans-serif; font-size: 10pt; font-weight: bold; }
5
by: jcage | last post by:
I'm trying to line up two columns in a form using html check boxes but haven't been successful in aligning the right side. Left side is easy enough but I can't get the right side to align within...
6
goatboy
by: goatboy | last post by:
So I am hosting a site from my home server, and I would like the main page to be an area for updates about the site. I am providing these updates in a blog-style format, using this code: ...
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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.