I feel silly that I don't know the answer to this...maybe I'm just having a brain-laps or something today, I dunno. So please forgive me.
I'm creating a DIV tag that can display a variety of different text lengths. It can in one instance hold a paragraph of information, and the next hold only a few words. I want to have it so when there's only a few words, they'll be centered on the page, however, if there's a paragraph of text, it'll all be aligned to the left within the DIV tag, yet the DIV tag will still be centered in the page (having a width still set at 550px), so it looks like the paragraph is 550px in width, but aligned to the left like normal writing. But if the writing is only a few words, it'll be aligned to the left in the 550px DIV that is centered on the page...making the text look like it is offcenter because the DIV is always staying at 550px.
Is it possible to have the DIV automatically adjust in width based on the amount of text held inside it? (So far, without setting a width, it automatically goes to 100% of the width of the page.)
-Ovatvvon :-Q
I'm creating a DIV tag that can display a variety of different text lengths. It can in one instance hold a paragraph of information, and the next hold only a few words. I want to have it so when there's only a few words, they'll be centered on the page, however, if there's a paragraph of text, it'll all be aligned to the left within the DIV tag, yet the DIV tag will still be centered in the page (having a width still set at 550px), so it looks like the paragraph is 550px in width, but aligned to the left like normal writing. But if the writing is only a few words, it'll be aligned to the left in the 550px DIV that is centered on the page...making the text look like it is offcenter because the DIV is always staying at 550px.
Is it possible to have the DIV automatically adjust in width based on the amount of text held inside it? (So far, without setting a width, it automatically goes to 100% of the width of the page.)
-Ovatvvon :-Q