I am using a very light background behind a header/heading style. However, the background goes all the way across the window. Is there a way to limit the background to only be as long as the line of text?
Is there a way to limit the background of a heading?
Is there a way to limit the background of a heading?
You do not have the required permissions to view the files attached to this post.
Re: Is there a way to limit the background of a heading?
You could try.
But it could have some unwanted consequences (which I'm a little fuzzy on) so test carefully.
Code: Select all
display: inline-blockBut it could have some unwanted consequences (which I'm a little fuzzy on) so test carefully.
Re: Is there a way to limit the background of a heading?
sorry.. do i add that just to that style?
Thanks!
Thanks!
-
Chicago_HPT
- Sr. Propeller Head
- Posts: 133
- Joined: Sun Feb 03, 2013 6:01 pm
Re: Is there a way to limit the background of a heading?
Yes, you would add that to the style where you want that behavior. However, if you have several h1 styles (e.g. h1.toc, h1.topic, h1.ref) but you want that behavior for all of them, then add it to the base h1 element style and it wil "cascade" to the others.