Hi,
For the header you need to use the "fixed-height" setting in the js.
e.g.
Code:
<script type="text/javascript">
window.onload=function(){
Nifty("div#container");
Nifty("div#content","same-height small");
Nifty("div#footer","small");
Nifty("div#header","small fixed-height");
}
</script>
Then you need to clear the floated image in the header because it is upsetting the corners somehow.
This seems to fix it.
Code:
<div id="container">
<div id="header"> <a href="/"><img src="http://sandiegosbroker.com/images/logo.png" alt="Click to return to the home page" width="250" height="28" border="0" id="logo" /></a> <img src="http://sandiegosbroker.com/images/headshot.gif" alt="George" style="float:right"/>
<div style="clear:both;width:100%"></div>
<div id="tabs">
<ul>
<li id="Home"><a href="/"><span>Home</span></a></li>
<li class="services"><a href="" class="services"><span>Services</span></a></li>
<li class="portfolio"><a href="" class="portfolio"><span>Portfolio</span></a></li>
<li class="contact"><a href="" class="contact"><span>Contact</span></a></li>
</ul>
</div>
</div>
<div id="content">
Of course you could make it class or perhaps neater would be to use more semantic html as inline elements shouldn't be left hanging in mid air.
e.g.
Code:
<div id="header">
<p class="logo"><a href="/"><img src="http://sandiegosbroker.com/images/logo.png" alt="Click to return to the home page" width="250" height="28" border="0" id="logo" /></a> <img src="http://sandiegosbroker.com/images/headshot.gif" alt="George" style="float:right"/></p>
<div id="tabs">
<ul>
<li id="Home"><a href="/"><span>Home</span></a></li>
<li class="services"><a href="" class="services"><span>Services</span></a></li>
<li class="portfolio"><a href="" class="portfolio"><span>Portfolio</span></a></li>
<li class="contact"><a href="" class="contact"><span>Contact</span></a></li>
</ul>
</div>
</div>
Code:
p.logo {
width:100%;
overflow:hidden;
margin:0;
}
Bookmarks