CSS for iphone

When you decide to make page for iphone, or maybe just make additional css to change how its views on iphone you should add this code, as iphones ignore other code. With this you set it depending on the size of the screen, so you hide sidebar for all devices that have screen smalled than 480px (widescreen iphone format). More info can be found on linke below

You can specify that a set of CSS rules apply only when the screen is smaller than a certain resolution:

@media only screen and (max-device-width: 480px) {
    .side-bar{
    display: none;
    }
}