
Originally Posted by
ralph.m
Yes, you don't need a whole new style sheet for the iPad, but I'd suggest you first tighten up the desktop design a bit first, anyway. If you make the browser much narrower on the desktop, things start to move out of place, so I'd fix that first. You can easily target an iPad with a simple media query.
Yes, I've done that, but shouldn't I just be able to do this to modify the design for mobile devices?
Code:
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
#container, .wrapper, #header, .smalldown, #checker, #bottom {
width: 1024px;
margin-left: 0;
margin-right: 0;
}
#dg {
position: relative;
width: 1024px;
margin-left: auto;
margin-right: auto;
}
#container {
top: 0;
}
.moduletabletopmenu, .moduletablemainmenu {
width: auto;
}
#checker {
top: -126px;
}
.moduletablebannslide img {
width: 1024px!important;
height: auto;
}
.moduletablelogo {
width: 501px;
}
.moduletablelogo img {
width: 601px!important;
height:auto;
}
.moduletablemiddlebuttons img {
width: 200px;
height: auto;
}
#bottom {
padding: 0 20px 20px;
}
#bottom .moduletablebottommenu {
width: 490px;
}
#bottom .moduletablebottommenu div {
width: 100px;
}
#bottom .moduletablecard {
float: left;
}
}
Bookmarks