Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Newbie CSS question - IMG
September 19, 2003, 3:18 pm
rate this thread
I want to have images flush left (or flush right) with the text running
around and I can do this with HTML. But I want to do it CORRECTLY so I'm
trying to create 2 classes img.left and img.right
/* turns off gaps around images */
alt="Photo of Portland Head Light" src="lighthouse.jpeg"
It seems that the 'class= left' is being ignored.
Any help is appreciated, TIA
Re: Newbie CSS question - IMG
No, it sets the border of the image to zero. To remove any 'gaps'
around the image set margin :0;
There's no CSS property called align.
You want float: left;
There's no CSS property called hspace.
Even if there was all non-zero lengths in CSS must have units.
I think you want margin: 0 20px; to set zero top and bottom margins
and 20px left and right margins.
Well as there are no actual style properties defined for left there's
nothing to ignore.
Read the CSS specification it's a lot quicker and more efficient than
trial and error guessing of what CSS properties might exist. .
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor