Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Internet & the Web (https://www.askmehelpdesk.com/forumdisplay.php?f=177)
-   -   CSS Div layers for each screen size? (https://www.askmehelpdesk.com/showthread.php?t=40551)

  • Nov 2, 2006, 11:32 PM
    helixfire
    CSS Div layers for each screen size?
    HI!

    I was wondering if anyone knew if there is a way (and if so how) to auto resize div layers according to a persons screen resolution and if not, is there a way (and if so how) to either call an external css file accordingly or code internal css to do the same thing?
    That's a mouthful! But your help would be much much appreciated and would save me countless hours of trial and error options and of course mental pain! ;)
  • Nov 6, 2006, 09:45 AM
    LTheobald
    You can use percentages in your CSS. So:

    Code:

    div {
      width: 50%;
    }

    Would give you a div with a width of 50%.
  • Nov 8, 2006, 04:40 AM
    helixfire
    Thanks a lot!

  • All times are GMT -7. The time now is 06:44 AM.