Results 1 to 7 of 7

Thread: (HTML) Dont let user squish table.

  1. #1

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057

    (HTML) Dont let user squish table.

    How do I keep a table from squishing when a user changes the width of the window? I have some 'checkboxes' in a calendar that I am building dynamicly and if I resize the window so that it is not wide enough the cells get narrow and tall breaking the appearance.
    Thanks in advance,
    Michael
    I'm off to GalahTech, hope to see you there.

    If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.

  2. #2
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    Either specify a width in pixels (may or may not work depending on browser) or use transparent "spacer" gifs so that the cell is unable to shrink.

    That works in any situation, but is a little messy

  3. #3

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    On 2nd look (mmore like 584th look) I noticed it was my text labels were wraping so I threw the ol'e noWrap tag in the mix and all is right with the world (or atleast with my table)
    Question:
    if using the 'spacer' image trick, will it take forever to the user to recieve the page due to downloading a whole lot of spacer images?
    thanks
    michael
    I'm off to GalahTech, hope to see you there.

    If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.

  4. #4
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    not necessarily. They only need to be 1 pixel high and as many pixels wide as required. Each one should be no more than a couple of kb at those dimensions.

    Obvisouly if you used loads it would take longer but you only need one per table column for it to work.

  5. #5
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Originally posted by chrisjk
    not necessarily. They only need to be 1 pixel high and as many pixels wide as required. Each one should be no more than a couple of kb at those dimensions.

    Obvisouly if you used loads it would take longer but you only need one per table column for it to work.
    Can't you use a single 20px by 20px image and size it thru the img tag as needed, so only one file?
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  6. #6
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    Originally posted by JoshT
    Can't you use a single 20px by 20px image and size it thru the img tag as needed, so only one file?
    No, since if they are smart enough to do that, they are smart enough to know they don't need to do that.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  7. #7
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    Originally posted by JoshT
    Can't you use a single 20px by 20px image and size it thru the img tag as needed, so only one file?
    good point. But i'd still only make it 1px high

Posting Permissions

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



Click Here to Expand Forum to Full Width