Auto Fit Table Width To Text?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Auto Fit Table Width To Text?

    How do i get the table box hd1 around the text to auto fit to the width of the text and not span across the whole screen??



    Code:
    body {
        background-color: #656565;
        font-family : Verdana, Arial, Helvetica, sans-serif;
        font-size:  12px;
        margin: 0px;
        padding: 5px;
         color: #ffffff;
    }
    
    .hd1 {
      background-color: #999999;
      padding: 2px 2px 2px 2px;
      margin: 1px 0 0;
      color:#000000;
      text-align: center;
      border-width:2px 0;
        border-left:2px solid;
        border-right:2px solid;
        border-bottom:2px solid;
        border-top:2px solid;
        border-style:solid;
      border-color:#FFFFFF;
      }
    
      </style>
     </head>
    <body>
    <div class="hd1">
    Follow the wite rabit</br>
    [url="home.php"]Home[/url]
    
    </div>
    
    
    <div class="hd1">
    Enter</br>
    [url="enter.php"]Enter[/url]
    
    </div>
    = = = = =
    The more you laugh...the longer you live.
    Read more jokes at
    http://fun-files.co.cc

    #2
    display: inline; i think

    Comment


      #3
      Its an easy work.

      here is a code for Auto Fit Table Width To Text
      Attached Files

      Comment


        #4
        thanks
        = = = = =
        The more you laugh...the longer you live.
        Read more jokes at
        http://fun-files.co.cc

        Comment

        Working...
        X