Hi
I'm strugleing with laying out a page masthead with an image to the
left and right and some text in the middle and all inline with each
other. Here's my html and css so far:
<style type="text/css">
div#header {
margin: 0 auto;
padding: 0;
width: 100%;
color: #fff;
background: #5A5D5A;
border-bottom: 2px solid #fff;
}
div#header h1 {
margin: 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
width: 33%;
}
div#header a#left-link {
margin: 0;
padding: 0;
float: left;
width: 33%;
}
div#header a#right-link {
margin: 0;
padding: 0;
float: right;
width: 33%;
}
</style>
....html...
<div id="header">
<a href="#" id="left-link">
<img src="/admin/images/empetus-logo.gif" width="182" height="34"
alt="Empetus website" />
</a>
<h1>Admin Area</h1>
<a href="#" id="right-link">
<img src="/admin/images/wrench.gif" width="30" height="30"
alt="Request support" />
</a>
</div>
I've tried a number of methods including float: left and float: right
on the links but I never seem to be able to get the line up I need. Do
I need to wrap each element i.e. the [a href] in divs of their own and
if so what should the css look like?
Many thanks
Andrew