here_is_gone
In Runtime
- Messages
- 168
I'm creating a two-column web page in CSS and I'm having a problem with the right column extending into the left column (image below).
HTML:
CSS
Thanks!
HTML:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> Your Title Here </title>
<meta name="Generator" content="Alleycode HTML Editor">
<meta name="Description" content="Your description here...">
<meta name="Keywords" content="Your keywords here...">
<link rel="stylesheet" type="text/css" href=".\bradyounglawcss.css">
</head>
<body>
<div id="maincontainer">
<div id="header">
<h1>Bradford M. Young</h1>
<h2>Attorney At Law</h2>
</div>
<div id="navbar">
<ul>
<li><a href="home.htm">Home</a></li>
<hr>
<li><a href="aboutme.htm">About Me</a></li>
<hr>
<li><a href="fees.htm">Fees</a></li>
<hr>
<li><a href="areaspractice.htm">Areas of Practice</a></li
<hr>
<li><a href="resume.htm">Resume</a></li>
<hr>
<li><a href="attentionlawyers.htm">A Note For Other Lawyers</a></li>
<hr>
<li><a href="contact.htm">Contact Information</a></li>
<hr>
<li><a href="disclaimer.htm">Disclaimer</a></li>
<hr>
</ul>
</div>
<div id="textblock">
<br>
<center>
<table width="200px" border="1">
<tr>
<td>
<img src="file:///C:/Documents%20and%20Settings/Kyle%20Young/Desktop/sitepicture2.jpg" alt="sitepicture2.jpg" height="230" width="180"></center>
</td>
</tr>
</table>
</div>
</body>
</html>
CSS
Code:
body {background-color: #D2EBFF; font-family: arial}
#maincontainer {width: 70%; height: 100%; margin-left: auto; margin-right: auto; background-color: #FFF}
#header {width: 100%; height: 20%; border-style: solid}
#header h1 {text-align: center;}
#header h2 {text-align: center; }
#navbar {width: 25%; height: 60%; background-color: #0095BF; float: left;}
#navbar ul li {text-align: left; color: #FFF; font-weight: bold; list-style-type: none}
#navbar hr {width: 75%; margin-right: 50%}
#navbar a {color: #FEE}
#navbar a:hover {background-color: #2D6912}
#textblock {width: 75%; height: 100%; background-color: #FFF; float: right}
#textblock table {background-color: #D2EBFF}
#textblock td {padding: 5px;}
Thanks!