Connect with us

Blog

Responsive Design with CSS3 Media Queries

mm

Published

on

css tips

Responsive design and CSS media queries changed the user view of your website based on device size.

Please have a look of below html link tags that are used for media query for different styles of screens:

<link href=”print_style.css” type=”text/css” media=”print” rel=”stylesheet”/>

<link href=”screen_style.css” type=”text/css” media=”screen” rel=”stylesheet”/>

Standard Media Queries for Standard Devices:

According to devices we have set of common styles for all screen sizes. Following are the screen resolution of the media queries for standard screen sizes:

@media only screen and (max-width : 320px) {
 
}
 
/* Mobiles in landscape mode */
@media only screen and (min-width : 321px) and (max-width : 480px) {
 
}
 
/* Tablets */
@media only screen and (min-width : 768px) and (max-width : 1024px) {
 
}
 
/* Desktops and laptops*/
@media only screen and (min-width : 1224px) {
 
}
 
/* very large screen devices */
@media only screen and (min-width : 1824px) {
 
}

/* For print */
 
@media print {
/* Add your style here */
}

Some of mobile browsers display zooming on screen touch because that contains larger viewport than the actual device. This issue can be solve with the help of the following Meta tag:

<meta name=”viewport” content=”width=device-width;>  <meta name=”viewport” content=”width=device-width, initial-scale=1″>

<meta name=”viewport” content=”width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0″/>

HTML Code Structure

Also Read :   Gigi Hadid Follows In Kendall Jenner Footsteps By Taking A Social Media Break

I have a page that container wraps the “header”, “content”, “sidebar”, and “footer” together.

<div id="pawrapper">

	<header id="header">

		<hgroup>
			<h1 id="site-logo">Demo tset</h1>
			<h2 id="site-description">Demo webSite Description</h2>
		</hgroup>

		<nav>
			<ul id="main-nav">
				<li><a href="#">Home</a></li>
			</ul>
		</nav>

		<form id="searchform">
			<input type="search">
		</form>

	</header>
	
	<div id="content">

		<article class="post">
			Demo blog post
		</article>

	</div>
	
	<aside id="sidebar">

		<section class="widget">
			 widget
		</section>
						
	</aside>

	<footer id="footer">
		footer
	</footer>
	
</div>

Flexible Images CSS

img {

max-width: 100%;

height: auto;

width: auto;

}

Flexible Embedded Videos CSS

 .video embed, .video object, .video iframe {

width: 100%;

height: auto;

}

If you have any question related to WordPress hosting and security, you can contact us or ask your question with us. For more tutorials, you can visit our other articles or visit questions page.

You can join us on twitter or subscribe at YouTube for more web design & development tutorials.

Hi, Thank you for reading my article. I am Victor, a professional blogger from Jaipur, India.I started webetutorial for blogging & sharing solution for developer questions, and now it’s empowering globally by helping them to make money.I am writing about starting & managing a blogs, WordPress, Magento, Social Media, SEO, Marketing, making money online, Investment, Finance, Gadgets, Fitness and more.

Continue Reading
Advertisement
Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

twenty + twenty =

Blog

Burj Al Arab Jumeirah – Luxurious Hotel in the World

mm

Published

on

Burj Al Arab Jumeirah – Luxurious Hotel in the World

Burj Al Arab Jumeirah is a world best luxurious hotel with their famous ultra-luxurious suites overlooking the sea. It is own island with nine signature restaurant. It has an opulent full-service spa and most attractive thing which guests may arrive to see the world’s largest chauffeur-driven fleets of Rolls-Royce’s.

The point which make luxurious to this property:

  • The roof terrace offers large swimming pools, 32 luxury cabanas same like a resort.
  • Floor have panoramic view of the Arabian Gulf
  • Each suite includes an iPad, WiFi, iMac and HD TV.
  • The hotel Bar is floating 200 m above sea level.
  • Guest may prefer to see sea in afternoon with tea and cocktails.
  • Talise Spa and ladies & gentlemen’s relaxation areas feature an aqua retreat.
  • It also includes separate indoor infinity pools facilities, hot tub and treatment room’s facilities, steam rooms and plunge pools facilities.
  • The property suite have private beach for special guests.
  • The property offers water sports activities at Wild Wadi Waterpark™.
Also Read :   WordPress Website Development

Quick view on Property Amenities:

  • Pool
  • Room service
  • Restaurant
  • Free High Speed Internet (WiFi)
  • Fitness Centre with Gym / Workout Room
  • Free parking
  • Spa
  • Bar/Lounge
  • Adult pool
  • Airport transportation
  • Babysitting
  • Banquet Room
  • Breakfast Available
  • Business Centre with Internet Access
  • Children Activities (Kid / Family Friendly)
  • Concierge
  • Conference Facilities
  • Dry Cleaning
  • Heated pool
  • Hot Tub
  • Indoor pool
  • Laundry Service
  • Meeting rooms
  • Multilingual Staff
  • Non-smoking hotel
  • Outdoor pool
  • Sauna
  • Wheelchair Access

Quick view on Rooms:

  • Air conditioning
  • Minibar
  • Refrigerator in room
  • Accessible rooms
  • Family Rooms
  • Non-smoking rooms
  • Smoking rooms available
  • Suites

In the Dubai guests are getting more for their money when compared with other properties in the same location.

Subscribe us to get more hotels & resorts news or want to advertise your hostel with us, inquire now to get best quote from us.

Continue Reading

Trending