SlideShare a Scribd company logo
1 of 18
RESPONSIVE WEB
DESIGN
TWITTER BOOTSTRAP 3
CSS MEDIA QUERIES
CONTENTS
• What is Responsive Web Design?
• What is Twitter Bootstrap 3?
• Why Twitter Bootstrap 3?
• What is Twitter Bootstrap grid system?
• What is Media Queries?
• Why to use media queries?
• How to use media queries?
• What are the standard responsive screen resolutions?
WHAT IS RESPONSIVE WEB DESIGN?
• Ethan Marcotte.
• Fluid grids, flexible images, and media queries.
• Better accessibility and optimal viewing experience.
• Target a wide range of devices with much less efforts.
WHAT IS TWITTER BOOTSTRAP 3?
• Most popular HTML, CSS, and JS framework.
• Create responsive layout with much less efforts.
• Four tiers grids classes.
• Mobile first.
<meta name="viewport" content="width=device-width,
initial-scale=1.0,
maximum-scale=1.0,
user-scalable=no">
WHY TWITTER BOOTSTRAP 3?
• Mobile first approach.
• Browser support.
• Easy to get started.
• Responsive web design.
Google Chrome Mozilla Firefox Internet Explorer Apple Safari Opera
WHAT IS TWITTER BOOTSTRAP GRID SYSTEM?
• The fastest and easy way to create layouts of web pages.
• Create page layouts through a series of rows and columns.
• The responsive mobile first fluid grid system.
• .col-xs- * Smartphone
• .col-sm- * Tablet
• .col-md-* Desktop
• .col-lg-* Large desktop screen
BASIC GRID STRUCTURE
<div class=“container”>
<div class=“row”>
<div class=“col-lg-3 col-md-4 col-sm-6 col-xs-12”>
</div>
</div>
</div>
<div class="container">...</div>
.container {
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
}
<div class="row">...</div>
<div class="col-md-*"></div>
• Every row in the grid is made up of 12 units.
• Experiment and make sure that the sum always needs to be 12.
WHAT IS MEDIA QUERIES?
• Customize the presentation.
• An excellent way to create responsive layout.
@media screen and (min-width: 320px) and (max-width: 640px) and (orientation : portrait) {}
@media screen and (min-width: 320px) and (max-width: 640px) and (orientation : landscape) {}
IPHONE 5
iPhone 5 Landscape
iPhone 5 Portrait
@media screen and (min-width: 360px) and (max-width: 736px) and (orientation : portrait) {}
@media screen and (min-width: 360px) and (max-width: 736px) and (orientation : landscape) {}
IPHONE 6
iPhone 6 Portrait
iPhone 6 Landscape
SAMSUNG TAB
@media screen and (min-width: 533px) and (max-width: 768px) and (orientation : portrait) {}
@media screen and (min-width: 533px) and (max-width: 768px) and (orientation : landscape) {}
Samsung Tab Portrait
Samsung Tab Landscape
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation : portrait) { }
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation : landscape) { }
IPAD
iPad Portrait
iPad Landscape
/*Desktop View*/
/*Header*/
/*End Header*/
/*Navigation bar*/
/*End Navigation bar*/
/*Body*/
/*End Body*/
/*Footer*/
/*End Footer*/
/*End Desktop View*/
/*For smartphone portrait*/
@media screen and (min-width: 320px) and (max-width: 640px) and (orientation : portrait) {
/*Header*/
/*End Header*/
/*Body*/
/*End Body*/
/*Footer*/
/*End Footer*/
}
/*For smartphone landscape*/
@media screen and (min-width: 320px) and (max-width: 640px) and (orientation : landscape) {
/*Header*/
/*End Header*/
/*Body*/
/*End Body*/
/*Footer*/
/*End Footer*/
}
@media screen and (min-width: 800px) and (max-width: 1280px) and (orientation : portrait) {}
@media screen and (min-width: 800px) and (max-width: 1280px) and (orientation : landscape) {}
@media screen and (min-width: 900px) and (max-width: 1440px) {}
@media screen and (min-width: 600px) and (max-width: 1024px) {}
@media screen and (min-width: 1025px) and (max-width: 1280px) {}
@media screen and (min-width: 1281px) and (max-width: 1366px) {}
@media screen and (min-width: 1367px) and (max-width: 1440px) {}
@media screen and (min-width: 1441px) and (max-width: 1600px) {}
@media screen and (min-width: 1601px) and (max-width: 1680px) {}
@media screen and (min-width: 1681px) and (max-width: 1920px) {}
MEDIA QUERIES DECLARATIONS FOR LARGE SCREEN DEVICES
Thank You!
Any Questions?

More Related Content

Recently uploaded

AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Recently uploaded (20)

10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdfAzure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Responsive web design bootstrap and media queries

  • 2. CONTENTS • What is Responsive Web Design? • What is Twitter Bootstrap 3? • Why Twitter Bootstrap 3? • What is Twitter Bootstrap grid system? • What is Media Queries? • Why to use media queries? • How to use media queries? • What are the standard responsive screen resolutions?
  • 3. WHAT IS RESPONSIVE WEB DESIGN? • Ethan Marcotte. • Fluid grids, flexible images, and media queries. • Better accessibility and optimal viewing experience. • Target a wide range of devices with much less efforts.
  • 4. WHAT IS TWITTER BOOTSTRAP 3? • Most popular HTML, CSS, and JS framework. • Create responsive layout with much less efforts. • Four tiers grids classes. • Mobile first. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  • 5. WHY TWITTER BOOTSTRAP 3? • Mobile first approach. • Browser support. • Easy to get started. • Responsive web design. Google Chrome Mozilla Firefox Internet Explorer Apple Safari Opera
  • 6. WHAT IS TWITTER BOOTSTRAP GRID SYSTEM? • The fastest and easy way to create layouts of web pages. • Create page layouts through a series of rows and columns. • The responsive mobile first fluid grid system. • .col-xs- * Smartphone • .col-sm- * Tablet • .col-md-* Desktop • .col-lg-* Large desktop screen
  • 7. BASIC GRID STRUCTURE <div class=“container”> <div class=“row”> <div class=“col-lg-3 col-md-4 col-sm-6 col-xs-12”> </div> </div> </div>
  • 8. <div class="container">...</div> .container { padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; } <div class="row">...</div> <div class="col-md-*"></div> • Every row in the grid is made up of 12 units. • Experiment and make sure that the sum always needs to be 12.
  • 9. WHAT IS MEDIA QUERIES? • Customize the presentation. • An excellent way to create responsive layout.
  • 10. @media screen and (min-width: 320px) and (max-width: 640px) and (orientation : portrait) {} @media screen and (min-width: 320px) and (max-width: 640px) and (orientation : landscape) {} IPHONE 5 iPhone 5 Landscape iPhone 5 Portrait
  • 11. @media screen and (min-width: 360px) and (max-width: 736px) and (orientation : portrait) {} @media screen and (min-width: 360px) and (max-width: 736px) and (orientation : landscape) {} IPHONE 6 iPhone 6 Portrait iPhone 6 Landscape
  • 12. SAMSUNG TAB @media screen and (min-width: 533px) and (max-width: 768px) and (orientation : portrait) {} @media screen and (min-width: 533px) and (max-width: 768px) and (orientation : landscape) {} Samsung Tab Portrait Samsung Tab Landscape
  • 13. @media screen and (min-width: 768px) and (max-width: 1024px) and (orientation : portrait) { } @media screen and (min-width: 768px) and (max-width: 1024px) and (orientation : landscape) { } IPAD iPad Portrait iPad Landscape
  • 14. /*Desktop View*/ /*Header*/ /*End Header*/ /*Navigation bar*/ /*End Navigation bar*/ /*Body*/ /*End Body*/ /*Footer*/ /*End Footer*/ /*End Desktop View*/
  • 15. /*For smartphone portrait*/ @media screen and (min-width: 320px) and (max-width: 640px) and (orientation : portrait) { /*Header*/ /*End Header*/ /*Body*/ /*End Body*/ /*Footer*/ /*End Footer*/ } /*For smartphone landscape*/ @media screen and (min-width: 320px) and (max-width: 640px) and (orientation : landscape) { /*Header*/ /*End Header*/ /*Body*/ /*End Body*/ /*Footer*/ /*End Footer*/ }
  • 16. @media screen and (min-width: 800px) and (max-width: 1280px) and (orientation : portrait) {} @media screen and (min-width: 800px) and (max-width: 1280px) and (orientation : landscape) {} @media screen and (min-width: 900px) and (max-width: 1440px) {} @media screen and (min-width: 600px) and (max-width: 1024px) {} @media screen and (min-width: 1025px) and (max-width: 1280px) {} @media screen and (min-width: 1281px) and (max-width: 1366px) {} @media screen and (min-width: 1367px) and (max-width: 1440px) {} @media screen and (min-width: 1441px) and (max-width: 1600px) {} @media screen and (min-width: 1601px) and (max-width: 1680px) {} @media screen and (min-width: 1681px) and (max-width: 1920px) {} MEDIA QUERIES DECLARATIONS FOR LARGE SCREEN DEVICES