Re: [css-d] centering bordered image
XtiaN wrote: > I have prob here centering my image(s) > i can't see my padding in .img-bdr img (IE<7). > > .img-bdr { >text-align: center; >margin: 0 auto; >width: 100%; > } > .img-bdr img{ >margin: 0 auto; >padding: 3px; >border: 1px solid #ddd; >display: block; > } > > > > > I think you aren't using a doctype declaration. Add this to the top of your document and the padding will be seen even in IE: http://www.w3.org/TR/html4/strict.dtd";> -- Els http://locusmeus.com/ http://locusoptimus.com/ __ 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-d] centering bordered image
Hi guys, I have prob here centering my image(s) i can't see my padding in .img-bdr img (IE<7). Does anyone know how to solve the prob without wrapping that image with another div? thanks .img-bdr { text-align: center; margin: 0 auto; width: 100%; } .img-bdr img{ margin: 0 auto; padding: 3px; border: 1px solid #ddd; display: block; } - Relax. Yahoo! Mail virus scanning helps detect nasty viruses! __ 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/