Log in

View Full Version : Aligning problem



Demonicman
11-24-2008, 08:02 PM
Here is the location of the problem: http://www.insanecombat.com/Wow/

How can I fix it?

Here is the CSS:


#container {
margin: 0 auto;
margin-top: 20px;
text-align: left;
width: 900px;
}

#content1 {
background: url(images/elf-bg.jpg) no-repeat 2px;
clear: both;
display: block;
height: 450px;
padding-left: 128px;
padding-top: 38px;
width: 770px;
text-align: center;
}

#footer {
background: url(images/footer-bg.jpg) no-repeat;
clear: both;
color: #F1D6AC;
display: block;
height: 99px;
padding-top: 20px;
text-align: center;
width: 900px;
text-align: center;
}

#header {
background: url(images/header-bg.jpg) no-repeat;
display: block;
height: 14px;
width: 897px;
text-align: center;
}

#left {
background: url(images/btm-left-bg.gif) no-repeat;
display: block;
float: left;
height: 494px;
width: 556px;
}

#pagebottom {
clear: both;
width: 900px;
text-align: center;
}

Any answer will be helpful, thx

Snookerman
11-24-2008, 08:49 PM
Hahah, what's the problem?

Demonicman
11-25-2008, 03:25 AM
each of the divs are a little crooked, the sides do not go straight down =(

bluewalrus
11-25-2008, 03:53 AM
your background images are all different sizes.

Demonicman
11-25-2008, 12:47 PM
what does that matter, i changed the width with the css?

cbier
11-25-2008, 04:58 PM
Take out all the alignment attributes for the divs inside the container. the container should make them all line up automatically.

Like Blue said. Make sure your images are all the same width. CSS will NOT change the size of your images for you! Even if it did it would make them look very messy.

I dont know about you but it would bug the crap out of me to have different widths. Just make it neat!! Good luck with your endeavors.