Hi There. I have this code:
h3 {color: #ff9948; font: 160%/1 verdana, sans-serif; margin: 5px 0 10px 0; padding: 5px 0 5px 4px; letter-spacing: -1px;}
The problem is that the width is automated and it goes all over the screen.
What I want to do is to have the h3 size to fit to whatever in it. Let's say, give it 10 pixels from right and left no matter how long or short the text in it.
How can I do it?h3 {
background-color:yellow;
color: #ff9948;
font: 160%/1 verdana, sans-serif;
padding: 5px 10px;
letter-spacing: -1px;
display:inline;
}Mmm... It doesn't work that well with my example.
The padding bottom for the text under doesn't work. Why?Well, I can't see your page so I don't know.
h3 {color: #ff9948; font: 160%/1 verdana, sans-serif; margin: 5px 0 10px 0; padding: 5px 0 5px 4px; letter-spacing: -1px;}
The problem is that the width is automated and it goes all over the screen.
What I want to do is to have the h3 size to fit to whatever in it. Let's say, give it 10 pixels from right and left no matter how long or short the text in it.
How can I do it?h3 {
background-color:yellow;
color: #ff9948;
font: 160%/1 verdana, sans-serif;
padding: 5px 10px;
letter-spacing: -1px;
display:inline;
}Mmm... It doesn't work that well with my example.
The padding bottom for the text under doesn't work. Why?Well, I can't see your page so I don't know.