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 01-20-2012, 11:21 AM   PM User | #1
punchxcore
New Coder

 
Join Date: Dec 2011
Posts: 22
Thanks: 2
Thanked 0 Times in 0 Posts
punchxcore is an unknown quantity at this point
Styling h1 tags with image AND text

How would I go about styling an H1 tag so the text shows within the image? I've tried searching and trying the markup but it doesn't work. I am basically wanting to use H1 tags to divide sections within a page but make my own header image so the text shows within the image.
punchxcore is offline   Reply With Quote
Old 01-20-2012, 12:02 PM   PM User | #2
Arbitrator
Senior Coder

 
Arbitrator's Avatar
 
Join Date: Mar 2006
Location: Splendora, Texas, United States of America
Posts: 2,927
Thanks: 6
Thanked 194 Times in 191 Posts
Arbitrator is on a distinguished road
h1 { background-image: url("http://example.com/image.png"); } applied to <h1>My Header Text</h1>?
__________________
Please for the love of god stop making IE. You current "browser"s cause me to cry every day. —Phil *
Arbitrator is offline   Reply With Quote
Reply

Bookmarks

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 01:48 AM.


Advertisement
Log in to turn off these ads.