I would choose a clean CSS solution. Sounds like the perfect case for media queries:
#rightdiv {
position: relative;
width: 100px;
height: 100px;
}
@media screen and (max-width: 1000px) {
#rightdiv {
display: none;
}
}
Only an element will be displayed in CSS #rightdivif the size of the browser window is at least 1000 pixels wide. If it gets smaller, it applies the property display: none.
Example : http://jsfiddle.net/7CCtH/
source
share