i found this best can be achieved by using CSS Media Queries. You can set certain styles to display based on a width. Such as
Code:
@media screen and (min-width: 1024) {
#page {
margin-right: auto;
margin-left: auto;
width: 1024px;
}
}
This can be used to set all kinds of styles based on screen size. Using javascript today is not as big of deal as it was a few years ago, the only thing is everything is easier to control in CSS for the fact it is all together and you will be assured it will be displayed unless they have turn CSS off. In that case the webpage would only be text and images.
Bookmarks