Boilerplate CSS Media Queries

Media Queries are now becoming quite common practice in web design. They allow you to change the CSS of the different elements on your web page depending on the size of the screen the visitor currently can see.

Below is a media query boilerplate you can use to change the design of your depending on if the user is using an iPad,iPhone or other smart phones. This snippet even allows you to change the design if the device is landscape or portrait.

/* Smartphones (portrait and landscape) ———– */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}

/* Smartphones (landscape) ———– */
@media only screen
and (min-width : 321px) {
/* Styles */
}

/* Smartphones (portrait) ———– */
@media only screen
and (max-width : 320px) {
/* Styles */
}

/* iPads (portrait and landscape) ———– */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px) {
/* Styles */
}

/* iPads (landscape) ———– */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : landscape) {
/* Styles */
}

/* iPads (portrait) ———– */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : portrait) {
/* Styles */
}

/* Desktops and laptops ———– */
@media only screen
and (min-width : 1224px) {
/* Styles */
}

/* Large screens ———– */
@media only screen
and (min-width : 1824px) {
/* Styles */
}

/* iPhone 4 ———– */
@media
only screen and (-webkit-min-device-pixel-ratio : 1.5),
only screen and (min-device-pixel-ratio : 1.5) {
/* Styles */
}

How to Capture Screenshots from Windows Media Player?

Grabbing a screenshot from Window Media Player is not as easy as it seems. Yesterday I tried to use the extremely useful screen capture by ‘Print Screen Key’ to try to capture a WMV running file on my Windows Media Player Classic V10.

Every time I tried to use the print screen, a blank image was captured from the Windows Media Player. Then I thought maybe the running video was creating a problem with capturing a frame. So I paused the movie and tried the print screen method. But I still got a blank screen.

Then I tried to capture paused and running movies in full screen using ALT+ENTER but again had no luck. So I decided to try some advanced options of Window Media Player but still had no luck.

I searched the internet whole day and found the solution for this problem. Here it goes.

Simple way to capture Images from Windows Media Player

1. Open Window Media Player
2. Then go to Tools > Options > Performance Tab > Advanced Button
3. Uncheck “Use Overlays”
4. Click Ok and you are ready.

Now run your movie in any size or screen resolution. Use the standard “Print Screen Key” Method as described and you have captured a snapshot from your favorite movie on windows media player without using any special multimedia software. Enjoy!

Another way to Capture Screenshots from Windows Media Player

As an alternative of the Print Screen Method, try pressing “CTRL+I”. This pops up a save as window after capturing the screenshot.

1. Open Window Media Player.
2. Go to Tools > Options > Performance Tab.
3. Reduce the “Video acceleration” from the default FULL to NONE.
4. Click OK and then close down media player.
5. Open the file you want to take a still using the Print Screen method
6. Press ALT and the “Print Screen Key” to copy an image from the movie to the clipboard.