Jump to content

Recommended Posts

Posted

I'm embarrassed to even post this, because it should be so darn simple. I'm scratching a bald spot on my scalp!

 

Have a look http://www.plainvanillagraphics.com/Kats/index.html

 

I (obviously!) want the text "Kat's Family Hair Care" to appear up in the banner next to the logo. I have "floated" and "cleared" made new div's but it just sits down there like a dog turd!

 

Help?

 

Alfie

Posted (edited)

Floats and all that stuff are tricky sometimes. I cleaned up the html (only in the banner area), got rid of the corresponding css, and added some css. Works in all...

 

 

Kats Family Hair Care

 

 

 

 

Some text here. vmwo9ovj ms.kfe qmvoe

 

 

 

Edited by Eric
Posted

Sure, the float (h1) needs to be above the img in the html. vertical-align: bottom was for ie6 otherwise it has a small space below the image. This is because an image is an inline element and therfore, by default, it's allowing room for things such as the tail of a "p". You can also fix that by giving the image display block, or the banner overflow hidden, or font-size 0.

 

There are many ways to do what you wanted. Just use whatever you understand better.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...