Modify website from 1290px to 960px

Asked

Viewed 27 times

-1

I finished the front end of a site, where the maximum margins of the elements go up to 1290px. Now, I have the layout to do it in 960px. Obviously I will reuse classes.

I could use the @media, but would have serious problems with the Internet Explorer.

Is there any method in Javascript/Jquery similar to @media?

1 answer

0

You could conditionally set a class to the body of your page according to the window size.

EDIT

It’s just that I’ve already answered a similar question here at SOPT:

/a/6911/1925

  • did not understand. I was thinking of a method, in which he received the total value of the user window, if it is =< 960px adds the rule siteCont {960px; margin: auto} if it does not add the rule siteCont1290{width: 1290px; margin:auto}

  • Dude, wasn’t the other answer what you wanted? Now that I realize you did it yourself.

  • True folks, I had asked that question some time ago. I made a mistake. Please delete if possible.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.