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 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    div alignment issue

    I'm trying to create a 3 Horizontal column layout which is contained in a wrapper div to center it. i'm trying to make the content div remain fluid so it will scale to the proper height according to whats in it. I always get a gap
    between the header_image and the content division. The footer image and the content div touch properly.

    Any help would be much appreciated. Thanks!



    Heres the code:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">  
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
    <title>Page Title</title>
    <link type="text/css" href="stylesheet.css" rel="stylesheet" />
    </head>
    <body>
    
    <div id="wrapper">
    <img src="header_image.png" id="header_image"/>
    <div id="content"><p>test</p></div>
    <img src="footer_image.png" id="footer_image"/>
    </div>
    
    </body>
    </html>

    css code:

    Code:
    body {
    font-family:Arial;
    font-size:12pt;
    }
    
    #wrapper {
    position:relative;
    width:800px;
    margin-left:auto;
    margin-right:auto;
    font-family:Arial;
    font-size:12pt;
    }
    
    #content {
    position:relative;
    background-color:red;
    font-family:Arial;
    font-size:12pt;
    }
    
    #header_image{
    position:relative;
    background-color:red;
    font-family:Arial;
    font-size:12pt;
    }
    
    #footer_image{
    position:relative;
    background-color:red;
    font-family:Arial;
    font-size:12pt;
    }

  • #2
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,335
    Thanks
    5
    Thanked 363 Times in 360 Posts
    Just curious. Are you using Dreamweaver?

  • #3
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    notepad

  • #4
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,335
    Thanks
    5
    Thanked 363 Times in 360 Posts
    Quote Originally Posted by scratch416 View Post
    notepad
    Ok no problem, I just remember Dreamweaver has a template like you need.

    Do you have this site live? If so can you provide the link?


  •  

    Posting Permissions

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