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
    Jan 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Div positioning relative to container...

    Hello, I'm having a problem with a couple divs positioning themselves relative to the div that contains them. I'm not sure what is going on, but it looks like they are using another div to do so.

    <body>

    <div id="container">

    <div id="leftBoarder" />
    <div id="leftTitleBoarder" />
    <div id="title" />
    <div id="rightTitleBoarder" />
    <div id="rightBoarder" />

    </div>
    </body>

    the last 2 divs seem to be positioning themselves relative to the "title" div rather than the "container" div... My css can be viewed here:
    http://www.perimeter-road.com/csstes...eets/style.css

    and the page here:
    http://www.perimeter-road.com/csstest/

  • #2
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,742
    Thanks
    0
    Thanked 244 Times in 239 Posts
    Hi there antipepsiinc,

    and a warm welcome to these forums.

    If you had made use of the validator...
    ...you would probably have solved your problem.
    You need to change this...
    Code:
    <LINK href="stylesheets/style.css" rel="stylesheet" type="text/css" />
    ...to this...
    Code:
    <link href="stylesheets/style.css" rel="stylesheet" type="text/css" />
    ...and this..
    Code:
    	<div id="leftBoarder" />
    	<div id="leftTitleBoarder" />
    	<div id="title" />
    	<div id="rightTitleBoarder" />
    	<div id="rightBoarder" />
    ...to this...
    Code:
    	<div id="leftBoarder"></div>
    	<div id="leftTitleBoarder"></div>
    	<div id="title"></div>
    	<div id="rightTitleBoarder"></div>
    	<div id="rightBoarder"></div>
    coothead

  • #3
    New to the CF scene
    Join Date
    Jan 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thank you soo much

  • #4
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,742
    Thanks
    0
    Thanked 244 Times in 239 Posts
    No problem, you're welcome.


  •  

    Posting Permissions

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