Topic: HowTo Clear -- Img Align="left" (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Phoenix |
posted 03-30-2004 15:48
Is there a way to "clear" an image align left? Much like CSS float rules where you follow up a float left with an element set to "clear:all"? |
Maniac (V) Inmate From: under the bed |
posted 03-30-2004 17:27
Best way is to simply not use 'align="left"' at all. That's what CSS is for. |
Bipolar (III) Inmate From: Phoenix |
posted 03-30-2004 18:04
So then... either give the image an ID and assign it a float value of left or wrap it in a div tag? What is recommended? |
Maniac (V) Inmate From: out of a sleepy funk |
posted 03-30-2004 23:07
floating would give you what you're after I tihnk, you may do well to add several classes to your style sheet like: code: floatl {
code: class="floatl clearb"
|
Maniac (V) Inmate From: under the bed |
posted 03-30-2004 23:31
quote:
|
Bipolar (III) Inmate From: Phoenix |
posted 03-31-2004 18:10
Thanks for the tips! |
Nervous Wreck (II) Inmate From: |
posted 04-08-2004 18:16
That's an interesting technique of having some general purpose classes for float left, float right, etc. code: floatl {float: right}
|
Maniac (V) Inmate From: under the bed |
posted 04-08-2004 20:02
The benefit of using a class instead of an inline stlye is that you can have multiple classes defined for any element. You can also make use of these generic classes instead of retyping a great number of redundant inline styles. |
Nervous Wreck (II) Inmate From: |
posted 04-17-2004 12:02
quote:
|
Maniac (V) Inmate From: under the bed |
posted 04-18-2004 02:31
I was ecstatic when I first discovered you could call multiple classes - it's an essential feature of efficient CSS, IMO. |
Paranoid (IV) Mad Scientist From: Right-dead center |
posted 04-18-2004 03:12
Ecstatic? |
Maniac (V) Inmate From: under the bed |
posted 04-18-2004 04:49
|
Maniac (V) Inmate From: Seoul, Korea |
posted 04-19-2004 03:20
Actually, I didn't know you could call multiple classes... that's pretty cool. |
Paranoid (IV) Mad Scientist From: Right-dead center |
posted 04-19-2004 03:24
Does it make you ecstatic? |