Hello!
So I am new to divs, and I am having a bit of trouble. In my main "header" div, I have a header image (with a menu, etc., that I will add an image map to). Right now, when I set the top margin and left margin to 0 px, I still have a few pixels of space all around the div (as in my image isn't totally flush with the top and left start of the page). Is there any way to combat this? Also, I would like to add a "main" div to "lay" on top of the header div that has my image. This will have text and display the main information. Right now the main div displays after the header div... is there any way to position on top of my header div?
link:
my problem...
Here is my code now:
CSS:
body { background-image: url('images/prelawbg.jpg');
background-repeat: repeat-y; }
p { font-family: verdana;
font-size: 12px;
color: black }
p.image { text-align: center }
#header {
background-image: url('images/sidecolors.jpg');
background-repeat: repeat-x;
top: 0px;
left: 0px;
height: 700px;
border: 0px;
padding: 0px;}
#main { left: 306px;
top: 298px;
width: 399px; }
HTML:
<html>
<head>
<title>Welcome to Wellesley's Minority Pre-Law Society!</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div id="header">
<img src="http://www.webmaster-talk.com/images/prelawheader.jpg" alt="header" usemap="#headermap" border="0">
<!-- image map here -->
<div id="main">
<p>Main content here.</p>
</div>
</div>
</body>
</head>
Thank you so much for your help!
Last edited by tperkins; 04-21-2009 at 04:51 PM..
|