
Jul 3rd, 2007, 11:33
|
 |
Moderator
|
|
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
|
|
|
Re: Re-coding problem
Try this (im not sure that it will work, but it should):
CSS (default. css):
- Code: Select all
{
background-color: #DCDBDB;
color: #000000;
font-family: "Times New Roman", Arial, sans-serif;
}
h3
{
margin-top: 0;
margin-bottom: 0;
margin-left: 10px;
font-size: 110%;
font-weight: bold;
text-align: left;
color: #C30E0E;
}
h4
{
margin-top: 0;
margin-bottom: 10px;
margin-left: 5px;
font-size: large;
color: #C30E0E;
}
a:link
{
color: #302b27;
}
a:hover
{
color: #10C5F0;
font-weight: bold;
font-size: 80%;
}
a.footer:hover
{
color: #10C5F0;
font-size: 12px;
text-decoration: underline;
}
a.side_nav
{
font-size: small;
margin-top: 5px;
margin-bottom: 10px;
margin-left: 30px;
}
p.paragraph
{
margin-left: 5px;
margin-right: 5px;
margin-top: 5px;
text-indent: 10px;
}
#main
{
width: 70%;
height: 100%;
background-color: #fefefe;
border-style: solid;
border-color: black;
border-width: 1px;
margin-left: auto;
margin-right: auto;
}
#logo_area
{
border-bottom-style: dotted;
border-bottom-color: black;
border-bottom-width: 1px;
}
#logo
{
width: 282px;
height: 71px;
margin-left: 20px;
margin-top: 20px;
margin-bottom: 20px;
}
#navigation
{
float: left;
width: 20%;
height: 100%;
margin-top: 0;
margin-right: 10px;
border-right-style: dotted;
border-right-color: black;
border-right-width: 1px;
}
#content
{
margin-top: 0;
float:right;
width:78%;
}
#footer
{
text-align: center;
font-size: small;
border-top-style: dotted;
border-top-color: black;
border-top-width: 1px;
clear:both
}
#w3c
{
text-align: center;
} HTML:
- HTML: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Sample 2</title>
<link rel="stylesheet" type="text/css" href="default.css" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
</head>
<body>
<br />
<div id="main">
<!-- LOGO AREA -->
<div id="logo_area" height="20%">
<img id="logo" src="images/logo.png" alt="Logo" />
</div>
<!-- END LOGO AREA -->
<br />
<!-- NAVIGATION AREA -->
<div id="navigation" height="70%">
<h3>Navigation</h3>
<a class="side_nav" href="#">Link</a><br />
<a class="side_nav" href="#">Link</a><br />
<a class="side_nav" href="#">Link</a><br />
<br />
<h3>Navigation</h3>
<a class="side_nav" href="#">Link</a><br />
<a class="side_nav" href="#">Link</a><br />
<a class="side_nav" href="#">Link</a><br />
</div>
<!-- END NAVIGATION AREA -->
<!-- MAIN CONTENT AREA -->
<div id="content" height="70%">
<h4>Title</h4>
<p class="paragraph">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec non turpis. Integer sed nibh non purus eleifend
egestas. Vivamus urna ipsum, volutpat ac, viverra in, ornare vel, mi. Sed sapien elit, imperdiet eget, gravida
vitae, posuere vitae, nisi. Vivamus pellentesque. Pellentesque mattis vehicula ante. Praesent aliquam nisl nec
nulla. Mauris lobortis. Vestibulum justo quam, blandit quis, aliquet ut, lacinia sed, tellus. Nulla ac lorem at
lectus vulputate posuere. Nulla rutrum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere
cubilia Curae; Suspendisse potenti. Fusce vitae odio in elit interdum tempus. Sed urna. Integer blandit lacus non
augue. Cras dignissim.
</p>
<p class="paragraph">
Aenean eu dolor ac sem faucibus nonummy. Morbi interdum, velit non placerat aliquam, neque leo auctor libero,
volutpat egestas mauris nisi id dolor. Aliquam facilisis enim ultricies sapien. Cras aliquam sagittis nibh.
Curabitur tellus neque, viverra ut, porta non, luctus a, elit. Maecenas pede. Morbi massa. Aliquam erat volutpat.
Nullam volutpat lectus nec nibh. Ut tincidunt, purus eu faucibus rhoncus, eros dui molestie leo, vel molestie
eros mi ac ante.
</p>
</div>
<!-- END MAIN CONTENT AREA -->
<!-- FOOTER AREA -->
<p id="footer" height="10%">
<br />
Marc
|