Skip to content
WJunction - Webmaster Forum

Need a little css fix

Status
Not open for further replies.

Divvy

Experienced Member
806
2009
18
Hi guys,

I need some help here with my website logo.

This was should look:
http://i.imgur.com/1NR1LKR.png

But instead, is appearing like that:
http://i.imgur.com/hHACa2R.png

See that background hover "Best list of"?
I want to disappear, but only in the logo, not in the categories...

I think that this is because I'm using <h1> tag:
PHP:
<span class="logo">
<h1><a href="http://www.domain.com">Page title here</a></h1>
</span>

Here is some important CSS lines that I think that are important to solve this:
PHP:
h1{
background:url(../images/list_heading_ebony.png) no-repeat;
margin:0px;
padding:0px;
width:220px;
float:left;
height:40px;
text-align:center;
}

PHP:
.logo h1 a {
display: block;text-indent: -999em; /* Hides text in a search engine friendly way*/
width: 235px;
height: 110px;
background-image: url(../../images/logoebony.png);
}

What I am doing wrong?
I really appreciated if someone could help me, thanks!
msp_smile.gif


Regards,
Tim
 

2 comments

Perfect RT, thank you very much!

Was not to replace right?

I have this two working together:

PHP:
.logo h1 {
background: none;
}

PHP:
.logo h1 a {
display: block;text-indent: -999em; /* Hides text in a search engine friendly way*/
width: 235px;
height: 110px;
background-image: url(../../images/logoebony.png);
}

The result:
http://i.imgur.com/hcvxZ8k.png

And now seems to work great!

Thank you buddy! :D
 
Status
Not open for further replies.

About the author

D
Experienced Member · Joined
806
Messages
18
Reactions
18
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom