Topic: HowTo Clear -- Img Align="left" (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Phoenix |
![]() 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 |
![]() Best way is to simply not use 'align="left"' at all. That's what CSS is for. |
Bipolar (III) Inmate From: Phoenix |
![]() 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 |
![]() 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 |
![]() quote:
|
Bipolar (III) Inmate From: Phoenix |
![]() Thanks for the tips! |
Nervous Wreck (II) Inmate From: |
![]() 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 |
![]() 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: |
![]() quote:
|
Maniac (V) Inmate From: under the bed |
![]() 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 |
![]() Ecstatic? |
Maniac (V) Inmate From: under the bed |
![]() |
Maniac (V) Inmate From: Seoul, Korea |
![]() Actually, I didn't know you could call multiple classes... that's pretty cool. |
Paranoid (IV) Mad Scientist From: Right-dead center |
![]() Does it make you ecstatic? |