Jump to content

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

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.