dynamic width for h1 background

cpamoney

New Member
My CSS:\[code\]h1 { background-color: #f7953d; color: #FFF; width: 100%; padding: 6px 0 6px 10px; margin-bottom: 10px;}\[/code\]My HTML\[code\]<h1>Hello World</h1>\[/code\]The background color is always stretched to 100% of the screen. How do I make the background color stop after "World" in the h1 tag, and not go all the way to the end of the screen?
 
Back
Top