I am trying to place text to the right of an image, (logo) but the text stays at the top of the image (to the right) I have tried to add a margin to the top of the text, it moves the image too...
here is the specific piece of code:
PHP Code:
<div class="logo"></div> <div class="clear"></div> <div class="header"> <!--header stuff goes here --> Pamper Babes </div>
I did have it like
PHP Code:
<div class="header"> <!--header stuff goes here --> <div class="logo"></div> <div class="clear"></div> Pamper Babes </div>
but just done the exact same.
Code:
.header {
font-size:50px;
font-weight:bolder;
color:#ff30af;
text-align:left;
}
.logo {
background:url(images/logo.png) no-repeat;
height:100px;
width:100px;
display:block;
float:left;
}
Last edited by UUilliam; 07-02-2010 at 08:54 AM..
|