SlideShare a Scribd company logo
1 of 34
Principles of Web Design
5th Edition
Chapter Seven
Page Layouts
Objectives
When you complete this chapter, you will be able to:
• Understand the normal flow of elements
• Use the division element to create content
containers
• Create floating layouts
• Build a flexible page layout
• Build a fixed page layout
2
Understanding the Normal Flow
• The normal flow determines the sequence of
element display
• Boxes are laid out vertically one after the other,
beginning at the top of the containing
• Each box horizontally fills the browser window
Principles of Web Design 5th Ed. 3
Principles of Web Design 5th Ed. 4
Understanding the Normal Flow
• In the normal flow for inline elements, boxes are
laid out horizontally beginning at the top left of the
containing block
• The inline boxes comprise the lines of text within,
for example, a <p> element
• When you float an element, you take it out of the
normal flow
• Check the results frequently as you are designing
your layout using floats
Principles of Web Design 5th Ed. 5
Principles of Web Design 5th Ed. 6
Using the Division Element to
Create Content Containers
• The <div> element is your primary tool for creating
content sections
• Use the box properties to create divisions in the
shape you need
• You can create columns and control the space
between them
• Use a container division, often called a wrapper, to
contain a page layout
Principles of Web Design 5th Ed. 7
Principles of Web Design 5th Ed. 8
Principles of Web Design 5th Ed. 9
Creating Floating Layouts
• The float property lets you build columnar layouts
• You can align content elements to either the right
or left side of the browser window
• A typical Web page design can contain both
floating and non-floating elements
• Remember to always use a width property for
floating elements
Principles of Web Design 5th Ed. 10
Creating Floating Layouts
• Building floating layouts requires that you choose a
method for containing the floating elements
• You will often see that the floating elements extend
beyond their containing elements, which will result
in a “broken” layout
Principles of Web Design 5th Ed. 12
Solution 1: Using a
Normal Flow Element
• If you have multiple columns, at least one needs to
be non-floating (in the normal flow)
• The non-floating element must be positioned with
the margin properties
Principles of Web Design 5th Ed. 14
Principles of Web Design 5th Ed. 15
Solution 2: Using the Clear Property
• Use a non-floating footer element (in the normal
flow), with the clear property set to both
Principles of Web Design 5th Ed. 16
Principles of Web Design 5th Ed. 17
Floating Elements within Floats
• Floating elements give you a wide variety of
options for building interesting page layouts
• If you are floating an element within another
element, the order of the elements is important
Principles of Web Design 5th Ed. 18
Principles of Web Design 5th Ed.
Principles of Web Design 5th Ed.
Fixing Column Drops
• Column drops occur when the total width of the
columnar elements in a page layout exceeds the
width of their containing element
Principles of Web Design 5th Ed. 22
Principles of Web Design 5th Ed. 23
Clearing Problem Floats
• Floats occasionally do not appear exactly where
you want them to appear
• The clear property can solve this problem
Principles of Web Design 5th Ed. 24
Principles of Web Design 5th Ed.
Building a Flexible Page Layout
• Flexible layouts adapt to the size of the browser
window
• With a flexible layout, your content has to adapt
and look good at a wide range of layout sizes
Principles of Web Design 5th Ed. 26
Principles of Web Design 5th Ed. 27
Principles of Web Design 5th Ed. 28
Controlling Flexible Layout Width
• You can control the compression and expansion of
your content in a flexible layout by setting minimum
and maximum widths
div.wrapper {
width: 100%;
min-width: 750px;
max-width: 1220px;
}
Principles of Web Design 5th Ed. 29
Building a Fixed Page Layout
• Fixed layouts remain constant despite the resizing
of the browser in different screen resolutions and
monitor sizes
• Many designers prefer fixed layouts because they
have more control over the finished design
• Fixed layouts are normally contained by a wrapper
element that controls the page width and centers
the page in the browser window
Principles of Web Design 5th Ed. 30
Principles of Web Design 5th Ed. 31
Controlling Fixed Layout Centering
• A wrapper division lets you automatically center the
layout in the browser
• This is a great solution for wide-screen monitors
• Automatic centering is a simple use of the margin
property
#wrapper {
width: 960px;
margin-left: auto;
margin-right: auto;
border: thin solid black;
background-color: #ffc;
}
Principles of Web Design 5th Ed. 32
Principles of Web Design 5th Ed. 33
Summary
• The normal flow dictates the way in which elements
normally are displayed in the browser window
• When you remove an element from the normal
flow, you may see unexpected behavior from other
elements
• Remember to always use a width property for
floating elements
• Remember to avoid using the height property
• For fixed layouts, content elements are usually
contained with a wrapper element that sets the
width for the page layout
Principles of Web Design 5th Ed. 34

More Related Content

Similar to 9781111528705_PPT_ch07.ppt

9781111528705_PPT_ch09.ppt
9781111528705_PPT_ch09.ppt9781111528705_PPT_ch09.ppt
9781111528705_PPT_ch09.pptSimonChirambira
 
Responsive web design
Responsive web designResponsive web design
Responsive web designRicha Goel
 
Cross Browser Issues - few solutions inspired by smashing magazine
Cross Browser Issues - few solutions inspired by smashing magazineCross Browser Issues - few solutions inspired by smashing magazine
Cross Browser Issues - few solutions inspired by smashing magazinePrabhakaran Mani
 
Advanced CSS.pptx
Advanced CSS.pptxAdvanced CSS.pptx
Advanced CSS.pptxDiyonaVas
 
Introduction to Responsive Web Development
Introduction to Responsive Web DevelopmentIntroduction to Responsive Web Development
Introduction to Responsive Web DevelopmentNikhil Baby
 
Drupal architectures for flexible content - Drupalcon Barcelona
Drupal architectures for flexible content - Drupalcon BarcelonaDrupal architectures for flexible content - Drupalcon Barcelona
Drupal architectures for flexible content - Drupalcon Barcelonahernanibf
 
Basics of expression blend4
Basics of expression blend4Basics of expression blend4
Basics of expression blend4Samson Tennela
 
Castro Chapter 11
Castro Chapter 11Castro Chapter 11
Castro Chapter 11Jeff Byrnes
 
how to make your own website - Website design
how to make your own website - Website designhow to make your own website - Website design
how to make your own website - Website designVishnuSharmaDigital
 
Ifi7174 lesson4
Ifi7174 lesson4Ifi7174 lesson4
Ifi7174 lesson4Sónia
 
Chapter05-Presentation.pptx
Chapter05-Presentation.pptxChapter05-Presentation.pptx
Chapter05-Presentation.pptxssuserf3db48
 
Design Like a Pro: Building Mobile-Responsive HMIs in Ignition Perspective
Design Like a Pro: Building Mobile-Responsive HMIs in Ignition PerspectiveDesign Like a Pro: Building Mobile-Responsive HMIs in Ignition Perspective
Design Like a Pro: Building Mobile-Responsive HMIs in Ignition PerspectiveInductive Automation
 
Week 8 - Interactive News Editing and Producing
Week 8 - Interactive News Editing and ProducingWeek 8 - Interactive News Editing and Producing
Week 8 - Interactive News Editing and Producingkurtgessler
 
Introduction to Drupal 7 - Panels
Introduction to Drupal 7 - PanelsIntroduction to Drupal 7 - Panels
Introduction to Drupal 7 - PanelsKalin Chernev
 

Similar to 9781111528705_PPT_ch07.ppt (20)

Ppt ch09
Ppt ch09Ppt ch09
Ppt ch09
 
Ppt ch09
Ppt ch09Ppt ch09
Ppt ch09
 
9781111528705_PPT_ch09.ppt
9781111528705_PPT_ch09.ppt9781111528705_PPT_ch09.ppt
9781111528705_PPT_ch09.ppt
 
Responsive web design
Responsive web designResponsive web design
Responsive web design
 
Cross Browser Issues - few solutions inspired by smashing magazine
Cross Browser Issues - few solutions inspired by smashing magazineCross Browser Issues - few solutions inspired by smashing magazine
Cross Browser Issues - few solutions inspired by smashing magazine
 
Advanced CSS.pptx
Advanced CSS.pptxAdvanced CSS.pptx
Advanced CSS.pptx
 
Ppt ch12
Ppt ch12Ppt ch12
Ppt ch12
 
Introduction to Responsive Web Development
Introduction to Responsive Web DevelopmentIntroduction to Responsive Web Development
Introduction to Responsive Web Development
 
Drupal architectures for flexible content - Drupalcon Barcelona
Drupal architectures for flexible content - Drupalcon BarcelonaDrupal architectures for flexible content - Drupalcon Barcelona
Drupal architectures for flexible content - Drupalcon Barcelona
 
Basics of expression blend4
Basics of expression blend4Basics of expression blend4
Basics of expression blend4
 
Castro Chapter 11
Castro Chapter 11Castro Chapter 11
Castro Chapter 11
 
how to make your own website - Website design
how to make your own website - Website designhow to make your own website - Website design
how to make your own website - Website design
 
Ifi7174 lesson4
Ifi7174 lesson4Ifi7174 lesson4
Ifi7174 lesson4
 
Chapter05-Presentation.pptx
Chapter05-Presentation.pptxChapter05-Presentation.pptx
Chapter05-Presentation.pptx
 
Ppt ch01
Ppt ch01Ppt ch01
Ppt ch01
 
Ppt ch01
Ppt ch01Ppt ch01
Ppt ch01
 
Design Like a Pro: Building Mobile-Responsive HMIs in Ignition Perspective
Design Like a Pro: Building Mobile-Responsive HMIs in Ignition PerspectiveDesign Like a Pro: Building Mobile-Responsive HMIs in Ignition Perspective
Design Like a Pro: Building Mobile-Responsive HMIs in Ignition Perspective
 
CCS PPT 10.pptx
CCS PPT 10.pptxCCS PPT 10.pptx
CCS PPT 10.pptx
 
Week 8 - Interactive News Editing and Producing
Week 8 - Interactive News Editing and ProducingWeek 8 - Interactive News Editing and Producing
Week 8 - Interactive News Editing and Producing
 
Introduction to Drupal 7 - Panels
Introduction to Drupal 7 - PanelsIntroduction to Drupal 7 - Panels
Introduction to Drupal 7 - Panels
 

More from SimonChirambira

9781111528705_PPT_ch03.ppt
9781111528705_PPT_ch03.ppt9781111528705_PPT_ch03.ppt
9781111528705_PPT_ch03.pptSimonChirambira
 
9781111528705_PPT_ch11.ppt
9781111528705_PPT_ch11.ppt9781111528705_PPT_ch11.ppt
9781111528705_PPT_ch11.pptSimonChirambira
 
9781111528705_PPT_ch08.ppt
9781111528705_PPT_ch08.ppt9781111528705_PPT_ch08.ppt
9781111528705_PPT_ch08.pptSimonChirambira
 
9781111528705_PPT_ch04.ppt
9781111528705_PPT_ch04.ppt9781111528705_PPT_ch04.ppt
9781111528705_PPT_ch04.pptSimonChirambira
 
9781111528705_PPT_ch05.ppt
9781111528705_PPT_ch05.ppt9781111528705_PPT_ch05.ppt
9781111528705_PPT_ch05.pptSimonChirambira
 
9781111528705_PPT_ch012.pptx
9781111528705_PPT_ch012.pptx9781111528705_PPT_ch012.pptx
9781111528705_PPT_ch012.pptxSimonChirambira
 
9781111528705_PPT_ch013.pptx
9781111528705_PPT_ch013.pptx9781111528705_PPT_ch013.pptx
9781111528705_PPT_ch013.pptxSimonChirambira
 
9781111528705_PPT_ch10.ppt
9781111528705_PPT_ch10.ppt9781111528705_PPT_ch10.ppt
9781111528705_PPT_ch10.pptSimonChirambira
 
9781111528705_PPT_ch014.pptx
9781111528705_PPT_ch014.pptx9781111528705_PPT_ch014.pptx
9781111528705_PPT_ch014.pptxSimonChirambira
 
9781111528705_PPT_ch01.pptx
9781111528705_PPT_ch01.pptx9781111528705_PPT_ch01.pptx
9781111528705_PPT_ch01.pptxSimonChirambira
 

More from SimonChirambira (10)

9781111528705_PPT_ch03.ppt
9781111528705_PPT_ch03.ppt9781111528705_PPT_ch03.ppt
9781111528705_PPT_ch03.ppt
 
9781111528705_PPT_ch11.ppt
9781111528705_PPT_ch11.ppt9781111528705_PPT_ch11.ppt
9781111528705_PPT_ch11.ppt
 
9781111528705_PPT_ch08.ppt
9781111528705_PPT_ch08.ppt9781111528705_PPT_ch08.ppt
9781111528705_PPT_ch08.ppt
 
9781111528705_PPT_ch04.ppt
9781111528705_PPT_ch04.ppt9781111528705_PPT_ch04.ppt
9781111528705_PPT_ch04.ppt
 
9781111528705_PPT_ch05.ppt
9781111528705_PPT_ch05.ppt9781111528705_PPT_ch05.ppt
9781111528705_PPT_ch05.ppt
 
9781111528705_PPT_ch012.pptx
9781111528705_PPT_ch012.pptx9781111528705_PPT_ch012.pptx
9781111528705_PPT_ch012.pptx
 
9781111528705_PPT_ch013.pptx
9781111528705_PPT_ch013.pptx9781111528705_PPT_ch013.pptx
9781111528705_PPT_ch013.pptx
 
9781111528705_PPT_ch10.ppt
9781111528705_PPT_ch10.ppt9781111528705_PPT_ch10.ppt
9781111528705_PPT_ch10.ppt
 
9781111528705_PPT_ch014.pptx
9781111528705_PPT_ch014.pptx9781111528705_PPT_ch014.pptx
9781111528705_PPT_ch014.pptx
 
9781111528705_PPT_ch01.pptx
9781111528705_PPT_ch01.pptx9781111528705_PPT_ch01.pptx
9781111528705_PPT_ch01.pptx
 

Recently uploaded

NO1 Famous Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Add...
NO1 Famous Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Add...NO1 Famous Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Add...
NO1 Famous Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Add...Amil baba
 
VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130
VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130
VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130Suhani Kapoor
 
PORTAFOLIO 2024_ ANASTASIYA KUDINOVA
PORTAFOLIO   2024_  ANASTASIYA  KUDINOVAPORTAFOLIO   2024_  ANASTASIYA  KUDINOVA
PORTAFOLIO 2024_ ANASTASIYA KUDINOVAAnastasiya Kudinova
 
VIP Call Girl Amravati Aashi 8250192130 Independent Escort Service Amravati
VIP Call Girl Amravati Aashi 8250192130 Independent Escort Service AmravatiVIP Call Girl Amravati Aashi 8250192130 Independent Escort Service Amravati
VIP Call Girl Amravati Aashi 8250192130 Independent Escort Service AmravatiSuhani Kapoor
 
Kurla Call Girls Pooja Nehwal📞 9892124323 ✅ Vashi Call Service Available Nea...
Kurla Call Girls Pooja Nehwal📞 9892124323 ✅  Vashi Call Service Available Nea...Kurla Call Girls Pooja Nehwal📞 9892124323 ✅  Vashi Call Service Available Nea...
Kurla Call Girls Pooja Nehwal📞 9892124323 ✅ Vashi Call Service Available Nea...Pooja Nehwal
 
Raj Nagar Extension Call Girls 9711199012 WhatsApp No, Delhi Escorts in Raj N...
Raj Nagar Extension Call Girls 9711199012 WhatsApp No, Delhi Escorts in Raj N...Raj Nagar Extension Call Girls 9711199012 WhatsApp No, Delhi Escorts in Raj N...
Raj Nagar Extension Call Girls 9711199012 WhatsApp No, Delhi Escorts in Raj N...ankitnayak356677
 
CALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun serviceCALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun serviceanilsa9823
 
How to Be Famous in your Field just visit our Site
How to Be Famous in your Field just visit our SiteHow to Be Famous in your Field just visit our Site
How to Be Famous in your Field just visit our Sitegalleryaagency
 
Cosumer Willingness to Pay for Sustainable Bricks
Cosumer Willingness to Pay for Sustainable BricksCosumer Willingness to Pay for Sustainable Bricks
Cosumer Willingness to Pay for Sustainable Bricksabhishekparmar618
 
Kindergarten Assessment Questions Via LessonUp
Kindergarten Assessment Questions Via LessonUpKindergarten Assessment Questions Via LessonUp
Kindergarten Assessment Questions Via LessonUpmainac1
 
VIP Kolkata Call Girl Gariahat 👉 8250192130 Available With Room
VIP Kolkata Call Girl Gariahat 👉 8250192130  Available With RoomVIP Kolkata Call Girl Gariahat 👉 8250192130  Available With Room
VIP Kolkata Call Girl Gariahat 👉 8250192130 Available With Roomdivyansh0kumar0
 
The_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdf
The_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdfThe_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdf
The_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdfAmirYakdi
 
PORTFOLIO DE ARQUITECTURA CRISTOBAL HERAUD 2024
PORTFOLIO DE ARQUITECTURA CRISTOBAL HERAUD 2024PORTFOLIO DE ARQUITECTURA CRISTOBAL HERAUD 2024
PORTFOLIO DE ARQUITECTURA CRISTOBAL HERAUD 2024CristobalHeraud
 
Fashion trends before and after covid.pptx
Fashion trends before and after covid.pptxFashion trends before and after covid.pptx
Fashion trends before and after covid.pptxVanshNarang19
 
Call Girls In Safdarjung Enclave 24/7✡️9711147426✡️ Escorts Service
Call Girls In Safdarjung Enclave 24/7✡️9711147426✡️ Escorts ServiceCall Girls In Safdarjung Enclave 24/7✡️9711147426✡️ Escorts Service
Call Girls In Safdarjung Enclave 24/7✡️9711147426✡️ Escorts Servicejennyeacort
 
Captivating Charm: Exploring Marseille's Hillside Villas with Our 3D Architec...
Captivating Charm: Exploring Marseille's Hillside Villas with Our 3D Architec...Captivating Charm: Exploring Marseille's Hillside Villas with Our 3D Architec...
Captivating Charm: Exploring Marseille's Hillside Villas with Our 3D Architec...Yantram Animation Studio Corporation
 
Bus tracking.pptx ,,,,,,,,,,,,,,,,,,,,,,,,,,
Bus tracking.pptx ,,,,,,,,,,,,,,,,,,,,,,,,,,Bus tracking.pptx ,,,,,,,,,,,,,,,,,,,,,,,,,,
Bus tracking.pptx ,,,,,,,,,,,,,,,,,,,,,,,,,,bhuyansuprit
 
A level Digipak development Presentation
A level Digipak development PresentationA level Digipak development Presentation
A level Digipak development Presentationamedia6
 

Recently uploaded (20)

NO1 Famous Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Add...
NO1 Famous Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Add...NO1 Famous Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Add...
NO1 Famous Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Add...
 
VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130
VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130
VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130
 
PORTAFOLIO 2024_ ANASTASIYA KUDINOVA
PORTAFOLIO   2024_  ANASTASIYA  KUDINOVAPORTAFOLIO   2024_  ANASTASIYA  KUDINOVA
PORTAFOLIO 2024_ ANASTASIYA KUDINOVA
 
VIP Call Girl Amravati Aashi 8250192130 Independent Escort Service Amravati
VIP Call Girl Amravati Aashi 8250192130 Independent Escort Service AmravatiVIP Call Girl Amravati Aashi 8250192130 Independent Escort Service Amravati
VIP Call Girl Amravati Aashi 8250192130 Independent Escort Service Amravati
 
Kurla Call Girls Pooja Nehwal📞 9892124323 ✅ Vashi Call Service Available Nea...
Kurla Call Girls Pooja Nehwal📞 9892124323 ✅  Vashi Call Service Available Nea...Kurla Call Girls Pooja Nehwal📞 9892124323 ✅  Vashi Call Service Available Nea...
Kurla Call Girls Pooja Nehwal📞 9892124323 ✅ Vashi Call Service Available Nea...
 
Call Girls Service Mukherjee Nagar @9999965857 Delhi 🫦 No Advance VVIP 🍎 SER...
Call Girls Service Mukherjee Nagar @9999965857 Delhi 🫦 No Advance  VVIP 🍎 SER...Call Girls Service Mukherjee Nagar @9999965857 Delhi 🫦 No Advance  VVIP 🍎 SER...
Call Girls Service Mukherjee Nagar @9999965857 Delhi 🫦 No Advance VVIP 🍎 SER...
 
Raj Nagar Extension Call Girls 9711199012 WhatsApp No, Delhi Escorts in Raj N...
Raj Nagar Extension Call Girls 9711199012 WhatsApp No, Delhi Escorts in Raj N...Raj Nagar Extension Call Girls 9711199012 WhatsApp No, Delhi Escorts in Raj N...
Raj Nagar Extension Call Girls 9711199012 WhatsApp No, Delhi Escorts in Raj N...
 
CALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun serviceCALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun service
 
How to Be Famous in your Field just visit our Site
How to Be Famous in your Field just visit our SiteHow to Be Famous in your Field just visit our Site
How to Be Famous in your Field just visit our Site
 
Cosumer Willingness to Pay for Sustainable Bricks
Cosumer Willingness to Pay for Sustainable BricksCosumer Willingness to Pay for Sustainable Bricks
Cosumer Willingness to Pay for Sustainable Bricks
 
Kindergarten Assessment Questions Via LessonUp
Kindergarten Assessment Questions Via LessonUpKindergarten Assessment Questions Via LessonUp
Kindergarten Assessment Questions Via LessonUp
 
VIP Kolkata Call Girl Gariahat 👉 8250192130 Available With Room
VIP Kolkata Call Girl Gariahat 👉 8250192130  Available With RoomVIP Kolkata Call Girl Gariahat 👉 8250192130  Available With Room
VIP Kolkata Call Girl Gariahat 👉 8250192130 Available With Room
 
The_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdf
The_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdfThe_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdf
The_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdf
 
PORTFOLIO DE ARQUITECTURA CRISTOBAL HERAUD 2024
PORTFOLIO DE ARQUITECTURA CRISTOBAL HERAUD 2024PORTFOLIO DE ARQUITECTURA CRISTOBAL HERAUD 2024
PORTFOLIO DE ARQUITECTURA CRISTOBAL HERAUD 2024
 
Fashion trends before and after covid.pptx
Fashion trends before and after covid.pptxFashion trends before and after covid.pptx
Fashion trends before and after covid.pptx
 
Call Girls In Safdarjung Enclave 24/7✡️9711147426✡️ Escorts Service
Call Girls In Safdarjung Enclave 24/7✡️9711147426✡️ Escorts ServiceCall Girls In Safdarjung Enclave 24/7✡️9711147426✡️ Escorts Service
Call Girls In Safdarjung Enclave 24/7✡️9711147426✡️ Escorts Service
 
Captivating Charm: Exploring Marseille's Hillside Villas with Our 3D Architec...
Captivating Charm: Exploring Marseille's Hillside Villas with Our 3D Architec...Captivating Charm: Exploring Marseille's Hillside Villas with Our 3D Architec...
Captivating Charm: Exploring Marseille's Hillside Villas with Our 3D Architec...
 
young call girls in Pandav nagar 🔝 9953056974 🔝 Delhi escort Service
young call girls in Pandav nagar 🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Pandav nagar 🔝 9953056974 🔝 Delhi escort Service
young call girls in Pandav nagar 🔝 9953056974 🔝 Delhi escort Service
 
Bus tracking.pptx ,,,,,,,,,,,,,,,,,,,,,,,,,,
Bus tracking.pptx ,,,,,,,,,,,,,,,,,,,,,,,,,,Bus tracking.pptx ,,,,,,,,,,,,,,,,,,,,,,,,,,
Bus tracking.pptx ,,,,,,,,,,,,,,,,,,,,,,,,,,
 
A level Digipak development Presentation
A level Digipak development PresentationA level Digipak development Presentation
A level Digipak development Presentation
 

9781111528705_PPT_ch07.ppt

  • 1. Principles of Web Design 5th Edition Chapter Seven Page Layouts
  • 2. Objectives When you complete this chapter, you will be able to: • Understand the normal flow of elements • Use the division element to create content containers • Create floating layouts • Build a flexible page layout • Build a fixed page layout 2
  • 3. Understanding the Normal Flow • The normal flow determines the sequence of element display • Boxes are laid out vertically one after the other, beginning at the top of the containing • Each box horizontally fills the browser window Principles of Web Design 5th Ed. 3
  • 4. Principles of Web Design 5th Ed. 4
  • 5. Understanding the Normal Flow • In the normal flow for inline elements, boxes are laid out horizontally beginning at the top left of the containing block • The inline boxes comprise the lines of text within, for example, a <p> element • When you float an element, you take it out of the normal flow • Check the results frequently as you are designing your layout using floats Principles of Web Design 5th Ed. 5
  • 6. Principles of Web Design 5th Ed. 6
  • 7. Using the Division Element to Create Content Containers • The <div> element is your primary tool for creating content sections • Use the box properties to create divisions in the shape you need • You can create columns and control the space between them • Use a container division, often called a wrapper, to contain a page layout Principles of Web Design 5th Ed. 7
  • 8. Principles of Web Design 5th Ed. 8
  • 9. Principles of Web Design 5th Ed. 9
  • 10. Creating Floating Layouts • The float property lets you build columnar layouts • You can align content elements to either the right or left side of the browser window • A typical Web page design can contain both floating and non-floating elements • Remember to always use a width property for floating elements Principles of Web Design 5th Ed. 10
  • 11.
  • 12. Creating Floating Layouts • Building floating layouts requires that you choose a method for containing the floating elements • You will often see that the floating elements extend beyond their containing elements, which will result in a “broken” layout Principles of Web Design 5th Ed. 12
  • 13.
  • 14. Solution 1: Using a Normal Flow Element • If you have multiple columns, at least one needs to be non-floating (in the normal flow) • The non-floating element must be positioned with the margin properties Principles of Web Design 5th Ed. 14
  • 15. Principles of Web Design 5th Ed. 15
  • 16. Solution 2: Using the Clear Property • Use a non-floating footer element (in the normal flow), with the clear property set to both Principles of Web Design 5th Ed. 16
  • 17. Principles of Web Design 5th Ed. 17
  • 18. Floating Elements within Floats • Floating elements give you a wide variety of options for building interesting page layouts • If you are floating an element within another element, the order of the elements is important Principles of Web Design 5th Ed. 18
  • 19. Principles of Web Design 5th Ed.
  • 20. Principles of Web Design 5th Ed.
  • 21.
  • 22. Fixing Column Drops • Column drops occur when the total width of the columnar elements in a page layout exceeds the width of their containing element Principles of Web Design 5th Ed. 22
  • 23. Principles of Web Design 5th Ed. 23
  • 24. Clearing Problem Floats • Floats occasionally do not appear exactly where you want them to appear • The clear property can solve this problem Principles of Web Design 5th Ed. 24
  • 25. Principles of Web Design 5th Ed.
  • 26. Building a Flexible Page Layout • Flexible layouts adapt to the size of the browser window • With a flexible layout, your content has to adapt and look good at a wide range of layout sizes Principles of Web Design 5th Ed. 26
  • 27. Principles of Web Design 5th Ed. 27
  • 28. Principles of Web Design 5th Ed. 28
  • 29. Controlling Flexible Layout Width • You can control the compression and expansion of your content in a flexible layout by setting minimum and maximum widths div.wrapper { width: 100%; min-width: 750px; max-width: 1220px; } Principles of Web Design 5th Ed. 29
  • 30. Building a Fixed Page Layout • Fixed layouts remain constant despite the resizing of the browser in different screen resolutions and monitor sizes • Many designers prefer fixed layouts because they have more control over the finished design • Fixed layouts are normally contained by a wrapper element that controls the page width and centers the page in the browser window Principles of Web Design 5th Ed. 30
  • 31. Principles of Web Design 5th Ed. 31
  • 32. Controlling Fixed Layout Centering • A wrapper division lets you automatically center the layout in the browser • This is a great solution for wide-screen monitors • Automatic centering is a simple use of the margin property #wrapper { width: 960px; margin-left: auto; margin-right: auto; border: thin solid black; background-color: #ffc; } Principles of Web Design 5th Ed. 32
  • 33. Principles of Web Design 5th Ed. 33
  • 34. Summary • The normal flow dictates the way in which elements normally are displayed in the browser window • When you remove an element from the normal flow, you may see unexpected behavior from other elements • Remember to always use a width property for floating elements • Remember to avoid using the height property • For fixed layouts, content elements are usually contained with a wrapper element that sets the width for the page layout Principles of Web Design 5th Ed. 34