Jump to content
Sign in to follow this  
jgbr

Turn a title into a picture

Recommended Posts

jgbr

Ok so you've got a boring title to a section, how do you convert that into custom picture? For example: My archives widget just has the title of typed front of "Archives" i want to replace it with a nice little graphic i did which is 30 by 60 pixels and a funky achives picture... what would my custom css code be?

Share this post


Link to post
Share on other sites
jgbr
VRVii.png and i want to supplment the header (which is boring text) with say a graphic like this: 751OC.gif does that make sense? (im on local dev so can't show)

Share this post


Link to post
Share on other sites
kastelic

Set the .widget-title element to a block level element, give it a width and height to match your image, and set the image as its background. Then either give it font-size:0 or text-indent:-9999. Like this:

	#widget-id .widget-title{
	display:block;
	width:250px;
	height:100px;
	background: url(YOURIMAGEURL) no-repeat;
	font-size:0;
	}
	

Share this post


Link to post
Share on other sites

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

Sign in to follow this  

×