I am currently working on responsive web design. Smartphone View isn’t ready yet, because my client needs to get an even bigger budget.
Therefore, I need to implement a temporary view, which I want to implement with a fixed viewport, which is activated only on smartphones.
I set the viewport using this method:
<meta name="viewport" content="width=device-width, initial-scale=1.0">
I want to change the width of the device to 700 pixels if the following media query is run:
@media only screen and (max-width:700px){
}
The following code did not work:
@media only screen and (max-width:700px){
.pagewrapper{
width:700px;
}
@-ms-viewport{
width:700px;
}
@-o-viewport {
width: 700px;
}
@viewport {
width: 700px;
}
}
Do you know other solutions to do this? Perhaps using JavaScript / jQuery?
source
share