|
-
heading background increment with text
hi guys, i have a common situation where i have a:
<div style="width:600px;">
inside i have:
<h1> title </h1>
this is the heading css:
h1 {background: #16A2DD url("../images/titlearrow.jpg") bottom right no-repeat; height:30px;}
What happens is that the background of the heading goes all the way to the end of the div (600px) instead of being proportional to the title text.
I could give the width to the heading but that would be a problem when my client will change the title to something else.... longer or shorter.
I'm looking for a solution on how to have a background color incrementing with the text changes.
Thanks in advance...
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|
Bookmarks