Re: [css-d] background color issues
the good browsers have no idea that you want #wrap to contain the floats inside, so they give #wrap a 0 height. you have already triggered haslayout in ie6, which is why it's expanding to contain the floats and the background is showing up. i'd suggest sticking in the easy clearing method to get the other browsers to contain the float: #wrap:after { clear: both; content: .; display: block; height: 0; visibility: hidden; } __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] background color issues
Actually - CSS validation states in such warning that I have no background-color assigned for my div#wrap, but if you scroll down to (or otherwise read) the css, I do...?... WTF?!? Thanks, Ron Quoting RKN Studio [EMAIL PROTECTED]: problem child - www.magnoliapr.com (/magpr.css) IE 6+ gets the bg color happening in the wrap div, but to my surprise FF, NN and Opera does not. Also, you can see in IE that there is a slight space added after the banner/logo area. The home page is validating XHTML and CSS (save for bgcolor warnings) What am I missing? Thanks, Ron __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/ __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] background color issues
On 9/8/06, RKN Studio [EMAIL PROTECTED] wrote: Thanks cj - this seems to work. Can I assume then that I 'always' use such clear practices after using floats? I didn't know to do this. Thanks, Ron this method is the one i most prefer to both contain floats and to clear them as well. if you'd like to see some of the other options members of css-d know of, you can visit the wiki at http://css-discuss.incutio.com/?page=ClearingSpace i personally don't like adding br/ or hr/ (or anything else for that matter) to clear. option 2 is right up my ally. __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] background color issues
RKN Studio wrote: Actually - CSS validation states in such warning that I have no background-color assigned for my div#wrap, but if you scroll down to (or otherwise read) the css, I do...?... WTF?!? Thanks, Ron Quoting RKN Studio [EMAIL PROTECTED]: problem child - www.magnoliapr.com (/magpr.css Hi Ron, The css-validator has no html-sniffer or html-interpreter, so it cannot know more as mentioned in the stylesheet... ;-) The div#wrap is only once in the css, how should the ccs-validator know that an other div (and: which one) is inside the div#wrap? And for instance: div#block {background-color: #a4957a;} is followed by: #block p {color: #ff;} Say there is also a li inside the #block, then the color of the li is not covered. And maybe the color af a li in general was just the color of the background of the #block... Conclusion: in general, the css is giving the styles (and some of the cascade), but the real cascade is only in the html. So the css-validator is right to give a warning, if a color/bg-color is not in pair in the same element. Apart from that, this warning is not 100% safe: bg-color black and color: #010101 (1 degree of the 255 in the brightness scale = visible also as black, unless you are an eagle in his better years) don't give a warning, but are a validated good pair. - Validator is blind for the degree of contrast (and also for different colors with the same intensity, which can be completely unseen by colorblind people)! Greetings, francky __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/