SitePoint Sponsor

User Tag List

Results 1 to 7 of 7

Thread: Table Widths

  1. #1
    <? echo "Kick me"; ?> petesmc's Avatar
    Join Date
    Nov 2000
    Location
    Hong Kong
    Posts
    1,508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    I once came accross this and used it allot but have forgotten now. What I would like to know is:

    Does anyone know the CSS to make a table stay a fixed size ALWAYS, if it says width=500 then it stays like that?

    Thanx

  2. #2
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    does it have to be CSS?

    try this:

    <style type="text/css">
    <!--

    table { width: 500px; }

    -->
    </style>


    but just so you know, I tried it in Netscape and it does not work.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  3. #3
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it doens't work in netscape? width element functions alright in netscape...weird...
    but..hey! you can do it in html..lol
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
    -- Albert Einstein

  4. #4
    <? echo "Kick me"; ?> petesmc's Avatar
    Join Date
    Nov 2000
    Location
    Hong Kong
    Posts
    1,508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No,

    It was something like
    table {width:fixed; }

  5. #5
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmmm...

    I just tried several combinations of CSS, plus I checked several references and could find nothing besides the method I posted.

    sorry...I will wait to see if anyone else has an idea.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  6. #6
    <? echo "Kick me"; ?> petesmc's Avatar
    Join Date
    Nov 2000
    Location
    Hong Kong
    Posts
    1,508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I can't find it either, but I used it once when my tables kept resizing when a definate size had been set.

    Then all my problems went away.

    Peter

  7. #7
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    whoops
    totally forgot about it..
    there isn't any..I checked w3...w3schools....zvon....bleh..none
    maybe it wasn't css?

    or if it is....i only see a few that have values 'fixed' and they supported specifically by ie5.5 only.
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
    -- Albert Einstein


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •