...

View Full Version : CSS Help Alignment



Chris_NY
07-31-2007, 02:44 AM
I have a website for gaming club. I can't get the top and bottom framed aligned. I could sure use some help.

http://rocknrollerz.org/new_home.html

thank you

bazz
07-31-2007, 03:14 AM
I see that in one frame you have <div="container"> and in the other <div="content">. I haven't looked at the css coz at 3.13 am I should be in bed (lol) but, compare the attributes used on each to see why content sits to the left of your screen. Maybe the margin should be set to 'margin : auto auto;'

bazz

Ok so I had to look at the css.




#container {

margin: 30px auto;

text-align: left;

width: 785px;

display:block;

position:relative;

}

#content {

background: url(images/contentbg.gif) repeat-y;

width: 785px;

}


look at the container margin. margin : 30px auto; try adding that to content. Better still might be to try this:



#container, #content {
attributes common to both could go here
}

#container {
attributes just for container
}
#content {
attributes just for content here
}


perhaps, better still, make both divs the same name

bazzzzzzzzzzzzzz



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum