Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 03-24-2008, 01:11 PM <legend> tag in IE
pealo86's Avatar
Super Spam Talker

Posts: 849
Name: Matt Pealing
Location: England, north west
Trades: 0
I have a legend tag in a form, and have applied this CSS code:
Code:
.common {
width:500px;
margin:5px auto;
clear:both;
background-color:#F8F8F8;
border:#CCC solid 1px;
padding:10px;
color:#666;}

.common input {
border-color:#999;}

.common fieldset {
border:none;}

.common legend {
border:none;
margin:0;
padding:0;
font-size:120%;
font-weight:bold;
color:#333;}
Even though Ive removed the margin and padding from the legend, IE decides it still wants to indent it further to the right!

Is there any way to stop this?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
 
Register now for full access!
Old 03-24-2008, 01:24 PM Re: <legend> tag in IE
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Styling <legend> tags is a known problem, you might want to read thru this for a solution:
http://www.tyssendesign.com.au/artic...ends-of-style/
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 03-24-2008, 01:30 PM Re: <legend> tag in IE
pealo86's Avatar
Super Spam Talker

Posts: 849
Name: Matt Pealing
Location: England, north west
Trades: 0
Thanks for the help. I had no idea legend tags could be so troublesome! I think I'll just use a heading tag instead lol
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
Old 03-24-2008, 02:02 PM Re: <legend> tag in IE
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Styling form elements has always been problematic, this one is, for whatever reason, nearly impossible.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 11-17-2008, 02:44 PM Re: <legend> tag in IE
Junior Talker

Posts: 1
Name: Collin
Trades: 0
i just ran into a similar problem... i added a negative margin to the legend
in my IE style sheet:

legend { margin: 0 0 0 -8px; }

main style sheet:

legend { margin:0; }

it appears to have eliminated the indent from my legend tag in IE, and renders fine in all other browsers.

Last edited by coll23; 11-17-2008 at 02:45 PM..
coll23 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to <legend> tag in IE
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.27337 seconds with 12 queries