Grow your CSS skills. Land your dream job.

Windows width > ???px then …

  • # January 13, 2009 at 7:06 am

    Hi!
    I want to write a JQuery-Script that measures the width of the browser-window (viewpoint size). If it is less than 1250px wide then it should hide a certain div and display another one which is smaller instead. It’s because of a rightfloating div on a leftfloating page. The div looks like a toolbar at the right edge of the window. But if the window is too small, things get overlapping. I am quite new with JQuery, I can let thing fading, but I don’t know how to code window.width > 1250px and putting is in an if-condition.
    May anyone help me?
    Thanks!
    Runa

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".