Table inside a blockquote tag

M

Mika

Hi,

I have the following HTML code:

<table>
<tr>
<td width="30%">&nbsp;</td>

<td width="50%">
<blockquote>
<table>
<tr>
<td>First</td>
<td>Second</td>
<td>Third</td>
</tr>
</table>
</blockquote>
</td>

<td width="20%">&nbsp;</td>
</tr>
</table>

This doesn't work ok. The width of the tabe inside the blockquote isn't
100%. What can I do? If I use width="100%" with the table tag, the width
is more than 100%.

Mika
 
B

Bertilo Wennergren

Mika:
This doesn't work ok. The width of the tabe inside the blockquote isn't
100%. What can I do? If I use width="100%" with the table tag, the width
is more than 100%.

It seems you're using tables for layout. Don't do that.
 
B

Brett

I agree in most cases this can be accomplished with css but if there is a
reason you have to use tables you could do the following:

<table border="1" width="100%">
<tr>
<td width="30%">&nbsp;</td>
<td width="50%" style="padding-left: 20px;">
<table border="1" width="100%">
<tr>
<td>First</td>
<td>Second</td>
<td>Third</td>
</tr>
</table>
</td>
<td width="20%">&nbsp;</td>
</tr>
</table>

I think this is what you were trying to accomplish with <blockquote>?
 
S

Sid Ismail

: :
: > <td width="50%" style="padding-left: 20px;">
:
: Yes, but how about Netscape 4.x and padding-left? It doesn't work. Other
: ideas?


Increase the size of the higher TD with &nbsp's? URL?

Sid
 
M

Mika

: > <td width="50%" style="padding-left: 20px;">
:
: Yes, but how about Netscape 4.x and padding-left? It doesn't
: work. Other ideas?

Increase the size of the higher TD with &nbsp's? URL?

Sid

I can't tell the URL but here's the code:

<table width="95%" align="center" cellspacing="0" cellpadding="0"
border="0">
<tr>
<td width="20%" align="left" valign="top">
<blockquote>
Something
</blockquote>
</td>

<td width="50%" align="left" valign="top" style="padding-left: 35px;
padding-right: 35px;">
<h1 align="left">Header</h1>

<p align="left">Text, text, text, text, text...</p>
</td>

<td width="30%" align="left" valign="top">
<blockquote>
Something
</blockquote>
</td>
</tr>
</table>

Mika
 
B

Brett

: Yes, but how about Netscape 4.x and padding-left? It doesn't
It looks like your going to need to nest a table. Here is an example:

<table width="95%" align="center" cellspacing="0" cellpadding="0"
border="1">
<tr>
<td width="20%" align="left"
valign="top"><blockquote>Something</blockquote></td>
<td width="50%" align="left" valign="top">

<table width="100%" border="0" cellpadding="0" cellspacing="0"
summary="">
<tr valign="top">
<td valign="top" width="35">&nbsp;</td>
<td valign="top"><h1 align="left">Header</h1><p
align="left">Text, text, text, text, text...</p></td>
<td valign="top" width="35">&nbsp;</td>
</tr>
</table>

</td>
<td width="30%" align="left"
valign="top"><blockquote>Something</blockquote>
</td>
</tr>
</table>
 
S

Sid Ismail

: <td width="20%" align="left"
: valign="top"><blockquote>Something</blockquote></td>


?

Blockquote is for quoting and both sides are indented. It will work for
what you want, but on speech browsers it will be rendered incorrectly.

Maybe
<td width=20% style="padding-left:1em; padding-right:1em;">Something</td>

btw, Default is align=left.

Sid
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top