Forum Moderators: not2easy
What's the css stylesheet equivalent for <img align="left" or right or whatever>? I've got a whole lot of images and I want to align them in css and I can't seem to figure what the css for align is.
On a related tip-- how do you assign two selectors to a single element. Say you've got a rollover class and a css formatting class that you want to assign to an image element, how do you get it to recognize both?
I appreciate your time.
Rischen
text-align: left. Internet Explorer mistakenly aligns everything, not just text, as well. That is incorrect behaviour though, do not be tricked by it :).
To align an image left, I beleive you can use
float: left. I am not sure how correct that is though. I think it works in most cases, but there are some when it does not.
I can't beleive that there is no simply
align: leftfeature in CSS. Because that would make a lot of sense.
On the second question, you can simply separate your classes with a space:
class="classone classtwo"
Moltar, it might just be my browser (did I spell that right?) that doesn't accept align: left. Floating works, Suzy. Thanks.
Appreciate your help guys,
Rischen