View Full Version : Changing border width according to text ? How

01-22-2006, 11:28 AM
I have now code when there is message:

.message { width:auto;
font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;
line-height: 16px; text-decoration: none;
background-color: #FFFFFF;border:1px solid #FF3300; padding:2px }

Now is

How to do width and border width will change with text?

01-22-2006, 11:33 AM
I don't understand.
How do you want the border width to change with the text?
Do you want it to grow, to shrink?
Based on the text's width, or height, or font size?
And... why?

01-22-2006, 01:29 PM
If user puts data and my form on web site shows that there is error in input, it should be error message with border as CSS.

Problem is that it is not width as error. It is actually 100 % width of border. Do you know how to fix this? So border should change with text width within message.

Please give me what to change in CLASS as border width is not correct when there is message.
Edit/Delete Message