Jump to content

body location


dethdeks

Recommended Posts

im trying to have the body sit beside the menu but when using divs it places it below the menu can someone help me place it beside the menu. thanks.

 

style.css

body {
font-family: fixedsys, monospace;
background-image:url('../Img/Background.jpg');
width:10024px;
}
#headerbox {
background: url('../Img/Header-Box.jpg') no-repeat;
background-position: 400px;
height: 209px;
right 999px;
}
#home {
position:fixed;
right: 1160px;
width: 106px;
height: 62px;
}
#products {
position:fixed;
right: 1054px;
width: 106px;
height: 62px;
}
#specials {
position:fixed;
right: 949px;
width: 106px;
height: 62px;
}
#account {
position:fixed;
right: 844px;
width: 106px;
height: 62px;
}
#contact {
position: fixed;
right: 739px;
width: 106px;
height: 62px;
}
#menu {
background: url('../Img/Menu-Box.gif') no-repeat;
background-position: 400px 20px;
height: 400px;
clear: right;
}
#content {
background: url('../Img/Body-Box.gif') no-repeat;
height: 500px;
background-position: 400px 20px;
}

 

index.php

<html>
<head>
<link rel="stylesheet" type="text/css" href="Docs/style.css" />
</head>
<body>
<?php
include 'header.php';
include 'menu.php';
?>
<div class="content">
<div id="context">
</div>
</div>




</body>

</html>

 

header.php

<?php
echo "
	<div class='header'>
		<div id='headerbox'>
		<div id='home'><a href='#'><img src='Img/Home-Button.gif' border='0'></a></div>
		<div id='products'><a href='#'><img src='Img/Products-Button.gif' border='0'></a></div>
		<div id='specials'><a href='#'><img src='Img/Specials-Button.gif' border='0'></a></div>
		<div id='account'><a href='#'><img src='Img/MyAccount-Button.gif' border='0'></a></div>
		<div id='contact'><a href='#'><img src='Img/Contact-Button.gif' border='0'></a></div>
		</div><!--end headerbox-->
	</div><!--end header-->
";

?>

 

Menu.php

<?php

echo "		<div class='sidebar'>
		<div id='menu' width='200px'>
		</div><!-- end menu-->
	<div id='content'>
	test
	</div>
	</div><!--end sidebar-->

";
?>

 

any help would be appreciated thanks.

Link to comment
https://forums.phpfreaks.com/topic/250149-body-location/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.