Naughty240
05-05-2010, 06:24 PM
Id like to have a nice horizontal nav bar on the page and not way off to the left like it is on the contact page. I used the "#links" CSS from another project so I know it needs some work. To be honest my head is spinning and Im lost please help. Plus my damn radio buttons wont work right! Ugh..
I have two screen shots to show you the pages in question.
Here is the html http://www.pastie.org/947047
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Contact</title>
<style type="text/css">
</style>
<link href="myG35.css" rel="stylesheet" type="text/css" />
</head>
<body background="Images/infiniti_logo.png">
<div id="banner"><img src="Images/Banner.jpg" width="800" height="200" alt="banner" /></div>
<div id="links">
<ul>
<li><a href="MyG35.html">Home</a></li>
<li><a href="G35 Mod Table.html">Mods</a></li>
<li><a href="Contact.html">Contact</a></li>
<li><a href="links.html">Links</a></li>
<li><a href="media.html">Media</a></li>
</ul>
</div>
<div id="wrapper">
<div id="form">
<form name="contactForm" id="contactForm"
action="http://www.browng35.com/contact"
method="post">
<input type="hidden" name="eMail" id="eMail"
value="kilday111@gmail.com" />
<fieldset id="contact">
<legend>Contact Information</legend>
<label class="blockLabel">
First Name
<input type="text" id="firstName" name="firstName" />
</label>
<label class="blockLabel">
<br />
Last Name
<input type="text" id="lastName" name="lastName" />
</label>
<label class="blockLabel">
<br />
Phone
<input type="text" id="phone" name="phone" />
<br />
</label>
<label class="blockLabel">
Street Address
<input type="text" id="street" name="street" />
</label>
<label class="blockLabel">
<br />
City
<input type="text" id="city" name="city" />
</label>
<label>
State
<input type="text" id="state" name="state" maxlength="2" />
<br />
</label>
<label>
Zip
<input type="text" id="zip" name="zip" maxlength="10" />
</label>
</fieldset>
<fieldset id="foundMe">
<legend>Just a few questions</legend>
<label class="blockLabel">
Did you enjoy my site?
<input type="radio" id="yes" name="yes" />
<option value="secret">Yes</option>
<input type="radio" id="No" name="No" />
<option value="other">No</option>
<br />
</label>
<label class="blockLabel">
How did you find my site?
<select id="website" name="website">
<option value="G35">G35driver.com</option>
<option value="350Z">My350Z.com</option>
<option value="Google">Google</option>
<option value="fb">Facebook</option>
<option value="secret">Its a Secret</option>
<option value="other">Other</option>
</select>
</label>
<label class="blockLabel">
<br />
What do you drive?
<select id="yourCar" name="yourCar">
<option>G35 sedan</option>
<option>G35 coupe</option>
<option>G37 sedan</option>
<option>G37 coupe</option>
<option>M35</option>
<option>M45</option>
<option>300zx</option>
<option>350Z</option>
<option>370Z</option>
<option>240sx</option>
<option>other </option>
</select>
</label>
</fieldset>
<fieldset id="feedback">
<legend>Feedback</legend>
<label>
<input type="checkbox" id="signUp" name="signUp" />
I'm very interested in keeping up with your site and car.
</label>
<label for="comments" class="blockLabel"><br />
Comments</label>
<textarea id="comments" name="comments" rows="5" cols="50"></textarea>
</fieldset>
<input type="submit" value="Send my info and comments" />
<input type="reset" value="Your car is ugly! please send me to google!" />
</form>
</div>
</div>
</body>
</html>
Here is the html http://www.pastie.org/947053
CSS
@charset "utf-8";
/* CSS Document */
#background {
background-repeat:repeat;
background-image: url(Images/infiniti_logo.png);
}
#wrapper {
background-color:#096;
width: 800px;
margin-right: auto;
margin-left: auto;
}
#banner {
height: 200px;
width: 800px;
margin-right: auto;
margin-left: auto;
}
#content {background-color: #096}
#table {
background-color: #69Fs;
display:block;
margin:0 auto;
text-align:center;
border: thick double #000;
}
#form {background-color:#096;
width: 800px;
margin-right: auto;
margin-left: auto}
#links {margin:0 auto;}
#links ul {list-style-type: none; padding: 0px; margin: 0px}
#links li {display: block; font-size: 14px;
width: 100px; height: 33px; text-align: center; margin-right: 2px}
#links a {display: block; color: white; text-decoration: none; margin-top: 5px}
#links a:hover {color: black}
#input buttons {margin:0 auto;
float:left}
p {
padding-right: 15px;
padding-left: 15px;
}
img {
display:block; /*allows the element to take auto margins*/
margin:0 auto; /*centers in compliant browsers*/
text-align:center; /*centers in old versions of IE*/
}
h1 { text-align:center}
.home{
float:left;
display:inline;
}
.mods {
float:left;
display:inline;
}
.contact {
float:left;
display:inline;
}
I have two screen shots to show you the pages in question.
Here is the html http://www.pastie.org/947047
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Contact</title>
<style type="text/css">
</style>
<link href="myG35.css" rel="stylesheet" type="text/css" />
</head>
<body background="Images/infiniti_logo.png">
<div id="banner"><img src="Images/Banner.jpg" width="800" height="200" alt="banner" /></div>
<div id="links">
<ul>
<li><a href="MyG35.html">Home</a></li>
<li><a href="G35 Mod Table.html">Mods</a></li>
<li><a href="Contact.html">Contact</a></li>
<li><a href="links.html">Links</a></li>
<li><a href="media.html">Media</a></li>
</ul>
</div>
<div id="wrapper">
<div id="form">
<form name="contactForm" id="contactForm"
action="http://www.browng35.com/contact"
method="post">
<input type="hidden" name="eMail" id="eMail"
value="kilday111@gmail.com" />
<fieldset id="contact">
<legend>Contact Information</legend>
<label class="blockLabel">
First Name
<input type="text" id="firstName" name="firstName" />
</label>
<label class="blockLabel">
<br />
Last Name
<input type="text" id="lastName" name="lastName" />
</label>
<label class="blockLabel">
<br />
Phone
<input type="text" id="phone" name="phone" />
<br />
</label>
<label class="blockLabel">
Street Address
<input type="text" id="street" name="street" />
</label>
<label class="blockLabel">
<br />
City
<input type="text" id="city" name="city" />
</label>
<label>
State
<input type="text" id="state" name="state" maxlength="2" />
<br />
</label>
<label>
Zip
<input type="text" id="zip" name="zip" maxlength="10" />
</label>
</fieldset>
<fieldset id="foundMe">
<legend>Just a few questions</legend>
<label class="blockLabel">
Did you enjoy my site?
<input type="radio" id="yes" name="yes" />
<option value="secret">Yes</option>
<input type="radio" id="No" name="No" />
<option value="other">No</option>
<br />
</label>
<label class="blockLabel">
How did you find my site?
<select id="website" name="website">
<option value="G35">G35driver.com</option>
<option value="350Z">My350Z.com</option>
<option value="Google">Google</option>
<option value="fb">Facebook</option>
<option value="secret">Its a Secret</option>
<option value="other">Other</option>
</select>
</label>
<label class="blockLabel">
<br />
What do you drive?
<select id="yourCar" name="yourCar">
<option>G35 sedan</option>
<option>G35 coupe</option>
<option>G37 sedan</option>
<option>G37 coupe</option>
<option>M35</option>
<option>M45</option>
<option>300zx</option>
<option>350Z</option>
<option>370Z</option>
<option>240sx</option>
<option>other </option>
</select>
</label>
</fieldset>
<fieldset id="feedback">
<legend>Feedback</legend>
<label>
<input type="checkbox" id="signUp" name="signUp" />
I'm very interested in keeping up with your site and car.
</label>
<label for="comments" class="blockLabel"><br />
Comments</label>
<textarea id="comments" name="comments" rows="5" cols="50"></textarea>
</fieldset>
<input type="submit" value="Send my info and comments" />
<input type="reset" value="Your car is ugly! please send me to google!" />
</form>
</div>
</div>
</body>
</html>
Here is the html http://www.pastie.org/947053
CSS
@charset "utf-8";
/* CSS Document */
#background {
background-repeat:repeat;
background-image: url(Images/infiniti_logo.png);
}
#wrapper {
background-color:#096;
width: 800px;
margin-right: auto;
margin-left: auto;
}
#banner {
height: 200px;
width: 800px;
margin-right: auto;
margin-left: auto;
}
#content {background-color: #096}
#table {
background-color: #69Fs;
display:block;
margin:0 auto;
text-align:center;
border: thick double #000;
}
#form {background-color:#096;
width: 800px;
margin-right: auto;
margin-left: auto}
#links {margin:0 auto;}
#links ul {list-style-type: none; padding: 0px; margin: 0px}
#links li {display: block; font-size: 14px;
width: 100px; height: 33px; text-align: center; margin-right: 2px}
#links a {display: block; color: white; text-decoration: none; margin-top: 5px}
#links a:hover {color: black}
#input buttons {margin:0 auto;
float:left}
p {
padding-right: 15px;
padding-left: 15px;
}
img {
display:block; /*allows the element to take auto margins*/
margin:0 auto; /*centers in compliant browsers*/
text-align:center; /*centers in old versions of IE*/
}
h1 { text-align:center}
.home{
float:left;
display:inline;
}
.mods {
float:left;
display:inline;
}
.contact {
float:left;
display:inline;
}