Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    CSS Help Alignment

    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

  • #2
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    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.

    Code:
    #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:

    Code:
    #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
    Last edited by bazz; 07-31-2007 at 04:19 AM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •