homepage Welcome to WebmasterWorld Guest from 54.234.7.161
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Browsers / Opera Browser Usage and Support
Forum Library, Charter, Moderator: open

Opera Browser Usage and Support Forum

    
Opera 7.5's fieldset implementation
fwordboy

10+ Year Member



 
Msg#: 48 posted 10:57 am on Jun 11, 2004 (gmt 0)

has anyone else noticed problems with opera 7.5's implementation fieldset?
when i place a fieldset in a (tableless css)form it becomes tiny - about 2-3ems in height. i think this is due to float all the form elements but firefox and IE get it "right".
is opera right or is it wrong? and if it is right then how can i modify a css form to respect opera's interpretation of it?

 

BlobFisk

WebmasterWorld Senior Member blobfisk us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 48 posted 9:17 am on Jun 12, 2004 (gmt 0)

Have you tried adding widths and/or heights to the form elements? Also, what is your fieldset in? A div or just the form?

Have a look at this page [quirksmode.org] and see if it helps - Opera gets a special mention and the <br /> hack may help you. Also look at your [blue]clear[/url] usage...

HTH

fwordboy

10+ Year Member



 
Msg#: 48 posted 8:27 am on Jun 14, 2004 (gmt 0)

i have seen this page before but obviously skim-read the opera mention.
so it must be because i have

label, input{
float: left;
}

label{
clear: left;
}

I don't really want to be adding <br />'s allover the place and I think its pretty poor that opera can't get this right. I really don't appreciate Opera at all.

dcrombie

10+ Year Member



 
Msg#: 48 posted 9:14 am on Jun 14, 2004 (gmt 0)

If what you mean is that the size of the fieldset box ignores all the floated labels and inputs then Safari does the same - which probably means that it's the 'right' way to render it and the other browsers have it wrong.

The best solution I found (short of inserting <BR>'s was to add a div just before the </fieldset>:

<div style="clear: left;"><!-- --></div>

;)

SuzyUK

WebmasterWorld Senior Member suzyuk us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 48 posted 11:18 am on Jun 14, 2004 (gmt 0)

Opera is doing the right thing..

if all the contents of the fieldset are floated, then they are removed from the flow and the fieldset doesn't "know" it's got any children.

One solution would be to float the fieldset too (width declared) as the specs state that a floated parent will stretch to contain it's floated children.

Or
wertigon came up with a good solution for table-less Forms in this thread [webmasterworld.com]

Suzy

fwordboy

10+ Year Member



 
Msg#: 48 posted 11:12 am on Jun 16, 2004 (gmt 0)

thankyou suzyUK. thats fixed it. i know its naughty but i was quite happy to ignore this problem in opera if it was opera's implementation of the fieldset that was at fault. now i've discovered opera is correct i'm happy to fix it.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Browsers / Opera Browser Usage and Support
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved