SlideShare una empresa de Scribd logo
1 de 17
PAGE LAYOUTS (FLEXIBLE AND FIXED LAYOUT)
WDS
CS KKU
322 432 Web Design Technology
By Yaowaluck Promdee, Sumonta Kasemvilas
Computer Science Khon Kaen University
Web Design Technology | 2015 1
WDS
CS KKU
Web Design Technology | 2015 2
Layouts
Page Header
Page Body
Page Footer
{
{
{
WDS
CS KKU
Web Design Technology | 2015 3
Layouts – Using <table> vs <div>
WDS
CS KKU
Web Design Technology | 2015 4
Layouts - Using <table>
Layout Page using <table> showed 2 Column
<table style="width:100%"><tr><td colspan="2" style="background-color:#600;
color:#fff"><h1>Header</h1></td></tr><tr valign="top"><td style="background-
color:#FF0080; width:20%;text-align:top; "><b>Navigation</b></td><td style="height:200px;
text-align:top;">Content</td></tr><tr><td colspan="2" style="background-color:#600; text-
align:center; color:#fff">Footer</td></tr> </table>
WDS
CS KKU
Web Design Technology | 2015 5
Layouts - Using <div> Elements
WDS
CS KKU
Web Design Technology | 2015 6
Example1
<div id="container" style="width:500px”>
<div id="header" style="background-color:#FFA500;">
<h1 style="margin-bottom:0;">Main Title of Web Page</h1></div>
<div id="menu" style="background-color:#FFD700;
height:200px;width:100px;float:left;">
<b>Menu</b><br>
HTML<br>
CSS<br>
JavaScript</div>
<div id="content" style="background-color:#EEEEEE;height:200px;width:400px;float:left;">
Content goes here</div>
<div id="footer" style="background-color:#FFA500;clear:both;text-align:center;">
Copyright © W3Schools.com</div>
</div>
WDS
CS KKU
Web Design Technology | 2015 7
Layout Using HTML5
header Defines a header for a document or a section
nav Defines a container for navigation links
section Defines a section in a document
article Defines an independent self-contained article
aside Defines content aside from the content (like a sidebar)
footer Defines a footer for a document or a section
details Defines additional details
summary Defines a heading for the details element
WDS
CS KKU
Web Design Technology | 2015 8
Example2
header {
background-color:green; color:white;
text-align:center; padding:5px; }
nav {
line-height:30px;
background-color:#eeeeee;
height:300px; width:100px;
float:left; padding:5px; }
section {
width:350px; float:left; padding:10px;
}
footer {
background-color:rgb(23, 116, 116);
color:white; clear:both;
text-align:center; padding:5px;
}
<header>
</header>
<nav>
</nav>
<section>
</section>
<footer>
</footer>
/* Html code */
/* CSS code */
/* Output */
WDS
CS KKU
Web Design Technology | 2015 9
Layouts - Using <div> Elements
using a unit of measurement like the
pixel ex. 800x600, 1024x780 , 1280x800, 1280x960,
1280x1024 pixel
The content of the page resizes to adapt to the
size of the browser window displaying it or the
font used on the page. Using a relative the
percent ("%").
Relative layouts are accomplished by
using a relative unit like the em
using a combination of
"em" and "%" as its unit
of measurement.
1. Fixed Layout
2. Liquid Layout
3. Elastic Layout
4. Hybrid Layout
WDS
CS KKU
Web Design Technology | 2015 10
Fixed And Fluid Layouts
Fixable Layout Fluid Layout
Web Design Technology | 2015 11
Classification
float - an element can be pushed to the left or right,
allowing other elements to wrap around it.
Ex. float:left ,right, none
display- The display property specifies if/how an element
is displayed, and the visibility property specifies
if an element should be visible or hidden.
Ex. Display > none , block, inline
WDS
CS KKU
Web Design Technology | 2015 12
Classification (Cont.)
clear use the clear property left
right
both
none
visibility hides an element visible
hidden
collapse
WDS
CS KKU
Web Design Technology | 2015 13
CSS Dimension Properties
height:
width:
max-height:
max-width:
min-hight:
min-width:
auto
length
%
inherit
none
length
%
inherit
length
%
inherit
Example.
Creative Design
Layouts: Getting Out
Of The Box
WDS
CS KKU
Web Design Technology | 2015 14
Example Layout HTML5
Web Design Technology | 2015 15
WDS
CS KKU
Web Design Technology | 2015 16
WDS
CS KKU
Assignmenth1,font=Arial black,
,font color= #FFF color,
shadow=2px 2px
blur 5px,#33333,
spacing with character 5px
width:70%
height:460px
height:300px
height:100px
width:300px
border 5px solid #666
margin=center
margin=center
margin:20px
word spacing10px
box1-3 padding
15,10,0,10px,
text justify
color
#6CF
#09C
lightgrey
cornflowerblue
rgb(23,116,116)
Web Design Technology | 2015 17
<header><h1>header</h1> </header>
<nav> Navigition</nav>
<section>
<article>Box 1
<p>Web design concepts,color setting, background, content,
layout, font design, create web by Tools, and graphic tools</p>
</article>
<article>Box 2
<p>Web design concepts,color setting, background, content,
layout, font design, create web by Tools, and graphic tools</p>
</article>
<article>Box 3
<p>Web design concepts,color setting, background, content,
layout, font design, create web by Tools, and graphic tools</p>
</article>
</section>
<footer>web design technology </footer>
HTML CODE

Más contenido relacionado

La actualidad más candente

HTML Introduction, HTML History, HTML Uses, HTML benifits
HTML Introduction, HTML History, HTML Uses, HTML benifitsHTML Introduction, HTML History, HTML Uses, HTML benifits
HTML Introduction, HTML History, HTML Uses, HTML benifitsPro Guide
 
Introduction to JavaScript (1).ppt
Introduction to JavaScript (1).pptIntroduction to JavaScript (1).ppt
Introduction to JavaScript (1).pptMuhammadRehan856177
 
CSS Day: CSS Grid Layout
CSS Day: CSS Grid Layout CSS Day: CSS Grid Layout
CSS Day: CSS Grid Layout Rachel Andrew
 
INDUSTRIAL TRAINING Presentation on Web Development. (2).pptx
INDUSTRIAL TRAINING Presentation on Web Development. (2).pptxINDUSTRIAL TRAINING Presentation on Web Development. (2).pptx
INDUSTRIAL TRAINING Presentation on Web Development. (2).pptx12KritiGaneriwal
 
Tables and forms with HTML, CSS
Tables and forms with HTML, CSS  Tables and forms with HTML, CSS
Tables and forms with HTML, CSS Yaowaluck Promdee
 
Javascript arrays
Javascript arraysJavascript arrays
Javascript arraysHassan Dar
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS PresentationShawn Calvert
 
Responsive web designing ppt(1)
Responsive web designing ppt(1)Responsive web designing ppt(1)
Responsive web designing ppt(1)admecindia1
 
1 03 - CSS Introduction
1 03 - CSS Introduction1 03 - CSS Introduction
1 03 - CSS Introductionapnwebdev
 
Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Chris Poteet
 
New Elements & Features in HTML5
New Elements & Features in HTML5New Elements & Features in HTML5
New Elements & Features in HTML5Jamshid Hashimi
 

La actualidad más candente (20)

Layout Fluido
Layout FluidoLayout Fluido
Layout Fluido
 
Lab#5 style and selector
Lab#5 style and selectorLab#5 style and selector
Lab#5 style and selector
 
HTML Fundamentals
HTML FundamentalsHTML Fundamentals
HTML Fundamentals
 
CSS
CSSCSS
CSS
 
HTML Introduction, HTML History, HTML Uses, HTML benifits
HTML Introduction, HTML History, HTML Uses, HTML benifitsHTML Introduction, HTML History, HTML Uses, HTML benifits
HTML Introduction, HTML History, HTML Uses, HTML benifits
 
Good/Bad Web Design
Good/Bad Web DesignGood/Bad Web Design
Good/Bad Web Design
 
Introduction to JavaScript (1).ppt
Introduction to JavaScript (1).pptIntroduction to JavaScript (1).ppt
Introduction to JavaScript (1).ppt
 
Css lecture notes
Css lecture notesCss lecture notes
Css lecture notes
 
CSS Day: CSS Grid Layout
CSS Day: CSS Grid Layout CSS Day: CSS Grid Layout
CSS Day: CSS Grid Layout
 
INDUSTRIAL TRAINING Presentation on Web Development. (2).pptx
INDUSTRIAL TRAINING Presentation on Web Development. (2).pptxINDUSTRIAL TRAINING Presentation on Web Development. (2).pptx
INDUSTRIAL TRAINING Presentation on Web Development. (2).pptx
 
Tables and forms with HTML, CSS
Tables and forms with HTML, CSS  Tables and forms with HTML, CSS
Tables and forms with HTML, CSS
 
Javascript arrays
Javascript arraysJavascript arrays
Javascript arrays
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
 
CSS Font & Text style
CSS Font & Text style CSS Font & Text style
CSS Font & Text style
 
Responsive web designing ppt(1)
Responsive web designing ppt(1)Responsive web designing ppt(1)
Responsive web designing ppt(1)
 
Css
CssCss
Css
 
1 03 - CSS Introduction
1 03 - CSS Introduction1 03 - CSS Introduction
1 03 - CSS Introduction
 
Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)
 
New Elements & Features in HTML5
New Elements & Features in HTML5New Elements & Features in HTML5
New Elements & Features in HTML5
 

Similar a Page layouts flexible and fixed layout with CSS

Buiding Next Generation Websites Session 8 by Muhammad Ehtisham Siddiqui
Buiding Next Generation Websites Session 8 by Muhammad Ehtisham SiddiquiBuiding Next Generation Websites Session 8 by Muhammad Ehtisham Siddiqui
Buiding Next Generation Websites Session 8 by Muhammad Ehtisham SiddiquiMuhammad Ehtisham Siddiqui
 
Organize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS TricksOrganize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS TricksAndolasoft Inc
 
Lect-4-Responsive-Web-06032024-082044am.pptx
Lect-4-Responsive-Web-06032024-082044am.pptxLect-4-Responsive-Web-06032024-082044am.pptx
Lect-4-Responsive-Web-06032024-082044am.pptxzainm7032
 
Create Responsive Website Design with Bootstrap 3
Create Responsive Website Design with Bootstrap 3Create Responsive Website Design with Bootstrap 3
Create Responsive Website Design with Bootstrap 3Wahyu Putra
 
Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web DesignJustin Avery
 
Responsive Web Design for Universal Access
Responsive Web Design for Universal AccessResponsive Web Design for Universal Access
Responsive Web Design for Universal AccessKate Walser
 
Responsive Web Design & APEX Theme 25
Responsive Web Design & APEX Theme 25Responsive Web Design & APEX Theme 25
Responsive Web Design & APEX Theme 25Christian Rokitta
 
A Complete Guide to Frontend - UI Developer
A Complete Guide to Frontend - UI DeveloperA Complete Guide to Frontend - UI Developer
A Complete Guide to Frontend - UI Developernariyaravi
 
Front end full stack development module 1pptx
Front end full stack development module 1pptxFront end full stack development module 1pptx
Front end full stack development module 1pptxMaruthiPrasad96
 
Responsive Web Design & APEX Theme 25 (OGh APEX World 2014)
Responsive Web Design & APEX Theme 25 (OGh APEX World 2014)Responsive Web Design & APEX Theme 25 (OGh APEX World 2014)
Responsive Web Design & APEX Theme 25 (OGh APEX World 2014)Christian Rokitta
 
Webinar: Front End Web Development - Trendy Web Designs Using HTML5
Webinar: Front End Web Development - Trendy Web Designs Using HTML5Webinar: Front End Web Development - Trendy Web Designs Using HTML5
Webinar: Front End Web Development - Trendy Web Designs Using HTML5Edureka!
 
ADF - Layout Managers and Skinning
ADF - Layout Managers and SkinningADF - Layout Managers and Skinning
ADF - Layout Managers and SkinningGeorge Estebe
 

Similar a Page layouts flexible and fixed layout with CSS (20)

Lab#8 page layouts
Lab#8 page layoutsLab#8 page layouts
Lab#8 page layouts
 
Buiding Next Generation Websites Session 8 by Muhammad Ehtisham Siddiqui
Buiding Next Generation Websites Session 8 by Muhammad Ehtisham SiddiquiBuiding Next Generation Websites Session 8 by Muhammad Ehtisham Siddiqui
Buiding Next Generation Websites Session 8 by Muhammad Ehtisham Siddiqui
 
Organize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS TricksOrganize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS Tricks
 
Lect-4-Responsive-Web-06032024-082044am.pptx
Lect-4-Responsive-Web-06032024-082044am.pptxLect-4-Responsive-Web-06032024-082044am.pptx
Lect-4-Responsive-Web-06032024-082044am.pptx
 
Page layout with css
Page layout with cssPage layout with css
Page layout with css
 
Create Responsive Website Design with Bootstrap 3
Create Responsive Website Design with Bootstrap 3Create Responsive Website Design with Bootstrap 3
Create Responsive Website Design with Bootstrap 3
 
Bootstrap 3
Bootstrap 3Bootstrap 3
Bootstrap 3
 
Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web Design
 
Responsive Web Design for Universal Access
Responsive Web Design for Universal AccessResponsive Web Design for Universal Access
Responsive Web Design for Universal Access
 
Style and Selector
Style and SelectorStyle and Selector
Style and Selector
 
ResponsiveWebDesign
ResponsiveWebDesignResponsiveWebDesign
ResponsiveWebDesign
 
Responsive Web Design & APEX Theme 25
Responsive Web Design & APEX Theme 25Responsive Web Design & APEX Theme 25
Responsive Web Design & APEX Theme 25
 
A Complete Guide to Frontend - UI Developer
A Complete Guide to Frontend - UI DeveloperA Complete Guide to Frontend - UI Developer
A Complete Guide to Frontend - UI Developer
 
Css navbar
Css navbarCss navbar
Css navbar
 
Bootstrap Framework
Bootstrap Framework Bootstrap Framework
Bootstrap Framework
 
Front end full stack development module 1pptx
Front end full stack development module 1pptxFront end full stack development module 1pptx
Front end full stack development module 1pptx
 
Responsive Web Design & APEX Theme 25 (OGh APEX World 2014)
Responsive Web Design & APEX Theme 25 (OGh APEX World 2014)Responsive Web Design & APEX Theme 25 (OGh APEX World 2014)
Responsive Web Design & APEX Theme 25 (OGh APEX World 2014)
 
Webinar: Front End Web Development - Trendy Web Designs Using HTML5
Webinar: Front End Web Development - Trendy Web Designs Using HTML5Webinar: Front End Web Development - Trendy Web Designs Using HTML5
Webinar: Front End Web Development - Trendy Web Designs Using HTML5
 
New
NewNew
New
 
ADF - Layout Managers and Skinning
ADF - Layout Managers and SkinningADF - Layout Managers and Skinning
ADF - Layout Managers and Skinning
 

Más de Yaowaluck Promdee (20)

A basic of UX for beginner
A basic of UX for beginnerA basic of UX for beginner
A basic of UX for beginner
 
TCAS 2563
TCAS 2563TCAS 2563
TCAS 2563
 
Portfolio design
Portfolio designPortfolio design
Portfolio design
 
Concept to creation story and storyboard
Concept to creation  story and storyboard Concept to creation  story and storyboard
Concept to creation story and storyboard
 
Observation and interviewing
Observation and interviewingObservation and interviewing
Observation and interviewing
 
Requirement gathering-and-lean-canvas
Requirement gathering-and-lean-canvasRequirement gathering-and-lean-canvas
Requirement gathering-and-lean-canvas
 
Good bad design
Good bad designGood bad design
Good bad design
 
Graphic, Color and tools
Graphic, Color and toolsGraphic, Color and tools
Graphic, Color and tools
 
CSS Boc model
CSS Boc model CSS Boc model
CSS Boc model
 
Style and Selector Part2
Style and Selector Part2Style and Selector Part2
Style and Selector Part2
 
Design sitemap
Design sitemapDesign sitemap
Design sitemap
 
HTML 5
HTML 5HTML 5
HTML 5
 
Web Interface
Web InterfaceWeb Interface
Web Interface
 
Game design
Game designGame design
Game design
 
Powerpoint
Powerpoint Powerpoint
Powerpoint
 
Program Interface
Program Interface Program Interface
Program Interface
 
Mobile Interface
Mobile Interface   Mobile Interface
Mobile Interface
 
Personas and scenario
Personas and scenarioPersonas and scenario
Personas and scenario
 
Ux design process
Ux design processUx design process
Ux design process
 
Graphic Design
Graphic Design Graphic Design
Graphic Design
 

Último

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 

Último (20)

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 

Page layouts flexible and fixed layout with CSS

  • 1. PAGE LAYOUTS (FLEXIBLE AND FIXED LAYOUT) WDS CS KKU 322 432 Web Design Technology By Yaowaluck Promdee, Sumonta Kasemvilas Computer Science Khon Kaen University Web Design Technology | 2015 1
  • 2. WDS CS KKU Web Design Technology | 2015 2
  • 3. Layouts Page Header Page Body Page Footer { { { WDS CS KKU Web Design Technology | 2015 3
  • 4. Layouts – Using <table> vs <div> WDS CS KKU Web Design Technology | 2015 4
  • 5. Layouts - Using <table> Layout Page using <table> showed 2 Column <table style="width:100%"><tr><td colspan="2" style="background-color:#600; color:#fff"><h1>Header</h1></td></tr><tr valign="top"><td style="background- color:#FF0080; width:20%;text-align:top; "><b>Navigation</b></td><td style="height:200px; text-align:top;">Content</td></tr><tr><td colspan="2" style="background-color:#600; text- align:center; color:#fff">Footer</td></tr> </table> WDS CS KKU Web Design Technology | 2015 5
  • 6. Layouts - Using <div> Elements WDS CS KKU Web Design Technology | 2015 6
  • 7. Example1 <div id="container" style="width:500px”> <div id="header" style="background-color:#FFA500;"> <h1 style="margin-bottom:0;">Main Title of Web Page</h1></div> <div id="menu" style="background-color:#FFD700; height:200px;width:100px;float:left;"> <b>Menu</b><br> HTML<br> CSS<br> JavaScript</div> <div id="content" style="background-color:#EEEEEE;height:200px;width:400px;float:left;"> Content goes here</div> <div id="footer" style="background-color:#FFA500;clear:both;text-align:center;"> Copyright © W3Schools.com</div> </div> WDS CS KKU Web Design Technology | 2015 7
  • 8. Layout Using HTML5 header Defines a header for a document or a section nav Defines a container for navigation links section Defines a section in a document article Defines an independent self-contained article aside Defines content aside from the content (like a sidebar) footer Defines a footer for a document or a section details Defines additional details summary Defines a heading for the details element WDS CS KKU Web Design Technology | 2015 8
  • 9. Example2 header { background-color:green; color:white; text-align:center; padding:5px; } nav { line-height:30px; background-color:#eeeeee; height:300px; width:100px; float:left; padding:5px; } section { width:350px; float:left; padding:10px; } footer { background-color:rgb(23, 116, 116); color:white; clear:both; text-align:center; padding:5px; } <header> </header> <nav> </nav> <section> </section> <footer> </footer> /* Html code */ /* CSS code */ /* Output */ WDS CS KKU Web Design Technology | 2015 9
  • 10. Layouts - Using <div> Elements using a unit of measurement like the pixel ex. 800x600, 1024x780 , 1280x800, 1280x960, 1280x1024 pixel The content of the page resizes to adapt to the size of the browser window displaying it or the font used on the page. Using a relative the percent ("%"). Relative layouts are accomplished by using a relative unit like the em using a combination of "em" and "%" as its unit of measurement. 1. Fixed Layout 2. Liquid Layout 3. Elastic Layout 4. Hybrid Layout WDS CS KKU Web Design Technology | 2015 10
  • 11. Fixed And Fluid Layouts Fixable Layout Fluid Layout Web Design Technology | 2015 11
  • 12. Classification float - an element can be pushed to the left or right, allowing other elements to wrap around it. Ex. float:left ,right, none display- The display property specifies if/how an element is displayed, and the visibility property specifies if an element should be visible or hidden. Ex. Display > none , block, inline WDS CS KKU Web Design Technology | 2015 12
  • 13. Classification (Cont.) clear use the clear property left right both none visibility hides an element visible hidden collapse WDS CS KKU Web Design Technology | 2015 13
  • 15. Example Layout HTML5 Web Design Technology | 2015 15 WDS CS KKU
  • 16. Web Design Technology | 2015 16 WDS CS KKU Assignmenth1,font=Arial black, ,font color= #FFF color, shadow=2px 2px blur 5px,#33333, spacing with character 5px width:70% height:460px height:300px height:100px width:300px border 5px solid #666 margin=center margin=center margin:20px word spacing10px box1-3 padding 15,10,0,10px, text justify color #6CF #09C lightgrey cornflowerblue rgb(23,116,116)
  • 17. Web Design Technology | 2015 17 <header><h1>header</h1> </header> <nav> Navigition</nav> <section> <article>Box 1 <p>Web design concepts,color setting, background, content, layout, font design, create web by Tools, and graphic tools</p> </article> <article>Box 2 <p>Web design concepts,color setting, background, content, layout, font design, create web by Tools, and graphic tools</p> </article> <article>Box 3 <p>Web design concepts,color setting, background, content, layout, font design, create web by Tools, and graphic tools</p> </article> </section> <footer>web design technology </footer> HTML CODE

Notas del editor

  1. Fixed layout - A fixed layout in web design is one that uses a unit of measurement that does not depend on other factors, such as the size of the font or the dimensions of the browser window, to determine the width of a web page,  To put it another way, the website appears with a constant size no matter how big the browser window is, or what sort of font is chosen for the page. Liquid Layout - Such a page layout, which stretches or shrinks to fill the browser window according to its size, is called, among other things, a "relative" layout. Other names for such a layout include a "liquid" or "fluid" layout, since the page spreads itself to fill the width of a browser window the way a liquid spreads out to fill the entire surface of its container when poured into it. It is sometimes also called a "flexible" layout and an "elastic" layout. It is sometimes also called a "flexible" layout and an "elastic" layout. When you create a web page that uses the em to specify the width of a column, or what is termed "elastic" in Dreamweaver CS4 and CS3, the size of your columns depend on the size of the fonts used on your page. Some of you may be wondering at this point, "In what sense is such a layout relative? Can't I specify the font and thus effectively create a fixed width page?“ A hybrid layout uses a combination of "em" and "%" as its unit of measurement.
  2. Fixed Purpose - Fixed-width layouts are much easier to use and easier to customize in terms of design. - Widths are the same for every browser, so there is less hassle with images, forms, video and other content that are fixed-width. - There is no need for min-width or max-width, which isn’t supported by every browser anyway. - Even if a website is designed to be compatible with the smallest screen resolution, 800×600, the content will still be wide enough at a larger resolution to be easily legible. Fluid Purpose - Fluid web page design can be more user-friendly, because it adjusts to the user’s set up. - The amount of extra white space is similar between all browsers and screen resolutions, which can be more visually appealing. - If designed well, a fluid layout can eliminate horizontal scroll bars in smaller screen resolutions.
  3. float - ใช้กำหนดการจัดวางรูปภาพ หรือวัตถุที่ต้องการว่าจะให้วางอยู่ด้านไหน ของข้อความ None ไม่แสดงวัตถุนั้น Block แสดงเป็นบล็อกโดยขึ้นบรรทัดใหม่ก่อน Inline เป็นค่า default by element แสดงเป็นแบบ inline ไม่มีการขึ้นบรรทัดใหม่ visibility:hidden hides an element, but it will still take up the same space as before. The element will be hidden, but still affect the layout.
  4. Clear Elements after the floating element will flow around it. To avoid this, use the clear property. The clear property specifies which sides of an element other floating elements are not allowed. Add a text line into the image gallery, using the clear property: Visibility visibility:hidden hides an element, but it will still take up the same space as before. The element will be hidden, but still affect the layout.