SlideShare a Scribd company logo
1 of 11
|| Jai Sri Gurudev||
Sri Adichunchanagiri Shikshana Trust (R)
SJB INSTITUTE OF TECHNOLOGY
(Affiliated to Visvesvaraya Technological University, Belagavi& Approved by AICTE, New Delhi.)
No. 67, BGS Health & Education City, Dr. Vishnuvardhan Road Kengeri, Bengaluru – 560 060
Subject: Web Technology and Its Applications(18CS63)
By
Girish Kumar B C, Assistant Professor
Semester / Section: 6A
Department of Information Science & Engineering
Aca. Year: EVEN SEM /2022-23
1
Approaches to CSS Layout
Dept. of ISE, SJBIT
2
5/24/2023 Dept. of ISE, SJBIT 3
CSS Layout
 One of the main problems faced by web designers is that the
size of the screen used to view the page can vary quite a bit.
 Some users will visit a site on a 21-inch wide screen monitor that
can display 1920 × 1080 pixels (px); others will visit it on an older
iPhone with a 3.5 screen and a resolution of 320 × 480 px.
 Users with the large monitor might expect a site to take
advantage of the extra size; users with the small monitor will
expect the site to scale to the smaller size and still be usable.
 Satisfying both users can be difficult; the approach to take for
one type of site content might not work as well with another site
with different content.
 Most designers take one of two basic approaches to dealing with
the problems of screen size. While there are other approaches
than these two, the others are really just enhancements to these
two basic models.
5/24/2023 Dept. of ISE, SJBIT 4
Fixed Layouts
 The first approach is to use a fixed layout.
 In a fixed layout, the basic width of the design is
set by the designer, typically corresponding to an
“ideal” width based on a “typical” monitor resolution.
 A common width used is something in the 960
to1000 pixel range, which fits nicely in the common
desktop monitor resolution (1024 × 768).
 This content can then be positioned on the left or
the center of the monitor.
5/24/2023 Dept. of ISE, SJBIT 5
Advantage and Disadvantage
 The advantage of a fixed layout is that it is easier to
produce and generally has a predictable visual result.
 It is also optimized for typical desktop monitors; however,
as more and more user visits are happening via smaller
mobile devices, this advantage might now seem to some
as a disadvantage.
 Fixed layouts have other drawbacks.
 For larger screens, there may be an excessive amount of
blank space to the left and/or right of the content.
 Much worse is when the browser window shrinks below
the fixed width; the user will have to horizontally scroll to
see all the content.
5/24/2023 Dept. of ISE, SJBIT 6
Fixed Layouts
5/24/2023 Dept. of ISE, SJBIT 7
Liquid Layouts
 The second approach to dealing with the problem
of multiple screen sizes is to use a liquid layout
(also called a fluid layout).
 In this approach, widths are not specified using
pixels, but percentage values.
5/24/2023 Dept. of ISE, SJBIT 8
Advantage and Disadvantage
 The obvious advantage of a liquid layout is that it adapts
to different browser sizes, so there is neither wasted
white space nor any need for horizontal scrolling.
 There are several disadvantages however.
 Liquid layouts can be more difficult to create because
some elements, such as images, have fixed pixel sizes.
 Another problem will be noticeable as the screen grows
or shrinks dramatically, in that the line length may
become too long or too short.
 Thus, creating a usable liquid layout is generally more
difficult than creating a fixed layout.
5/24/2023 Dept. of ISE, SJBIT 9
Liquid Layouts
5/24/2023 Dept. of ISE, SJBIT 10
HYBRID APPROACH
 Combine pixel and percentage measurements.
 Fixed pixel measurements might make sense for a
sidebar column containing mainly graphic
advertising images that must always be displayed
and which always are the same width.
 But percentages would make more sense for the
main content or navigation areas, with perhaps min
and max size limits in pixels set for the navigation
areas.
5/24/2023 Dept. of ISE, SJBIT 11
References
1
 http://www.w3schools.com/CSS

More Related Content

Similar to Lecture19-Approaches to CSS Layout.pptx

Responsive Web Design ~ Best Practices for Maximizing ROI
Responsive Web Design ~ Best Practices for Maximizing ROIResponsive Web Design ~ Best Practices for Maximizing ROI
Responsive Web Design ~ Best Practices for Maximizing ROIJuan Carlos Duron
 
Web topic 25 mobile optimized website
Web topic 25  mobile optimized websiteWeb topic 25  mobile optimized website
Web topic 25 mobile optimized websiteCK Yang
 
Liquidizer.js: A Responsive Web Design Algorithm
Liquidizer.js: A Responsive Web Design AlgorithmLiquidizer.js: A Responsive Web Design Algorithm
Liquidizer.js: A Responsive Web Design Algorithmtheijes
 
Web Design in the Multiscreen Era
Web Design in the Multiscreen EraWeb Design in the Multiscreen Era
Web Design in the Multiscreen EraJeremy Horn
 
Responsive web design
Responsive web designResponsive web design
Responsive web designZeeshan Khan
 
Responsive Web Design Has Become One Of The Hottest Trend
Responsive Web Design Has Become One Of The Hottest TrendResponsive Web Design Has Become One Of The Hottest Trend
Responsive Web Design Has Become One Of The Hottest TrendAditMicrosys Australia
 
Desktop on Tablet UX Audit
Desktop on Tablet UX AuditDesktop on Tablet UX Audit
Desktop on Tablet UX AuditTim Broadwater
 
Ch 3: Big Concepts
Ch 3: Big ConceptsCh 3: Big Concepts
Ch 3: Big ConceptsSteve Guinan
 
Responsive web design
Responsive web designResponsive web design
Responsive web designAngela Brown
 
CSS3: Using media queries to improve the web site experience
CSS3: Using media queries to improve the web site experienceCSS3: Using media queries to improve the web site experience
CSS3: Using media queries to improve the web site experienceZoe Gillenwater
 
Responsive Web Design in Cascade Server, by Chris Cox of BarkleyREI
Responsive Web Design in Cascade Server, by Chris Cox of BarkleyREIResponsive Web Design in Cascade Server, by Chris Cox of BarkleyREI
Responsive Web Design in Cascade Server, by Chris Cox of BarkleyREIhannonhill
 
Responsive web designing ppt(1)
Responsive web designing ppt(1)Responsive web designing ppt(1)
Responsive web designing ppt(1)admecindia1
 
Intro to Responsive
Intro to ResponsiveIntro to Responsive
Intro to ResponsiveTom Elliott
 
Responsive Web design Zambig
Responsive Web design ZambigResponsive Web design Zambig
Responsive Web design ZambigTribune Media
 
Responsive Web design _2013
Responsive Web design _2013 Responsive Web design _2013
Responsive Web design _2013 Suresh B
 

Similar to Lecture19-Approaches to CSS Layout.pptx (20)

Responsive Web Design ~ Best Practices for Maximizing ROI
Responsive Web Design ~ Best Practices for Maximizing ROIResponsive Web Design ~ Best Practices for Maximizing ROI
Responsive Web Design ~ Best Practices for Maximizing ROI
 
What's New Solid Edge ST7
What's New Solid Edge ST7What's New Solid Edge ST7
What's New Solid Edge ST7
 
Web topic 25 mobile optimized website
Web topic 25  mobile optimized websiteWeb topic 25  mobile optimized website
Web topic 25 mobile optimized website
 
Liquidizer.js: A Responsive Web Design Algorithm
Liquidizer.js: A Responsive Web Design AlgorithmLiquidizer.js: A Responsive Web Design Algorithm
Liquidizer.js: A Responsive Web Design Algorithm
 
Web Design in the Multiscreen Era
Web Design in the Multiscreen EraWeb Design in the Multiscreen Era
Web Design in the Multiscreen Era
 
Sbwire 531031
Sbwire 531031Sbwire 531031
Sbwire 531031
 
Responsive web design
Responsive web designResponsive web design
Responsive web design
 
Responsive Web Design Has Become One Of The Hottest Trend
Responsive Web Design Has Become One Of The Hottest TrendResponsive Web Design Has Become One Of The Hottest Trend
Responsive Web Design Has Become One Of The Hottest Trend
 
Desktop on Tablet UX Audit
Desktop on Tablet UX AuditDesktop on Tablet UX Audit
Desktop on Tablet UX Audit
 
Ch 3: Big Concepts
Ch 3: Big ConceptsCh 3: Big Concepts
Ch 3: Big Concepts
 
Responsive Design
Responsive DesignResponsive Design
Responsive Design
 
Responsive web design
Responsive web designResponsive web design
Responsive web design
 
Grid design
Grid designGrid design
Grid design
 
CSS3: Using media queries to improve the web site experience
CSS3: Using media queries to improve the web site experienceCSS3: Using media queries to improve the web site experience
CSS3: Using media queries to improve the web site experience
 
Responsive Web Design in Cascade Server, by Chris Cox of BarkleyREI
Responsive Web Design in Cascade Server, by Chris Cox of BarkleyREIResponsive Web Design in Cascade Server, by Chris Cox of BarkleyREI
Responsive Web Design in Cascade Server, by Chris Cox of BarkleyREI
 
Responsive Web Designing Fundamentals
Responsive Web Designing FundamentalsResponsive Web Designing Fundamentals
Responsive Web Designing Fundamentals
 
Responsive web designing ppt(1)
Responsive web designing ppt(1)Responsive web designing ppt(1)
Responsive web designing ppt(1)
 
Intro to Responsive
Intro to ResponsiveIntro to Responsive
Intro to Responsive
 
Responsive Web design Zambig
Responsive Web design ZambigResponsive Web design Zambig
Responsive Web design Zambig
 
Responsive Web design _2013
Responsive Web design _2013 Responsive Web design _2013
Responsive Web design _2013
 

Recently uploaded

VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 

Recently uploaded (20)

VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 

Lecture19-Approaches to CSS Layout.pptx

  • 1. || Jai Sri Gurudev|| Sri Adichunchanagiri Shikshana Trust (R) SJB INSTITUTE OF TECHNOLOGY (Affiliated to Visvesvaraya Technological University, Belagavi& Approved by AICTE, New Delhi.) No. 67, BGS Health & Education City, Dr. Vishnuvardhan Road Kengeri, Bengaluru – 560 060 Subject: Web Technology and Its Applications(18CS63) By Girish Kumar B C, Assistant Professor Semester / Section: 6A Department of Information Science & Engineering Aca. Year: EVEN SEM /2022-23 1
  • 2. Approaches to CSS Layout Dept. of ISE, SJBIT 2
  • 3. 5/24/2023 Dept. of ISE, SJBIT 3 CSS Layout  One of the main problems faced by web designers is that the size of the screen used to view the page can vary quite a bit.  Some users will visit a site on a 21-inch wide screen monitor that can display 1920 × 1080 pixels (px); others will visit it on an older iPhone with a 3.5 screen and a resolution of 320 × 480 px.  Users with the large monitor might expect a site to take advantage of the extra size; users with the small monitor will expect the site to scale to the smaller size and still be usable.  Satisfying both users can be difficult; the approach to take for one type of site content might not work as well with another site with different content.  Most designers take one of two basic approaches to dealing with the problems of screen size. While there are other approaches than these two, the others are really just enhancements to these two basic models.
  • 4. 5/24/2023 Dept. of ISE, SJBIT 4 Fixed Layouts  The first approach is to use a fixed layout.  In a fixed layout, the basic width of the design is set by the designer, typically corresponding to an “ideal” width based on a “typical” monitor resolution.  A common width used is something in the 960 to1000 pixel range, which fits nicely in the common desktop monitor resolution (1024 × 768).  This content can then be positioned on the left or the center of the monitor.
  • 5. 5/24/2023 Dept. of ISE, SJBIT 5 Advantage and Disadvantage  The advantage of a fixed layout is that it is easier to produce and generally has a predictable visual result.  It is also optimized for typical desktop monitors; however, as more and more user visits are happening via smaller mobile devices, this advantage might now seem to some as a disadvantage.  Fixed layouts have other drawbacks.  For larger screens, there may be an excessive amount of blank space to the left and/or right of the content.  Much worse is when the browser window shrinks below the fixed width; the user will have to horizontally scroll to see all the content.
  • 6. 5/24/2023 Dept. of ISE, SJBIT 6 Fixed Layouts
  • 7. 5/24/2023 Dept. of ISE, SJBIT 7 Liquid Layouts  The second approach to dealing with the problem of multiple screen sizes is to use a liquid layout (also called a fluid layout).  In this approach, widths are not specified using pixels, but percentage values.
  • 8. 5/24/2023 Dept. of ISE, SJBIT 8 Advantage and Disadvantage  The obvious advantage of a liquid layout is that it adapts to different browser sizes, so there is neither wasted white space nor any need for horizontal scrolling.  There are several disadvantages however.  Liquid layouts can be more difficult to create because some elements, such as images, have fixed pixel sizes.  Another problem will be noticeable as the screen grows or shrinks dramatically, in that the line length may become too long or too short.  Thus, creating a usable liquid layout is generally more difficult than creating a fixed layout.
  • 9. 5/24/2023 Dept. of ISE, SJBIT 9 Liquid Layouts
  • 10. 5/24/2023 Dept. of ISE, SJBIT 10 HYBRID APPROACH  Combine pixel and percentage measurements.  Fixed pixel measurements might make sense for a sidebar column containing mainly graphic advertising images that must always be displayed and which always are the same width.  But percentages would make more sense for the main content or navigation areas, with perhaps min and max size limits in pixels set for the navigation areas.
  • 11. 5/24/2023 Dept. of ISE, SJBIT 11 References 1  http://www.w3schools.com/CSS