Re: [css-d] Problem with images and floats

2007-01-18 Thread Matt Dawson
I should also point out that your namespace was correct for XHTML 1.0Transitional - just not the XHTML 1.1 that you're using in this document. Matt __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d

Re: [css-d] Problem with images and floats

2007-01-18 Thread Matt Dawson
This is a total shot in the dark, but it sounds a whole bunch like you're triggering quirks mode in IE. (Those sound like standard IE5 behaviors - and while I'm not sure that's exactly how many IE5 behaviors are triggered by quirks mode, I know some of them are.) On looking at your namespace defin

Re: [css-d] Problem with images and floats

2007-01-18 Thread Nick Mavros
Drew Trusz wrote: > Why is the p fixed at 160px? If you remove that you can center without > a problem. The text will adjust to the width set by the image in FF2, > Opera 9 and IE6 (don't have 7 on this machine). > > drew Yes it works in all those browsers and in IE7 but... The is fixed at 160px

Re: [css-d] Problem with images and floats with example

2007-01-18 Thread Nick Mavros
~davidLaakso wrote: > _*Set the width rather than the height of the image that you float*_. And > since the images are different widths, create a ruleset for each image. > Something like this: > css > div#container { width: 580px;border: 1px solid #000;float: left;padding: > 10px; } > div.im

Re: [css-d] Problem with images and floats with example

2007-01-18 Thread ~davidLaakso
Nick Mavros wrote: > Take a look at this http://www.zefxis.gr/files/example.html > I want the 3 images to "float: left". In FF they do. > In IE6 & IE7 they don't. > Nick If I understand the problem correctly: Set the width rather than the height of the image that you float. And since the images

Re: [css-d] Problem with images and floats with example

2007-01-18 Thread Nick Mavros
Take a look at this http://www.zefxis.gr/files/example.html I want the 3 images to "float: left". In FF they do. In IE6 & IE7 they don't. See for yourself. It's like the that contains them has a 100% width. The rules that causes the problem are: "margin: 0 auto;" that i have placed for the "mar

Re: [css-d] Problem with images and floats

2007-01-17 Thread Zoe M. Gillenwater
Nick Mavros wrote: > Ok guys take a look to the following structure: > > > > > > > I want the to "float: left" but I don't want to give it a width > value. I want it to take its width value from the inside it. > But I also want the and the to be centered inside the div. > > If I put "margi