problem with width

Discussion in 'HTML' started by Passero, Sep 6, 2003.

  1. Passero

    Passero Guest

    I have a problem with the width of my table. When i set the table, i get a
    scrollbar because the width is to big so that's why i want width="50%" and
    that's the code:

    <table summary="Acties" rules="all" width="50%">

    but it doesn't work. Even when i put table { width: 20%; } in my css also
    nothing happens. When i change table to td or tr in my css, nothing
    happens... Is it because i'm working with images?

    <p align="center">
    <table summary="Acties" rules="all" width="50%">
    <tr><td align="center"><a href="profwijzig.asp"><img src="male.gif"
    alt="Profiel wijzigen" width="25%"><br>Profiel wijzigen</a>
    <td align="center"><a href="zoeken.asp"><img src="img/gedicht.gif"
    alt="Gedichten wijzigen of verwijderen" width="30%"><br>Gedichten </a>
    <td align="center"><a href="verhaal.asp"><img src="img/draak.gif"
    alt="Verhalen wijzigen of verwijderen" width="85%"><br>Verhalen</a>
    </table>
    </p>

    even when i change the width of each image, the image changes but the size
    of the table doesn't.
     
    Passero, Sep 6, 2003
    #1
    1. Advertising

  2. Passero

    John W. Guest

    "Passero" <>:

    >I have a problem with the width of my table. When i set the table, i get a
    >scrollbar because the width is to big so that's why i want width="50%" and
    >that's the code:
    >
    ><table summary="Acties" rules="all" width="50%">
    >
    >but it doesn't work. Even when i put table { width: 20%; } in my css also
    >nothing happens. When i change table to td or tr in my css, nothing
    >happens... Is it because i'm working with images?
    >
    ><p align="center">
    ><table summary="Acties" rules="all" width="50%">
    > <tr><td align="center"><a href="profwijzig.asp"><img src="male.gif"
    >alt="Profiel wijzigen" width="25%"><br>Profiel wijzigen</a>
    > <td align="center"><a href="zoeken.asp"><img src="img/gedicht.gif"
    >alt="Gedichten wijzigen of verwijderen" width="30%"><br>Gedichten </a>
    > <td align="center"><a href="verhaal.asp"><img src="img/draak.gif"
    >alt="Verhalen wijzigen of verwijderen" width="85%"><br>Verhalen</a>
    ></table>
    ></p>
    >
    >even when i change the width of each image, the image changes but the size
    >of the table doesn't.
    >

    Where can we see this online?



    John OO
    --

    <http://webcel.nl/>
    <http://www.webcel.nl/bayshop/shop/bayshop.html>

    "Time is what prevents everything from happening at once"
    - John Archibald Wheeler -
     
    John W., Sep 6, 2003
    #2
    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. AndrewF
    Replies:
    1
    Views:
    841
    Bruce Barker
    Oct 10, 2005
  2. Xu
    Replies:
    11
    Views:
    8,656
    Andrew Thompson
    Jul 16, 2005
  3. Sean Jorden
    Replies:
    1
    Views:
    624
    laurie
    Aug 19, 2003
  4. kris
    Replies:
    11
    Views:
    900
  5. Paul Furman

    min-width max-width again

    Paul Furman, Feb 9, 2004, in forum: HTML
    Replies:
    10
    Views:
    727
    Beauregard T. Shagnasty
    Feb 9, 2004
Loading...

Share This Page