Table inside a blockquote tag

Discussion in 'HTML' started by Mika, Nov 7, 2003.

  1. Mika

    Mika Guest

    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
     
    Mika, Nov 7, 2003
    #1
    1. Advertising

  2. 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.

    --
    Bertilo Wennergren <> <http://www.bertilow.com>
     
    Bertilo Wennergren, Nov 7, 2003
    #2
    1. Advertising

  3. Mika

    Mika Guest

    "Bertilo Wennergren" <> wrote in message
    news:boh6nn$b7c$06$-online.com...
    > 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.


    Thanks, you are right but this doesn't help me this time.

    Mika
     
    Mika, Nov 7, 2003
    #3
  4. Mika:

    > "Bertilo Wennergren" <> wrote in message
    > news:boh6nn$b7c$06$-online.com...


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


    > Thanks, you are right but this doesn't help me this time.


    Why not? Drop the tables, and rewrite it with CSS.

    --
    Bertilo Wennergren <> <http://www.bertilow.com>
     
    Bertilo Wennergren, Nov 7, 2003
    #4
  5. Mika

    Brett Guest

    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>?
    --
    Brett
    Provision Tech
    http://www.provisiontech.net

    "Bertilo Wennergren" <> wrote in message
    news:boh7lk$9tk$02$-online.com...
    > Mika:
    >
    > > "Bertilo Wennergren" <> wrote in message
    > > news:boh6nn$b7c$06$-online.com...

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

    >
    > > Thanks, you are right but this doesn't help me this time.

    >
    > Why not? Drop the tables, and rewrite it with CSS.
    >
    > --
    > Bertilo Wennergren <> <http://www.bertilow.com>
    >
     
    Brett, Nov 7, 2003
    #5
  6. Mika

    Mika Guest

    "Brett" <> wrote in message
    news:...

    > <td width="50%" style="padding-left: 20px;">


    Yes, but how about Netscape 4.x and padding-left? It doesn't work. Other
    ideas?

    Mika
     
    Mika, Nov 9, 2003
    #6
  7. Mika wrote:

    > "Brett" <> wrote in message
    > news:...
    >
    >> <td width="50%" style="padding-left: 20px;">

    >
    > Yes, but how about Netscape 4.x and padding-left? It doesn't work. Other
    > ideas?


    position:relative;left:20px; ??

    --
    Toby A Inkster BSc (Hons) ARCS
    Contact Me - http://www.goddamn.co.uk/tobyink/?page=132
     
    Toby A Inkster, Nov 9, 2003
    #7
  8. Mika

    Sid Ismail Guest

    On Sun, 9 Nov 2003 19:00:30 +0200, "Mika" <> wrote:

    : "Brett" <> wrote in message
    : news:...
    :
    : > <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
     
    Sid Ismail, Nov 9, 2003
    #8
  9. Mika

    Mika Guest

    "Sid Ismail" <> wrote in message
    news:...

    > : > <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
     
    Mika, Nov 9, 2003
    #9
  10. Mika

    Brett Guest

    > > : Yes, but how about Netscape 4.x and padding-left? It doesn't
    > > : work. Other ideas?


    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>


    --
    Brett
    Provision Tech
    http://www.provisiontech.net
     
    Brett, Nov 9, 2003
    #10
  11. Mika

    Sid Ismail Guest

    On Sun, 9 Nov 2003 14:22:51 -0800, "Brett" <> wrote:

    : <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
     
    Sid Ismail, Nov 10, 2003
    #11
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. shruds
    Replies:
    1
    Views:
    840
    John C. Bollinger
    Jan 27, 2006
  2. Fred Camper
    Replies:
    1
    Views:
    524
    Toby A Inkster
    Aug 7, 2003
  3. William Tasso
    Replies:
    0
    Views:
    380
    William Tasso
    Aug 7, 2003
  4. Adrienne
    Replies:
    25
    Views:
    824
    Fred Camper
    Aug 10, 2003
  5. Sid Ismail
    Replies:
    0
    Views:
    415
    Sid Ismail
    Aug 7, 2003
Loading...

Share This Page