Auto Fit Table Width To Text?

Started on the old forum in July 2008 · view the original in the archive · old links redirect here

3 replies · 897 views · started 18 years ago · 1 min read

3 participants
stretch Developer · 130 posts #1

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?? 😢

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

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close