The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Programming Fundamentals" Dec 02 - 2:00 PM Eastern

What would be more useful?

  • # June 3, 2013 at 2:17 am

    I’ve been working on a website for quite a bit and i’ve run into the problem supporting for screen resolution.

    I have an idea of using javascript where i would get the height of the window size (OR SCREEN SIZE) and i could set the distance between the page seperations to acomidate each page with space. so each page can have their own full sized window.

    for example i work on a screen resolution of : 1920 x 1080.

    but my linux computer (laptop) is a smaller screen resolution of : 1280 X 720.

    i was thinking would it be okay to use javascript? or should i just use media queries?

    If further clarification is needed please let me know.

    # June 3, 2013 at 5:56 am

    That might be possible with (don’t take my word for it, haven’t tried)

    .section {
    min-height: 100%;

    but you’d to fiddle around with height on ancestors all the way up to body and html.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed