Skip to main content

Responsive Web Design : Apply Different CSS for different resolutions

Responsive Web Design : Apply Different CSS for different resolutions

Change css depending on resolution
Continuing on responsive web design. As a reminder I base those tutorials on Video Tutorial from Stone River Learning on Responsive Web Design , very good intro to basics of Responsive Web Design, check it out!
Next logical question after we have figured out what resolutions to use is to find out how to apply different CSS styles for different resolutions.
To apply those you would have to use @media attribute of css, and it would look like this:
What we did here is we set minimum width of the device and are changing background colour (as an example) based on this minimum width.
To see this working, what you could do is to include this stylesheet in your HTML file:
Then go to your web page in the browser and try playing with browser window resolution (resize window), you would see how background colour changes.
Responsive Web Design | Change css depending on resolution
If you still figuring out what resolutions to target, check out this post”
If you have any questions or suggestions about next topics, please put that into comments section.
Anatoly

Comments

Popular posts from this blog

Top five MLM companies in Pakistan

There are several multi levels marketing (MLM) or direct selling companies in Pakistan since 1999 but some of them are better than the others. We have some big names in the list of MLM companies in Pakistan. These companies are local and international companies and also have a great reputation in the world. Here we are giving some important information about these companies for the people who are searching for their career company in Pakistan. These are the top five MLM companies in Pakistan . These are decided by the top network marketers and by the masters of all kind of marketing in Pakistan. The ELI Enlightenment through learning and implementation (ELI) is one of the best MLM or direct selling company in Pakistan and a pure Pakistani company in the area. This company is working on the educational products. These products are computer courses, ielts, spoken English and some kind of other courses. All courses are in DVD’s. These courses are very expensive in ...

Run Android on Your Computer

Run Android on Your Computer And Run Any VoIP App on It Screenshot of Jar of Beans Android Emulator. by Nadeem Unuth Updated March 20, 2017 There are so many interesting apps there on Android that would be great if you could have them on your computer. There are those games, and there are those communication tools that allow you to save money and to communicate using text, voice, and video. Well, there are things you can do to run VoIP apps like WhatsApp , Viber , WeChat , BBM and all the other apps you find on Google Play on your computer just like you would run them on your Android device. You only have to install software called an Android emulator. It simulates the functions of an Android device on your computer and runs like an operating system within your computer’s operating system.  Your mouse curs...

How To use VNC

Setting up direct connections If you have an Enterprise subscription, you can establish direct connections to computers you want to control. This is in addition to, or instead of, cloud connections . If you have a Home or Professional subscription, only cloud connectivity is available. No connection set up is required; you do not need to follow the instructions on this page. See how to get connected . To establish a direct connection, you’ll likely need to configure the network environment of the remote computer, particularly when routing over the Internet. Follow the appropriate infographic below. Establishing a direct connection over a local network (LAN or VPN) You will need: A computer to control: A device to control from: Both devices connected to the same local network: Now do this: Download VNC Connect to the computer you want to control and choose an Enterprise subscription. Use VNC Server to look up the private (internal) IP addre...