+ 1
How to make border as long as text
i want to make the borders onlya s long as the text itself .... dunno how
3 Answers
+ 3
I'm sorry that I didn't clear with your question
try width:auto / height:auto
+ 2
Basic behaviour of any html container is to fit to the height content, while you set it a value explicitly... So, if you're in this specific case, you only have to put another container inside the one with the fixed (doesn't mean absolute unit, wich can be relative :P) height, and define border on it (without applying an explicit value) ^^
0
thx