
Originally Posted by
boogyman
welcome to the forums. please review our posting policies and regulations located in "The Lounge" Section especially in regards to #8 (computer code)
with just your css I would suggest something like
Code:
#modernbricksmenu {
margin: 0 auto;
width: 100%;
text-align:center;
}
#modernbricksmenu ul {
text-align: left;
}
however without seeing your html code I cannot be certain that is the proper alignment sequence
Thanks for the welcome and I apologize for "jumping the gun".
I tried what you suggested with no luck.
Here is the CSS:
Code:
/*Credits: Dynamic Drive CSS Library */
/*URL: http://www.dynamicdrive.com/style/ */
#modernbricksmenu{
padding: 0;
width: 100%;
background: transparent;
voice-family: "\"}\"";
voice-family: inherit;
}
#modernbricksmenu ul{
font: bold 11px Arial;
margin:0;
margin-left: 40px; /*margin between first menu item and left browser edge*/
padding: 0;
list-style: none;
}
#modernbricksmenu li{
display: inline;
margin: 0 2px 0 0;
padding: 0;
text-transform:uppercase;
}
#modernbricksmenu a{
float: left;
display: block;
color: white;
margin: 0 1px 0 0; /*Margin between each menu item*/
padding: 5px 10px;
text-decoration: none;
letter-spacing: 1px;
background-color: black; /*Default menu color*/
border-bottom: 1px solid white;
}
#modernbricksmenu a:hover{
background-color: gray; /*Menu hover bgcolor*/
}
#modernbricksmenu #current a{ /*currently selected tab*/
background-color: #0000FF; /*Brown color theme*/
border-color: #0000FF; /*Brown color theme*/
}
#modernbricksmenuline{
clear: both;
padding: 0;
width: 100%;
height: 5px;
line-height: 5px;
background: #0000FF; /*Brown color theme*/
}
/* By default (td, body..) use verdana in black. */
body, td, th , tr
{
color: #000000;
font-size: 14pt;
font-family: verdana, sans-serif;
}
/* The main body of the entire site. */
body
{
background-color: #E5E5E8;
margin: 0px;
padding: 12px 30px 4px 30px;
}
h1 {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 28px;
color: #FF0000;
}
And here is the HTML on my home page:
Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Kevin's Space</title>
<link href="wkev.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="modernbricksmenu">
<ul>
<li id="current"><a href="wkevindex.htm" title="Home">Home</a></li>
<li><a href="wkevpizza.htm" title="pizza">My Pizza</a></li>
<li><a href="wkevsheba.htm" title="sheba">My Siberian Husky</a></li>
<li><a href="wkevmusic.htm" title="music">My Music</a></li>
<li><a href="http://www.wkevin.com/gefsboard" title="gefs">Google Earth Flight Simulator Forum</a></li>
<li><a>kevinw@wkevin.com</a></li>
</ul>
</div>
<div id="modernbricksmenuline"> </div>
<div align="center">
<h1>Kevin's Space</h1>
<p>Myself and Sheba in Lancaster, New Hampshire, 2005</p>
<img src="kevshebanh.jpg">
</div>
</body>
</html>
My website is http://wkevin.com
I can live with it the way it is now but I would like to be able to center the menu.
Thanks for your time. This place is a wealth of information!
Bookmarks