Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Tables as rectangular screen areas
September 15, 2006, 12:21 am
rate this thread
rectangle of unknown size?
<table style="margin-left: auto; margin-right: auto; border-bottom:
2px solid; border-color: #999" cellspacing="0" cellpadding="0">
<tr style="font-size: x-large; font-weight: bold"><td>Here is some
<tr style="font-size: xx-small"><td> </td></tr>
... insert spacers as needed
Re: Tables as rectangular screen areas
Perhaps you are having trouble styling a div the way you want
because a div is by default 100% wide, even if the content is
not. The div does not naturally shrink to the width of the
content. To make it do so, one method is to estimate the width of
the content - if it is text, em based width is pretty good - and
then assign similar to a width specification to the div (with
appropriate allowances like padding, perhaps a bit to spare etc).
<div style="margin-left: auto; margin-right: auto; border-bottom:
2px #999 solid;width:9em;">
Here is some text
- Harlan Messinger
September 15, 2006, 4:02 pm
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum