SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2000
    Location
    New York, USA
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, you can specify percentages in tables (50%, 100%, etc.)

    [This message has been edited by Graphic Axis (edited March 08, 2000).]

  2. #2
    SitePoint Addict
    Join Date
    Feb 2000
    Location
    District of Columbia
    Posts
    373
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I know, but can you mix % and px? Maybe I didnt phrase it right the first time...

  3. #3
    Just Blow It bronze trophy
    DaveMaxwell's Avatar
    Join Date
    Nov 1999
    Location
    Mechanicsburg, PA
    Posts
    7,254
    Mentioned
    113 Post(s)
    Tagged
    1 Thread(s)
    Yes you can mix and match the pixel spec and the percentages. I use this right now to get a fixed height image to display across the screen.

    ------------------
    Dave Maxwell
    www.keystonecapitalchorus.org
    www.trademarkquartet.com

  4. #4
    SitePoint Addict
    Join Date
    Feb 2000
    Location
    District of Columbia
    Posts
    373
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Please tell me: can I specify table width in pixels and table height in percent, or do those two have to be in the same units?

    Thank you

  5. #5
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    AS far as I know the height attribute doesn't work well with a percentage unless your using a fixed height layer. I have never tried to use a percentage for height though. Always used pixels. I do know that you can use pixels for height and percentage for width so it should work the other way around. The trick will be making sure the browser knows how long the page will be before it is loaded so it can figure out the proper percentage.

    ------------------
    Wayne Luke
    Internet Media Provider

  6. #6
    Chicken
    SitePoint Community Guest
    I think the only time this would be useful (setting the height as a percentage), is if you are creating a splash screen with image or text that you want centered. Other than that, what exactly would be the reason you would want to specify a % height?

  7. #7
    SitePoint Enthusiast Morpheos's Avatar
    Join Date
    Feb 2000
    Location
    Miches, DR.
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have used several time's percentage and pixels together.
    However, I have found they dont work very good, since the browser gets confused.

    Have done it, although I don't recomend it.



    ------------------
    Morpheos - Web Developer
    Digital Works Web Design/Development
    morpheos@carib.com


  8. #8
    SitePoint Addict
    Join Date
    Feb 2000
    Location
    District of Columbia
    Posts
    373
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I tried % and % together works fine in all browsers, but the % height and px width dont work out for some reason.

    The reason I want to do that is I want to have a footer on the page that is always at the bottom of the screen regardless of screen size. Thats where the 100% height comes in handy, I wish it worked with width in pixels...but wait...I already know a workaround

    Thanks, guys


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
  •