Text Border

Discussion in 'HTML & Website Design' started by ddzc, Aug 30, 2008.

  1. #1
    Hi all,

    I would like to create multiple borders on my site with chunks of text on each page. I used this command:


    <div style="width:200px;height:100px;border:2px dotted blue;">
    my border data
    </div>

    The problem with this is that it takes me time to figure out the length and width of the text through trial and error. im obviously not too experienced in html. Is there a command which will automatically adjust the border according to the datas length and width?

    Thanks
     
    ddzc, Aug 30, 2008 IP
  2. q7m

    q7m Well-Known Member

    Messages:
    1,178
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    150
    Digital Goods:
    1
    #2
    Remove the "width" and "height" properties in the style parameter.
     
    q7m, Aug 30, 2008 IP