Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-19-2012, 04:43 AM   PM User | #1
TheEtc
New Coder

 
Join Date: Oct 2012
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
TheEtc is an unknown quantity at this point
Hide Text from Widget Title But Keep the Title Image

Hey guys, I was wondering if you could help me with a problem that's bugging me quite a bit.

I'm editing a Blogger site of mine and I'd like some particular widgets to have images for titles instead of just text with an image background. So far, I've been able to get the sprite to line up correctly for each section, but I can't seem to get the text from the title to disappear. Everything I've tried so far, such as display:none; or simply not naming the widget results in the entire title disappearing - image included. When I try to replace the <data:title/> line with <img src="sprite.png"> I end up with the entire sprite image. I've changed the style position and moved it around, but it shows up on top of the title (rendering the border pointless) and with the rest of the sprite instead of that section being hidden.

If I'm working with the following code for getting the sprite to work for each widget (haven't figured out a better way to do it - if you have suggestions, send them away!) then how can I get each of these widgets to not show the title text, but keep the title border and everything similar to that?

Code:
#HTML6 h2 {
background: url(sprite image link);
background-position:0 -210px;
}

#HTML16 h2 {
background: url(same sprite's image link);
background-position:0 -490px;
}
Any and all help is greatly appreciated.
TheEtc is offline   Reply With Quote
Old 10-19-2012, 12:35 PM   PM User | #2
Custard7A
Regular Coder

 
Custard7A's Avatar
 
Join Date: Jul 2010
Location: Australia
Posts: 269
Thanks: 32
Thanked 32 Times in 32 Posts
Custard7A is an unknown quantity at this point
Right, so you're looking for a hack-around, since the widget won't let you have no title?

Try entering &nbsp; as the widget title. If that doesn't work, or you'd rather not have a non-breaking space there, then please post the related HTML too. I'd rather know that before suggesting code changes.
Custard7A is offline   Reply With Quote
Users who have thanked Custard7A for this post:
TheEtc (10-20-2012)
Old 10-20-2012, 01:15 AM   PM User | #3
TheEtc
New Coder

 
Join Date: Oct 2012
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
TheEtc is an unknown quantity at this point
That works perfectly! Thank you very much, Custard. This was driving me nuts lol
TheEtc is offline   Reply With Quote
Reply

Bookmarks

Tags
blogger, sprite, title, widget

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:59 PM.


Advertisement
Log in to turn off these ads.