>John Franks wrote:
>I have a strange IE7 css problem, where the slim <legend> tags with their
>green backgrounds on this page
>http://www.mrskibbles.co.uk/?page=shop.registration are sitting in >7px in
>from the left than they need to be. They should line up with the main
>"Register" <h1> at the top of the main donut, and do in all of the five main
>browsers including IE8 - >but not in IE7 where they indent (I am not trying
>for any compatibility with IE6 so that is not needed).
>
>
>I do not have any version of IE on-board at the moment, so since there have
>been no other replies, I'll hazard a guess :-) .
>
>Try:
>default.css
>line number 326
>
line326> form.johnRegForm legend { background-color:#62A868; border:2px solid
#4B8750; width:558px; height:25px; line-height:1.8; padding:0 0 0 8px;
text-align:left; color:#fff; font-weight:bold; margin:0; }
line327>*:first-child+html form.johnRegForm legend {background-color:#62A868;
margin-left:-7px; }/*for IE/7.0*/
>
>Best,
>Carmina Burana
Thanks a lot Carmina. I have copied your code into my css file under line 326
exactly as shown above, and it seems to have worked perfectly.
I have a pretty good grasp of css except for conditional css or hacks for IE.
Can you please answer my questions below to help me learn what your code means.
- Why have you inserted *:first-child+html at the start of the line?
- Why have you inserted /*for IE/7.0*/ at the end of the line?
- Should I have inserted the code at the end of line 326 after the current
selector or add it to new line 327 immediately below as I have done so above?
Thanks, John.
_________________________________________________________________
http://clk.atdmt.com/UKM/go/197222280/direct/01/
Do you have a story that started on Hotmail? Tell us now
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/