quartzy
11-14-2010, 01:50 AM
I am doing an header, that consists of left and right sides.
On the right side I have a background image that lays flush to the right. I want to add some text as a tagline before the background image, but the text is all swashed up to the image. Is there an easy way I can make this more spaced as I have tried a lot of things, like making the div size bigger and adding span tabs?
<div id="header">
<div id="left_header">
<h1><a href="www..uk" title=""><img height="86" alt="" src="" width="231" /></a></h1>
</div>
<div id="right_header">
<p>Recycle and donate<br />your unwanted furniture<br/>Tel: <br /><span class="caps">Lewisham Area</span></p></div></div><div class="clear"></div>
The css is #header {
display: block;
width: 90%;
height: 140px;
padding-top: 5%;
padding-bottom: 3%;
background: #fff;
padding-left: 2%; padding-right: 2%;
margin:0;
}
#left_header {position: relative; float:left; width: 48%; height: 90px;}
#right_header {background: url('recycle_cm1.jpg');
background-repeat: no-repeat;
background-position: top right;
font-family: Arial, sans-serif, Verdana;
color: #666666;
position: relative;
width: 50%;
height: 150px;
float: left;
margin-right: 14px; padding: 0; text-indent: 10px;
text-align: right;
}
#right_header p {margin: 0; padding: 0; text-align: center; }
.caps {text-transform: uppercase; color:purple; margin-right: 10px}
On the right side I have a background image that lays flush to the right. I want to add some text as a tagline before the background image, but the text is all swashed up to the image. Is there an easy way I can make this more spaced as I have tried a lot of things, like making the div size bigger and adding span tabs?
<div id="header">
<div id="left_header">
<h1><a href="www..uk" title=""><img height="86" alt="" src="" width="231" /></a></h1>
</div>
<div id="right_header">
<p>Recycle and donate<br />your unwanted furniture<br/>Tel: <br /><span class="caps">Lewisham Area</span></p></div></div><div class="clear"></div>
The css is #header {
display: block;
width: 90%;
height: 140px;
padding-top: 5%;
padding-bottom: 3%;
background: #fff;
padding-left: 2%; padding-right: 2%;
margin:0;
}
#left_header {position: relative; float:left; width: 48%; height: 90px;}
#right_header {background: url('recycle_cm1.jpg');
background-repeat: no-repeat;
background-position: top right;
font-family: Arial, sans-serif, Verdana;
color: #666666;
position: relative;
width: 50%;
height: 150px;
float: left;
margin-right: 14px; padding: 0; text-indent: 10px;
text-align: right;
}
#right_header p {margin: 0; padding: 0; text-align: center; }
.caps {text-transform: uppercase; color:purple; margin-right: 10px}