SlideShare a Scribd company logo
2
Most read
13
Most read
CSS RESPONSIVE
CSS3 Responsive Web Design
 Responsive web design provides an optimal experience, easy reading and easy
navigation with a minimum of resizing on different devices such as desktops,
mobiles and tabs).
Responsive structure :
 Below image shows the responsive structure of web pages.
Flexible Grid Demo :
<html>
<head>
<style>
body {
font: 600 14px/24px "Open Sans",
"HelveticaNeue-Light",
"Helvetica Neue Light",
"Helvetica Neue",
Helvetica, Arial,
"Lucida Grande",
Sans-Serif;
}
h1 {
color: #9799a7;
font-size: 14px;
font-weight: bold;
margin-bottom: 6px;
}
.container:before, .container:after {
content: "";
display: table;
}
.container:after {
clear: both;
}
.container {
background: #eaeaed;
margin-bottom: 24px;
*zoom: 1;
}
.container-75 {
width: 75%;
}
.container-50 {
margin-bottom: 0;
width: 50%;
}
.container, section, aside {
border-radius: 6px;
}
section, aside {
background: #2db34a;
color: #fff;
margin: 1.858736059%;
padding: 20px 0;
text-align: center;
}
section {
float: left;
width: 63.197026%;
}
aside {
float: right;
width: 29.3680297%;
}
</style>
</head>
<body>
<h1>100% Wide Container</h1>
<div class = "container">
<section>Section</section>
<aside>Aside</aside>
</div>
<h1>75% Wide Container</h1>
<div class = "container container-75">
<section>Section</section>
<aside>Aside</aside>
</div>
<h1>50% Wide Container</h1>
<div class = "container container-50">
<section>Section</section>
<aside>Aside</aside>
</div>
</body>
</html>
It will produce the following result −
Media Queries
Media queries is for different style rules for different size devices such as mobiles,
desktops, etc.,
<html>
<head>
<style>
body {
background-color: lightpink;
}
@media screen and (max-width: 420px) {
body {
background-color: lightblue;
}
}
</style>
</head>
<body>
<p>
If screen size is less than 420px, then it will show lightblue
color, or else it will show light pink color
</p>
</body>
</html>
It will produce the following result −
Bootstrap responsive web design
Bootstrap is most popular web design framework based on HTML,CSS and Java
script and it helps you to design web pages in responsive way for all devices.
<html>
<head>
<meta charset = "utf-8">
<meta name = "viewport" content = "width=device-width, initial-scale = 1">
<link rel = "stylesheet"
href =
"http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<style>
body {
color:green;
}
</style>
</head>
<body>
<div class = "container">
<div class = "jumbotron">
<h1>Tutorials point</h1>
<p>
Tutorials Point originated from the idea that there exists a class
of readers who respond better to online content and prefer to learn
new skills at their own pace from the comforts of their drawing rooms.
</p>
</div>
<div class = "row">
<div class = "col-md-4">
<h2>Android</h2>
<p>
Android is an open source and Linux-based operating system for mobile
devices such as smartphones and tablet computers. Android was
developed
by the Open Handset Alliance, led by Google, and other companies.
</p>
</div>
<div class = "col-md-4">
<h2>CSS</h2>
<p>
Cascading Style Sheets, fondly referred to as CSS, is a simple design
language intended to simplify the process of making web pages presentable.
</p>
</div>
<div class = "col-md-4">
<h2>Java</h2>
<p>
Java is a high-level programming language originally developed by Sun
Microsystems and released in 1995. Java runs on a variety of platforms,
such as Windows, Mac OS, and the various versions of UNIX. This tutorial
gives a complete understanding of Java.
</p>
</div>
</div>
</body>
</html>
It will produce the following result −

More Related Content

PPTX
Page layout with css
PPTX
Responsive web design with html5 and css3
PDF
Resource scheduling algorithm
PPT
overview of physical storage media
PDF
Taming GC Pauses for Humongous Java Heaps in Spark Graph Computing-(Eric Kacz...
PPT
PPT
Ajax Lecture Notes
PPTX
Java Servlets
Page layout with css
Responsive web design with html5 and css3
Resource scheduling algorithm
overview of physical storage media
Taming GC Pauses for Humongous Java Heaps in Spark Graph Computing-(Eric Kacz...
Ajax Lecture Notes
Java Servlets

What's hot (20)

PDF
Bca sem 6 php practicals 1to12
PPTX
Css selectors
PPT
Active Server Page(ASP)
PDF
Murach: An introduction to web programming with ASP.NET Core MVC
PPTX
Complete Lecture on Css presentation
PPTX
L17 Presentation Layer Design
PDF
CSS selectors
PPTX
Android Architecture.pptx
PPT
Shared memory
PDF
CSS Day: CSS Grid Layout
PPTX
Css and its types
PPTX
Xml presentation
PPT
3. distributed file system requirements
DOC
Inward outward documentation
PPTX
Responsive web-design through bootstrap
PPTX
Difference between Homogeneous and Heterogeneous
PPT
Asp.net architecture
PPTX
14. session 14 dhtml filter
PPTX
ASP.NET - Life cycle of asp
Bca sem 6 php practicals 1to12
Css selectors
Active Server Page(ASP)
Murach: An introduction to web programming with ASP.NET Core MVC
Complete Lecture on Css presentation
L17 Presentation Layer Design
CSS selectors
Android Architecture.pptx
Shared memory
CSS Day: CSS Grid Layout
Css and its types
Xml presentation
3. distributed file system requirements
Inward outward documentation
Responsive web-design through bootstrap
Difference between Homogeneous and Heterogeneous
Asp.net architecture
14. session 14 dhtml filter
ASP.NET - Life cycle of asp
Ad

Similar to Css responsive (20)

PDF
Introduction to Responsive Design v.2
PDF
Responsive Design Tools & Resources
PDF
Responsive Web Design
PDF
Introduction to Responsive Web Design
PDF
Responsive Web Design with HTML5 and CSS3
PPTX
Bootstrap basics.pptx of web design responsive design
PDF
CSS3: Simply Responsive
PPTX
Lect-4-Responsive-Web-06032024-082044am.pptx
PPT
Mobile Monday Presentation: Responsive Web Design
PPTX
Responsive & Adaptive Web Design
PDF
Stop reinventing the wheel: Build Responsive Websites Using Bootstrap
PPTX
Responsive web designing
PDF
Joanna chwastowska responsive layout - droid con
PPTX
Responsive Web Designing Fundamentals
PPTX
Responsive web designing ppt(1)
PPTX
Responsive web design
KEY
Responsive web-design
PDF
Beautiful.ai - HTMLCSS Fundamentals Mastering the Essentials.pdf
PDF
Responsive Web Design (April 18th, Los Angeles)
PPTX
Responsivedesign 7-3-2012
Introduction to Responsive Design v.2
Responsive Design Tools & Resources
Responsive Web Design
Introduction to Responsive Web Design
Responsive Web Design with HTML5 and CSS3
Bootstrap basics.pptx of web design responsive design
CSS3: Simply Responsive
Lect-4-Responsive-Web-06032024-082044am.pptx
Mobile Monday Presentation: Responsive Web Design
Responsive & Adaptive Web Design
Stop reinventing the wheel: Build Responsive Websites Using Bootstrap
Responsive web designing
Joanna chwastowska responsive layout - droid con
Responsive Web Designing Fundamentals
Responsive web designing ppt(1)
Responsive web design
Responsive web-design
Beautiful.ai - HTMLCSS Fundamentals Mastering the Essentials.pdf
Responsive Web Design (April 18th, Los Angeles)
Responsivedesign 7-3-2012
Ad

More from AbhishekMondal42 (20)

PPTX
Oss evaluation-certification-oss-financial-advantages
PPTX
Word press 01
PPTX
Word press posts(preview &amp; publish)
PPTX
Word press posts(add , edit , delete post)
PPTX
Word press pages(edit and delete)
PPTX
Word press pages(add)
PPTX
Word press media(add,insert,delete)
PPTX
Word press media library
PPTX
Word press widget management
PPTX
Word press view plugins
PPTX
Word press user roles
PPTX
Word press theme management
PPTX
Word press personal profile
PPTX
Word press moderate comments
PPTX
Word press install plugins
PPTX
Word press edit users
PPTX
Word press edit tags
PPTX
Word press edit links
PPTX
Word press edit comments
PPTX
Word press delete users
Oss evaluation-certification-oss-financial-advantages
Word press 01
Word press posts(preview &amp; publish)
Word press posts(add , edit , delete post)
Word press pages(edit and delete)
Word press pages(add)
Word press media(add,insert,delete)
Word press media library
Word press widget management
Word press view plugins
Word press user roles
Word press theme management
Word press personal profile
Word press moderate comments
Word press install plugins
Word press edit users
Word press edit tags
Word press edit links
Word press edit comments
Word press delete users

Recently uploaded (20)

PPTX
GDM (1) (1).pptx small presentation for students
PPTX
Lesson notes of climatology university.
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Classroom Observation Tools for Teachers
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Yogi Goddess Pres Conference Studio Updates
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Trump Administration's workforce development strategy
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PDF
RMMM.pdf make it easy to upload and study
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
Computing-Curriculum for Schools in Ghana
GDM (1) (1).pptx small presentation for students
Lesson notes of climatology university.
2.FourierTransform-ShortQuestionswithAnswers.pdf
Final Presentation General Medicine 03-08-2024.pptx
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
human mycosis Human fungal infections are called human mycosis..pptx
Classroom Observation Tools for Teachers
VCE English Exam - Section C Student Revision Booklet
Yogi Goddess Pres Conference Studio Updates
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Supply Chain Operations Speaking Notes -ICLT Program
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Trump Administration's workforce development strategy
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
RMMM.pdf make it easy to upload and study
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Computing-Curriculum for Schools in Ghana

Css responsive

  • 2. CSS3 Responsive Web Design  Responsive web design provides an optimal experience, easy reading and easy navigation with a minimum of resizing on different devices such as desktops, mobiles and tabs). Responsive structure :  Below image shows the responsive structure of web pages.
  • 3. Flexible Grid Demo : <html> <head> <style> body { font: 600 14px/24px "Open Sans", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", Sans-Serif; } h1 { color: #9799a7; font-size: 14px; font-weight: bold; margin-bottom: 6px; } .container:before, .container:after { content: "";
  • 4. display: table; } .container:after { clear: both; } .container { background: #eaeaed; margin-bottom: 24px; *zoom: 1; } .container-75 { width: 75%; } .container-50 { margin-bottom: 0; width: 50%; } .container, section, aside { border-radius: 6px; } section, aside {
  • 5. background: #2db34a; color: #fff; margin: 1.858736059%; padding: 20px 0; text-align: center; } section { float: left; width: 63.197026%; } aside { float: right; width: 29.3680297%; } </style> </head> <body> <h1>100% Wide Container</h1>
  • 6. <div class = "container"> <section>Section</section> <aside>Aside</aside> </div> <h1>75% Wide Container</h1> <div class = "container container-75"> <section>Section</section> <aside>Aside</aside> </div> <h1>50% Wide Container</h1> <div class = "container container-50"> <section>Section</section> <aside>Aside</aside> </div> </body> </html>
  • 7. It will produce the following result −
  • 8. Media Queries Media queries is for different style rules for different size devices such as mobiles, desktops, etc., <html> <head> <style> body { background-color: lightpink; } @media screen and (max-width: 420px) { body { background-color: lightblue; }
  • 9. } </style> </head> <body> <p> If screen size is less than 420px, then it will show lightblue color, or else it will show light pink color </p> </body> </html>
  • 10. It will produce the following result −
  • 11. Bootstrap responsive web design Bootstrap is most popular web design framework based on HTML,CSS and Java script and it helps you to design web pages in responsive way for all devices. <html> <head> <meta charset = "utf-8"> <meta name = "viewport" content = "width=device-width, initial-scale = 1"> <link rel = "stylesheet" href = "http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> <style> body { color:green; } </style> </head>
  • 12. <body> <div class = "container"> <div class = "jumbotron"> <h1>Tutorials point</h1> <p> Tutorials Point originated from the idea that there exists a class of readers who respond better to online content and prefer to learn new skills at their own pace from the comforts of their drawing rooms. </p> </div> <div class = "row"> <div class = "col-md-4">
  • 13. <h2>Android</h2> <p> Android is an open source and Linux-based operating system for mobile devices such as smartphones and tablet computers. Android was developed by the Open Handset Alliance, led by Google, and other companies. </p> </div> <div class = "col-md-4"> <h2>CSS</h2> <p> Cascading Style Sheets, fondly referred to as CSS, is a simple design language intended to simplify the process of making web pages presentable. </p>
  • 14. </div> <div class = "col-md-4"> <h2>Java</h2> <p> Java is a high-level programming language originally developed by Sun Microsystems and released in 1995. Java runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX. This tutorial gives a complete understanding of Java. </p> </div> </div> </body> </html>
  • 15. It will produce the following result −