Okay, so I hope this is to create a DIV that will log in based on the content that is in it, but it should use the minimum width. I do not know how to do that.
So, if I have a DIV tag that has 3 characters, which is without a doubt less than 200 pixels, then I want the div to be 200px. If there is much more text, I would like it to automatically increase so that the text fits.
** Is this possible with just *** CSS *? ****
** UPDATE **
Let me see if I can explain this better. I have a DIV:
+++++++++++++++++++++++++++++++++ |-------------------------------| |-----text this longer text-----| |-------------------------------| +++++++++++++++++++++++++++++++++
I hope this happens if the text is changed, it will still have a width of at least 200 pixels. Like this:
+++++++++++++++++++++++++++++++++ |-------------------------------| |-------------text--------------| |-------------------------------| +++++++++++++++++++++++++++++++++
But if it was an even longer text, then the first example would continue to expand beyond the width of 200px:
++++++++++++++++++++++++++++++++++++++++++++++++++++++ |----------------------------------------------------| |-----text this longer texttext this longer text-----| |----------------------------------------------------| ++++++++++++++++++++++++++++++++++++++++++++++++++++++
However, I have a limit (limited amount of space) that it can go, so I need to set the maximum width. Does this make sense or do I need to clarify the situation more?
source share