HookedOnWinter
06-03-2008, 09:49 PM
Mouthful of a title.
Ok, so I'm using some Joomla here, which makes this a little more interesting. I have a fixed footer, and centered in that is an in-line list menu. I'm trying to get each of those menu items to have the same width, have the text within centered within that width (so the item might be 160px wide, and the text is centered in that), and have the entire list centered on the page.
However, it's not working. There's a 10px (or so) margin or padding on the left side, and I can't figure out where it's coming from.
The live site is laaus.hookedonwinter.com (http://laaus.hookedonwinter.com) (the main page is a good clean example).
<!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" xml:lang="en-gb" lang="en-gb" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="index, follow" />
<meta name="keywords" content="La'au's Taco Shop, Colorado Springs, CO" />
<meta name="description" content="La'au's Taco Shop, Colorado Springs, CO" />
<meta name="generator" content="Joomla! 1.5 - Open Source Content Management" />
<title>La'au's Taco Shop</title>
<link href="/index.php?format=feed&type=rss" rel="alternate" type="application/rss+xml" title="RSS 2.0" />
<link href="/index.php?format=feed&type=atom" rel="alternate" type="application/atom+xml" title="Atom 1.0" />
<script type="text/javascript" src="/media/system/js/mootools.js"></script>
<script type="text/javascript" src="/media/system/js/caption.js"></script>
<link rel="stylesheet" href="/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="/templates/laaus_template/css/template.css" type="text/css" />
<link rel="stylesheet" href="/templates/laaus_template/css/blue.css" type="text/css" />
<link rel="stylesheet" href="/templates/laaus_template/css/blue_bg.css" type="text/css" />
<!--[if lte IE 6]>
<link href="/templates/laaus_template/css/ieonly.css" rel="stylesheet" type="text/css" />
<![endif]-->
<script type="text/javascript" src="/js/prototype.js"></script>
<script type="text/javascript" src="/js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="/js/lightbox.js"></script>
<link rel="stylesheet" href="/css/lightbox.css" type="text/css" media="screen" />
</head>
<body id="page_bg" class="color_blue bg_blue">
<div id="footerContainer">
<div id="footer">
<ul class="menu" id="mainmenu"><li id="current" class="active item1"><a href="http://laaus.hookedonwinter.com/"><span>Home</span></a></li><li class="item54"><a href="/index.php?option=com_wrapper&view=wrapper&Itemid=54"><span>Menu</span></a></li><li class="item55"><a href="/index.php?option=com_content&view=article&id=46&Itemid=55"><span>Directions</span></a></li><li class="item56"><a href="/index.php?option=com_content&view=article&id=47&Itemid=56"><span>Gallery</span></a></li><li class="item57"><a href="/index.php?option=com_content&view=article&id=49&Itemid=57"><span>About</span></a></li></ul>
</div>
</div>
<div id="content">
<div class="center" align="center">
<div id="logo">
<div class="front_page_logo"><img src="/images/stories/site/laauslogo800_invert.gif" border="0" alt="La'au's Taco Shop" /></div>
</div>
<div id="header">
</div>
<div id="top">
</div>
<div id="breadcrumb">
<!-- <span class="breadcrumbs pathway">
Home</span> -->
</div>
<div id="main">
<table class="blog" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
</td>
</tr>
</table>
<div id="left">
<!-- Left -->
</div>
<div id="right">
<!-- Right -->
</div>
</div>
<div id="debug">
</div>
</div>
</div>
</body>
</html>
/* La'au's CSS
/*
/* Colors
/* Black - black
/* White - white
/* Orange - ED6B3A
/* Green - A2E852
/* Dark Gray - 666
/* Light Gray - aaa
*/
body{
background-color: white;
color: black;
font-family: Helvetica, Arial, sans-serif;
margin:0;
padding:0 0 25px 0;
}
div#footerContainer{
position:absolute;
bottom:0;
left:0;
width:100%;
height:55px;
background-color: white;
border-top: solid thin black;
}
@media screen{
body>div#footerContainer{
position: fixed;
}
}
* html body{
overflow:hidden;
}
* html div#content{
height:100%;
overflow:auto;
}
#logo{
}
#logo img{
margin: 25px 0;
}
#header{
}
#breadcrumb{
}
#top{
}
#main{
width:800px;
margin:0 auto 50px auto;
}
#debug{
}
#mainmenu{
}
ul#mainmenu{
}
#footer{
width: 800px;
margin: 0 auto;
border: solid thin black;
}
#mainmenu li{
display: block;
width: 155px;
float: left;
border: solid thin black;
margin: 1px;
text-align: center;
padding: 2px 0;
}
#mainmenu li a{
font-size: x-large;
}
a{
text-decoration: none;
}
a:link, a:visited{
/*
orange
color: #ED6B3A;
*/
color: #666;
}
a:hover{
/*green
color: #A2E852;*/
color: #aaa;
}
.gallery img{
cursor: pointer;
border: solid thin #A2E852;
}
Ok, so I'm using some Joomla here, which makes this a little more interesting. I have a fixed footer, and centered in that is an in-line list menu. I'm trying to get each of those menu items to have the same width, have the text within centered within that width (so the item might be 160px wide, and the text is centered in that), and have the entire list centered on the page.
However, it's not working. There's a 10px (or so) margin or padding on the left side, and I can't figure out where it's coming from.
The live site is laaus.hookedonwinter.com (http://laaus.hookedonwinter.com) (the main page is a good clean example).
<!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" xml:lang="en-gb" lang="en-gb" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="index, follow" />
<meta name="keywords" content="La'au's Taco Shop, Colorado Springs, CO" />
<meta name="description" content="La'au's Taco Shop, Colorado Springs, CO" />
<meta name="generator" content="Joomla! 1.5 - Open Source Content Management" />
<title>La'au's Taco Shop</title>
<link href="/index.php?format=feed&type=rss" rel="alternate" type="application/rss+xml" title="RSS 2.0" />
<link href="/index.php?format=feed&type=atom" rel="alternate" type="application/atom+xml" title="Atom 1.0" />
<script type="text/javascript" src="/media/system/js/mootools.js"></script>
<script type="text/javascript" src="/media/system/js/caption.js"></script>
<link rel="stylesheet" href="/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="/templates/laaus_template/css/template.css" type="text/css" />
<link rel="stylesheet" href="/templates/laaus_template/css/blue.css" type="text/css" />
<link rel="stylesheet" href="/templates/laaus_template/css/blue_bg.css" type="text/css" />
<!--[if lte IE 6]>
<link href="/templates/laaus_template/css/ieonly.css" rel="stylesheet" type="text/css" />
<![endif]-->
<script type="text/javascript" src="/js/prototype.js"></script>
<script type="text/javascript" src="/js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="/js/lightbox.js"></script>
<link rel="stylesheet" href="/css/lightbox.css" type="text/css" media="screen" />
</head>
<body id="page_bg" class="color_blue bg_blue">
<div id="footerContainer">
<div id="footer">
<ul class="menu" id="mainmenu"><li id="current" class="active item1"><a href="http://laaus.hookedonwinter.com/"><span>Home</span></a></li><li class="item54"><a href="/index.php?option=com_wrapper&view=wrapper&Itemid=54"><span>Menu</span></a></li><li class="item55"><a href="/index.php?option=com_content&view=article&id=46&Itemid=55"><span>Directions</span></a></li><li class="item56"><a href="/index.php?option=com_content&view=article&id=47&Itemid=56"><span>Gallery</span></a></li><li class="item57"><a href="/index.php?option=com_content&view=article&id=49&Itemid=57"><span>About</span></a></li></ul>
</div>
</div>
<div id="content">
<div class="center" align="center">
<div id="logo">
<div class="front_page_logo"><img src="/images/stories/site/laauslogo800_invert.gif" border="0" alt="La'au's Taco Shop" /></div>
</div>
<div id="header">
</div>
<div id="top">
</div>
<div id="breadcrumb">
<!-- <span class="breadcrumbs pathway">
Home</span> -->
</div>
<div id="main">
<table class="blog" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
</td>
</tr>
</table>
<div id="left">
<!-- Left -->
</div>
<div id="right">
<!-- Right -->
</div>
</div>
<div id="debug">
</div>
</div>
</div>
</body>
</html>
/* La'au's CSS
/*
/* Colors
/* Black - black
/* White - white
/* Orange - ED6B3A
/* Green - A2E852
/* Dark Gray - 666
/* Light Gray - aaa
*/
body{
background-color: white;
color: black;
font-family: Helvetica, Arial, sans-serif;
margin:0;
padding:0 0 25px 0;
}
div#footerContainer{
position:absolute;
bottom:0;
left:0;
width:100%;
height:55px;
background-color: white;
border-top: solid thin black;
}
@media screen{
body>div#footerContainer{
position: fixed;
}
}
* html body{
overflow:hidden;
}
* html div#content{
height:100%;
overflow:auto;
}
#logo{
}
#logo img{
margin: 25px 0;
}
#header{
}
#breadcrumb{
}
#top{
}
#main{
width:800px;
margin:0 auto 50px auto;
}
#debug{
}
#mainmenu{
}
ul#mainmenu{
}
#footer{
width: 800px;
margin: 0 auto;
border: solid thin black;
}
#mainmenu li{
display: block;
width: 155px;
float: left;
border: solid thin black;
margin: 1px;
text-align: center;
padding: 2px 0;
}
#mainmenu li a{
font-size: x-large;
}
a{
text-decoration: none;
}
a:link, a:visited{
/*
orange
color: #ED6B3A;
*/
color: #666;
}
a:hover{
/*green
color: #A2E852;*/
color: #aaa;
}
.gallery img{
cursor: pointer;
border: solid thin #A2E852;
}