deko wrote:
Quote:
I've tried this:
#some-div img { text-align: left }
but no luck.
What I have is some-div that requires 'text-align: center'
#some-div {
text-align: center;
}
But I want all the images aligned left. |
Are you trying to align the div in the center of the screen or do you
want the text in the div to be centrally aligned?
If you're trying to put the div in the centre of the screen [or it's
container] then use:
#some-div {margin-left:auto; margin-right:auto;}
If you're trying to align the text to the center of the div and then
have an image in the same div aligned to the left I'm not sure that this
would work. For the purposes of CSS applying text-align:center; covers
all inline elements including images [perhaps the name could've been
slightly clearer]. So perhaps you're looking for a float?
--
Brian O'Connor (ironcorona)