Adrian.
Mar 4th, 2011, 03:42 PM
I should know how to do this, but I can't figure it out.
I just want to centre that nav menu at the top to the body:
Link: http://dl.dropbox.com/u/460029/blue/index.html
Here's the code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<!NAVIGATION_BAR>
<style type="text/css">
ul
{
list-style-type:none;
font-family: georgia, serif;
margin:0;
padding:0;
overflow:hidden;
width: 45em;
margin: auto;
}
ul a {
background-repeat: no-repeat;
background-position: right;
padding-right: 10px;
padding-left: 10px;
display: block;
line-height: 20px;
text-decoration: none;
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 17px;
color: #371C1C;
text-align: center;
}
li
{
float: left;
list-style: none;
padding: 20 em;
}
a
{
display:block;
width: 90px;
background-color:#fff;
}
ul a:hover {
color: #BBB;
}
.my-table
{
padding: 0;
margin: 0;
border-collapse: collapse;
border: 1px solid #333;
font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
font-size: 0.9em;
color: #000;
background: #bcd0e4 url("widget-table-bg.jpg") top left repeat-x;
}
.my-table caption
{
caption-side: bottom;
font-size: 0.9em;
font-style: italic;
text-align: right;
padding: 0.5em 0;
}
.my-table th, .my-table td
{
border: 1px dotted #666;
padding: 0.5em;
text-align: left;
color: #632a39;
}
.my-table th[scope=col]
{
color: #000;
background-color: #8fadcc;
text-transform: uppercase;
font-size: 0.9em;
border-bottom: 2px solid #333;
border-right: 2px solid #333;
}
.my-table th+th[scope=col]
{
color: #fff;
background-color: #7d98b3;
border-right: 1px dotted #666;
}
.my-table th[scope=row]
{
background-color: #b8cfe5;
border-right: 2px solid #333;
}
.my-table tr.alt th, .my-table tr.alt td
{
color: #2a4763;
}
.my-table tr:hover th[scope=row], .my-table tr:hover td
{
background-color: #632a2a;
color: #fff;
}
</style>
</head>
<body>
<ul id="navbar">
<li><a href="#home" style="text-decoration: none;">Home</a></li>
<li><a href="#news" style="text-decoration: none;">Origins</a></li>
<li><a href="#contact" style="text-decoration: none;">Posidinius</a></li>
<li><a href="#about" style="text-decoration: none;">Media</a></li>
<li><a href="#about" style="text-decoration: none;">Video</a></li>
</ul>
<!/NAVIGATION_BAR>
<title>antikythera mechanism</title>
<style type="text/css">
<!--
#content {
background-color: #fff;
padding: 10px;
width: 600px;
margin-right: auto;
margin-left: auto;
}
body {
font-family: Verdana, Geneva, sans-serif;
background-color: #EAFFEF;
}
h1 {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 24px;
border-bottom: solid 1px #ccc;
}
h3 {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 24px;
border-bottom: solid 1px #ccc;
}
p {
font-size: 12px;
}
img {
padding: 2px;
border: 0px solid #ccc;
noborder {padding:0 !important;}
float: left;
margin: 10px;
}
-->
</style>
<br>
</head>
<body>
<div id="content">
<h1> The Antikythera Mechanism </h1>
<IMG STYLE="position:absolute; TOP:39px; LEFT:775px; WIDTH:71px; HEIGHT:89px" SRC="images/logo.png">
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fricci.glendon.yorku.ca% 2Fcamara%2Fblue%2F&layout=standard&show_faces=fals e&width=450&action=like&colorscheme=light&height=3 5" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe>
<img style="border:1px solid #ccc;" src="images/antikytheramechanism.jpg" align="left"; border: 1px solid #ccc; alt="The antikythera mechanism is an ancient greek astrological calculating device">
<p>
The Antikythera mechanism is an ancient mechanical computer
designed to calculate astronomical positions. It was
recovered in 1901 from the Antikythera wreck.Its
significance and complexity were not understood until
decades later. Its time of construction is now estimated
between 150 and 100 BCE. The degree of mechanical sophistication
is comparable to a 19th century Swiss clock.Technological
artifacts of similar complexity and workmanship did not reappear
until the 14th century, when mechanical astronomical clocks were
built in Europe.
<br><br>
The mechanism is the oldest known complex scientific calculator.
It contains many gears, and is sometimes called the first known
analog computer,although its flawless manufacturing suggests that
it may have had a number of undiscovered predecessors during
the Hellenistic Period. It appears to be constructed upon theories
of astronomy and mathematics developed by Greek astronomers and it
is estimated that its origins are from around 150-100 BCE.
<br>
</p>
<br><br>
<div align=center>
<h3>Recent Literature</span> <span class="mw-headline" id="Literature"></span></h3>
</div>
<table class="my-table">
<tr>
<th scope="row">Books</th>
<td> <i>Ancient Inventions</i>, Thorpe (1996)</a></td>
<td><i>Gears from the Greeks</i>, de Solla (1976)</a></td>
<td><i>Decoding the Heaven</i>,Marchant (2008)</a></td>
</tr>
<tr class="alt">
<th scope="row">Articles</th>
<td><i>Nature</i>,2010</a></td>
<td><i>Astronomy & Geophysics</i>, 2001</a></td>
<td><i>Decoding an Ancient Computer</i>, Freeth (2009)</a></td>
</tr>
</table>
<p>
This website was made by Adrian Camara © 2011 All Rights Reserved.
</p>
</center>
</body>
I just want to centre that nav menu at the top to the body:
Link: http://dl.dropbox.com/u/460029/blue/index.html
Here's the code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<!NAVIGATION_BAR>
<style type="text/css">
ul
{
list-style-type:none;
font-family: georgia, serif;
margin:0;
padding:0;
overflow:hidden;
width: 45em;
margin: auto;
}
ul a {
background-repeat: no-repeat;
background-position: right;
padding-right: 10px;
padding-left: 10px;
display: block;
line-height: 20px;
text-decoration: none;
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 17px;
color: #371C1C;
text-align: center;
}
li
{
float: left;
list-style: none;
padding: 20 em;
}
a
{
display:block;
width: 90px;
background-color:#fff;
}
ul a:hover {
color: #BBB;
}
.my-table
{
padding: 0;
margin: 0;
border-collapse: collapse;
border: 1px solid #333;
font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
font-size: 0.9em;
color: #000;
background: #bcd0e4 url("widget-table-bg.jpg") top left repeat-x;
}
.my-table caption
{
caption-side: bottom;
font-size: 0.9em;
font-style: italic;
text-align: right;
padding: 0.5em 0;
}
.my-table th, .my-table td
{
border: 1px dotted #666;
padding: 0.5em;
text-align: left;
color: #632a39;
}
.my-table th[scope=col]
{
color: #000;
background-color: #8fadcc;
text-transform: uppercase;
font-size: 0.9em;
border-bottom: 2px solid #333;
border-right: 2px solid #333;
}
.my-table th+th[scope=col]
{
color: #fff;
background-color: #7d98b3;
border-right: 1px dotted #666;
}
.my-table th[scope=row]
{
background-color: #b8cfe5;
border-right: 2px solid #333;
}
.my-table tr.alt th, .my-table tr.alt td
{
color: #2a4763;
}
.my-table tr:hover th[scope=row], .my-table tr:hover td
{
background-color: #632a2a;
color: #fff;
}
</style>
</head>
<body>
<ul id="navbar">
<li><a href="#home" style="text-decoration: none;">Home</a></li>
<li><a href="#news" style="text-decoration: none;">Origins</a></li>
<li><a href="#contact" style="text-decoration: none;">Posidinius</a></li>
<li><a href="#about" style="text-decoration: none;">Media</a></li>
<li><a href="#about" style="text-decoration: none;">Video</a></li>
</ul>
<!/NAVIGATION_BAR>
<title>antikythera mechanism</title>
<style type="text/css">
<!--
#content {
background-color: #fff;
padding: 10px;
width: 600px;
margin-right: auto;
margin-left: auto;
}
body {
font-family: Verdana, Geneva, sans-serif;
background-color: #EAFFEF;
}
h1 {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 24px;
border-bottom: solid 1px #ccc;
}
h3 {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 24px;
border-bottom: solid 1px #ccc;
}
p {
font-size: 12px;
}
img {
padding: 2px;
border: 0px solid #ccc;
noborder {padding:0 !important;}
float: left;
margin: 10px;
}
-->
</style>
<br>
</head>
<body>
<div id="content">
<h1> The Antikythera Mechanism </h1>
<IMG STYLE="position:absolute; TOP:39px; LEFT:775px; WIDTH:71px; HEIGHT:89px" SRC="images/logo.png">
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fricci.glendon.yorku.ca% 2Fcamara%2Fblue%2F&layout=standard&show_faces=fals e&width=450&action=like&colorscheme=light&height=3 5" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe>
<img style="border:1px solid #ccc;" src="images/antikytheramechanism.jpg" align="left"; border: 1px solid #ccc; alt="The antikythera mechanism is an ancient greek astrological calculating device">
<p>
The Antikythera mechanism is an ancient mechanical computer
designed to calculate astronomical positions. It was
recovered in 1901 from the Antikythera wreck.Its
significance and complexity were not understood until
decades later. Its time of construction is now estimated
between 150 and 100 BCE. The degree of mechanical sophistication
is comparable to a 19th century Swiss clock.Technological
artifacts of similar complexity and workmanship did not reappear
until the 14th century, when mechanical astronomical clocks were
built in Europe.
<br><br>
The mechanism is the oldest known complex scientific calculator.
It contains many gears, and is sometimes called the first known
analog computer,although its flawless manufacturing suggests that
it may have had a number of undiscovered predecessors during
the Hellenistic Period. It appears to be constructed upon theories
of astronomy and mathematics developed by Greek astronomers and it
is estimated that its origins are from around 150-100 BCE.
<br>
</p>
<br><br>
<div align=center>
<h3>Recent Literature</span> <span class="mw-headline" id="Literature"></span></h3>
</div>
<table class="my-table">
<tr>
<th scope="row">Books</th>
<td> <i>Ancient Inventions</i>, Thorpe (1996)</a></td>
<td><i>Gears from the Greeks</i>, de Solla (1976)</a></td>
<td><i>Decoding the Heaven</i>,Marchant (2008)</a></td>
</tr>
<tr class="alt">
<th scope="row">Articles</th>
<td><i>Nature</i>,2010</a></td>
<td><i>Astronomy & Geophysics</i>, 2001</a></td>
<td><i>Decoding an Ancient Computer</i>, Freeth (2009)</a></td>
</tr>
</table>
<p>
This website was made by Adrian Camara © 2011 All Rights Reserved.
</p>
</center>
</body>