Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: Table not lining up next to text

  • Subject: Re: Table not lining up next to text
  • From: Roy Schestowitz <newsgroups@schestowitz.com>
  • Date: Sat, 02 Apr 2005 06:33:58 +0100
  • Newsgroups: alt.html
  • References: <RCl3e.5722$FN4.1094@newssvr21.news.prodigy.com>
  • User-agent: KNode/0.7.2
tshad wrote:

> How do I get a table to line up next to my text in the same cell (I know a
> table in a table is not a good thing - this is how MS does it with their
> asp:radiobuttonlist objects)
> 
> I am trying to get the radio buttons next to my text and not below it.
> 
> I have a sample that shows the problem -
> http://www.payrollworkshop.com/samples/tableAlign.htm.
> 
> The code is:
> 
> ******************************************************
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN">
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> <title>Untitled Document</title>
> </head>
> 
> <body>
> <table width="309" height="117" border="1" cellpadding="0"
> cellspacing="0">
>   <tr>
>     <td width="180" height="76" style="vertical-align:top" nowrap>this is
>     a
> test
>       <table width="99" border="1" cellspacing="0" cellpadding="0">
>         <tr>
>           <td width="53">&nbsp;</td>
>           <td width="46">&nbsp;</td>
>         </tr>
>       </table>
>     </td>
>   </tr>
>   <tr>
>     <td>&nbsp;</td>
>   </tr>
> </table>
> </body>
> </html>
> *************************************************************
> 
> I just want to get the table up next to the text "this is a test".
> 
> Thanks,
> 
> Tom

Use a 3-column table within. A table cannot be placed in-line with other
elements. For example, you cannot have 2 tables rooted in the same line as
a linebreak will be forced. More ideally, kill tables and start using divs.

Roy

-- 
Roy S. Schestowitz
http://Schestowitz.com

[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index