Results 1 to 3 of 3

Thread: Changing border width according to text ? How

  1. #1
    Join Date
    Jan 2006
    Posts
    126
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Changing border width according to text ? How

    I have now code when there is message:
    PHP Code:
    .message width:auto;
    font-familyVerdanaArialHelveticasans-serif;  font-size12px;
    line-height16pxtext-decorationnone;
    background-color#FFFFFF;border:1px solid #FF3300; padding:2px } 
    Now is
    width:auto;

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

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    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?
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Jan 2006
    Posts
    126
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •