Jump to content

Design Problem


Drezard

Recommended Posts

On the right side of this page the border is messed up but, in the css the mathematics are all correct. I dont know whats wrong???

 

Have a look at the output of this code here:

 

<html>

<head>

<title>Template</title>
    
    <style type="text/css">

	<!--

	#header {
		border-top: #000000 thin solid;
		border-left: #000000 thin solid;
		border-right: #000000 thin solid;
		position:absolute;
		left:5%;
		top:30px;
		width:90%;
		height:178px;
	}

	#nav {
		border-left: #000000 thin solid;
		border-bottom: #000000 thin solid;
		position:absolute;
		left:5%;
		top:208px;
		width:18%;
		height:512px;
	}

	#content {
		border-right: #000000 thin solid;
		border-bottom: #000000 thin solid;
		position:absolute;
		left:23%;
		top:208px;
		width:72%;
		height:512px;
	}

	-->

</style>
    
</head>

<body>
    
<div id='header'> </div>
        
<div id='nav'> </div>
        
<div id='content'> </div>

</body>

</html>

 

Whats wrong???

 

Daniel

Link to comment
Share on other sites

see if this gets you what you want:

 

<html>

<head>

<title>Template</title>

    <style type="text/css">

	<!--
    #wrapper {
    border:1px solid black;
    height:100%;
    position:absolute;
    left:5%;
    width:90%;
    }
	#header {
		border-top: #000000 thin solid;
		border-left: #000000 thin solid;
		border-right: #000000 thin solid;
		position:absolute;
		left:5%;
		top:30px;
		width:90%;
		height:178px;
	}

	#nav {
		border-left: #000000 thin solid;
		border-bottom: #000000 thin solid;
		position:absolute;
		left:5%;
		top:208px;
		width:18%;
		height:512px;
	}

	#content {
		border-right: #000000 thin solid;
		border-bottom: #000000 thin solid;
		position:absolute;
		left:23%;
		top:208px;
		width:72%;
		height:512px;
	}

	-->

</style>

</head>

<body>
<!--
<div id='header'> </div>

<div id='nav'> </div>

<div id='content'> </div>
  -->
  <div id="wrapper">
        
  </div>
</body>

</html>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.