Mirawr
07-03-2011, 04:39 PM
Hello everyone,
I have a problem, obviously.
It's about aligning divs and how to center them.
I've looked it up on many many forums but it seems none of those solutions work for me. I think I've got a conflict somewhere but I can't find it.
First of all, I sliced and auto-coded it with photoshop and then edited the codes. All I want is to have everything centered, mainly the images. I'd rather have the text aligned left. I know this is possible with tables, but how do I do this with divs?
Another thing, if I add
body {
text-align:center;
font-family: arial, helvetica, sans-serif;
font-size: 80%;
color: black;
background-color: #000;
margin: 1em;
padding: 0;
}
In my CSS, it doesn't seem to change anything at all. But if I add this in the actual index.html it does.
I'm doing something wrong, does anyone can point out what exactly? :)
Thanks in advance!
Edit: here's a link for you to look at:
I have a problem, obviously.
It's about aligning divs and how to center them.
I've looked it up on many many forums but it seems none of those solutions work for me. I think I've got a conflict somewhere but I can't find it.
First of all, I sliced and auto-coded it with photoshop and then edited the codes. All I want is to have everything centered, mainly the images. I'd rather have the text aligned left. I know this is possible with tables, but how do I do this with divs?
Another thing, if I add
body {
text-align:center;
font-family: arial, helvetica, sans-serif;
font-size: 80%;
color: black;
background-color: #000;
margin: 1em;
padding: 0;
}
In my CSS, it doesn't seem to change anything at all. But if I add this in the actual index.html it does.
I'm doing something wrong, does anyone can point out what exactly? :)
Thanks in advance!
Edit: here's a link for you to look at: