Web Concepts_PageLayouts in website design.pdf

clem2k10 5 views 25 slides Aug 20, 2024
Slide 1
Slide 1 of 25
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25

About This Presentation

page layouts in web design


Slide Content

Web Concepts
IT4101

1•History
2•Basic Website
3•Factors affecting Website design
4•Planning to build a Website
5•From basic to “wow” Website
6•Another way to build a Website

“WOW” Website
ADDING STYLE TO A BASIC WEBSITE

Cascading
Style Sheets
Typography Boxes
Page
Layouts
Graphics
and Colour
Navigation
Tables Forms
Responsive
Website

Page Layouts

Normal Flow of Elements
boxes are laid out vertically one after
the other
oit begins at the top of the containing
block
for inline elements, boxes are laid out
horizontally
oit begins at the top left of the containing
block
oinline boxes comprise the lines of text
within, for example, a <p> element

Float Element
when you float an element, you take it
out of the normal flow

Creating Content Containers
use the sectioning elementsand
occasionally <div> elementsto
create content sections
Some sectioning elements:
o<header>
o<footer>
o<article>
o<section>
o<div>

Which is the correct content element?
Old HTML 5 Whento use?
<div>
<div>
no special meaning; use it only as a
container style purposes, as in a page
wrapper
<section>
thematic section of a document with a
heading
<article> independent, reusable section of content

COLUMNS? (Use floating layouts)
Remember to always use a width
property for floating elements

Beware of Broken Layouts!
floating elements extend beyond their containing elements

Solutions!!!
(Solution #1: at least onecolumn needs to be non-floatingand must be positioned with marginproperties)

Solutions!!!
(Solution #2: use a non-floating footerelement with the clear property set to both)

Other Problems
floating elements within floats
oorder of the element is important
column drops
ototal width of column > width of containing element
osolution: adjust width or use “box-sizing: border-box” (Lesson 5.3 Boxes)
floats not appearing where you want them
osolution: use “clear” property

Float within a float

Column Drop
180px + 180px + 222px >600px

Clear Property

Flexible Page Layout
oAdapting to the size of the browser
window
➢Examine:
▪the two widths for the floating elements do not
equal 100%
▪the borders and margin contribute to the width
of each element
▪setting the values to equal 100% would overflow
the layout window

Flexible layout for complex designs:
Min & Max Width
control the compression and expansion of your content in a flexible layout by setting
minimum and maximum widths

Fixed Page Layout
oremain constant despite the resizing
of the browser in different screen
resolutions and monitor size
oPixel measurements are favored by
many designers when creating fixed
designs.

Centering fixed layout

Thank you!
IT4101 –WEB CONCEPTS
Tags