jeromebrill
10-14-2007, 06:56 PM
Here is the site: http://www.geocities.com/jeromebrill/linkbox/test.html
I'm learning as I go here. I can't get the ".search" div to position were I want it. I have another div ".containerhead" with the same attributes and it works.
For clarification: I have two separate div for the same area because if I add the search form code to the div ".containerhead" it for some reason doesn't display in-line, it goes below the email buttons. If anyone could help that would great, thanks
Here is my code:
<html>
<head>
<title>test</title>
<style type="text/css">
body {
background-image: url(http://www.geocities.com/jeromebrill/myspace/background.jpg);
}
.maincontainer {
position: absolute;
left: 50%;
top:200px;
width:600px;
Height:300px
z-index:1;
margin-left: -300px;
}
.containerhead {
position: absolute;
left: 50%;
top:15px;
width:700px;
height:50;
z-index:2;
margin-left: -285;}
.search {
position: abolute;
left: 50%;
top:8px;
width:500px;
height:50;
z-index:2;
margin-left: -165;}
</style>
</head>
<body>
<div class="maincontainer">
<table style="width: 600px;
height: 300px;
cellpadding: 0px;
cellspacing: 0px;
<tr><td valign="top">
<img src="http://www.geocities.com/jeromebrill/linkbox/linkboxtop.png">
</div>
<div class="containerhead">
<a href="http://us.f604.mail.yahoo.com/ym/login?.rand=2iubhhuh8b6cv"><img border="0" src="http://www.geocities.com/jeromebrill/linkbox/ymail2.gif" width="22" height="16"></a>
<a href="http://by114w.bay114.mail.live.com/mail/TodayLight.aspx?n=439013830"><img border="0" src="http://www.geocities.com/jeromebrill/linkbox/hmail2.gif" width="22" height="16"></a>
<a href="http://mail.google.com/mail/?tab=wm"><img border="0" src="http://www.geocities.com/jeromebrill/linkbox/gmail2.gif" width="22" height="16"></a>
</div>
<div class="search">
<form method="get" action="http://www.google.com/search">
<input type="text" name="q" size="50" maxlength="200" value="" />
<input type="image" name="submit" src="http://www.geocities.com/jeromebrill/linkbox/searchbutton.png" border="0" />
</form>
</div>
</body>
</html>
I'm learning as I go here. I can't get the ".search" div to position were I want it. I have another div ".containerhead" with the same attributes and it works.
For clarification: I have two separate div for the same area because if I add the search form code to the div ".containerhead" it for some reason doesn't display in-line, it goes below the email buttons. If anyone could help that would great, thanks
Here is my code:
<html>
<head>
<title>test</title>
<style type="text/css">
body {
background-image: url(http://www.geocities.com/jeromebrill/myspace/background.jpg);
}
.maincontainer {
position: absolute;
left: 50%;
top:200px;
width:600px;
Height:300px
z-index:1;
margin-left: -300px;
}
.containerhead {
position: absolute;
left: 50%;
top:15px;
width:700px;
height:50;
z-index:2;
margin-left: -285;}
.search {
position: abolute;
left: 50%;
top:8px;
width:500px;
height:50;
z-index:2;
margin-left: -165;}
</style>
</head>
<body>
<div class="maincontainer">
<table style="width: 600px;
height: 300px;
cellpadding: 0px;
cellspacing: 0px;
<tr><td valign="top">
<img src="http://www.geocities.com/jeromebrill/linkbox/linkboxtop.png">
</div>
<div class="containerhead">
<a href="http://us.f604.mail.yahoo.com/ym/login?.rand=2iubhhuh8b6cv"><img border="0" src="http://www.geocities.com/jeromebrill/linkbox/ymail2.gif" width="22" height="16"></a>
<a href="http://by114w.bay114.mail.live.com/mail/TodayLight.aspx?n=439013830"><img border="0" src="http://www.geocities.com/jeromebrill/linkbox/hmail2.gif" width="22" height="16"></a>
<a href="http://mail.google.com/mail/?tab=wm"><img border="0" src="http://www.geocities.com/jeromebrill/linkbox/gmail2.gif" width="22" height="16"></a>
</div>
<div class="search">
<form method="get" action="http://www.google.com/search">
<input type="text" name="q" size="50" maxlength="200" value="" />
<input type="image" name="submit" src="http://www.geocities.com/jeromebrill/linkbox/searchbutton.png" border="0" />
</form>
</div>
</body>
</html>