Andy92
03-17-2006, 11:31 PM
Hi there,
I am making a .css style sheet for all my pages on my site to refer to, but...
Instead of setting a <div> tag a specific width like...
#body_stuff .page_title_text{
width: 50px;
padding-left: 4px;
padding-right: 4px;
}
Is there a way to set the width to expand to however much text you write in the div tag?
Like if you write...
Hello
Then the div tag will be the width of the words you write in there? (Including the padding on the right and left).
Is there a way to do this so the div tag has the width of the words you write in there?
Help please!!:)
I am making a .css style sheet for all my pages on my site to refer to, but...
Instead of setting a <div> tag a specific width like...
#body_stuff .page_title_text{
width: 50px;
padding-left: 4px;
padding-right: 4px;
}
Is there a way to set the width to expand to however much text you write in the div tag?
Like if you write...
Hello
Then the div tag will be the width of the words you write in there? (Including the padding on the right and left).
Is there a way to do this so the div tag has the width of the words you write in there?
Help please!!:)