SlideShare a Scribd company logo
Slicing The Web
By: M. Aladdin Hemmat
August, 2008
slicing using tableless or DIV technique
➔Objective of this training:
Slicing The Web
1- To review the slicing techniques and when I’m talking about
Techniques, I’m talking about how to slice the design inside the
Graphic program.
2- To know how to convert in between the design to a coded
webpage.
2- To get a good knowledge of CSS with stress on Styles that is
used in slicing.
3- To troubleshoot any kind of webpage templates.
Slicing The Web
Designing Phase
“Photoshop”
Or the graphic program you are
using to make your design
Coding Phase
“HTML / XHTML”
The code of the webpage
Styling Phase
CSS
Cascading style sheets
✓ Design to HTML
✓ Design Tips that will be
very helpful at ‘DIV’ing or
slicing as general
✓ <DIV> Vs <Table>
✓ Does <Table> is that bad?!
✓ Necessary HTML tags
(incase of using <DIV>)
✓ Samples & Examples of
<Table> WebPages
✓ Samples & Examples of
<DIV> WebPages
✓ CSS Tags needed
✓ Alternative methods to
slice the page using CSS
✓ Samples & Examples
✓ How to troubleshoot CSS
problems during <DIV>ing
Slicing The Web
Slicing The Web
Design Phase
➔Design to HTML:
Slicing The Web
1- slicing techniques.
2- Using PhotoShop to Export the design as a webpage.
➔Design Tips that will be very helpful at ‘DIV’ing or slicing as general:
1- Optimize the spaces with solid colors, by using hex CSS code
instead of pictures.
Slicing The Web
2- use background image using CSS.
Slicing The Web
HTML Phase
➔<DIV> Vs <Table>:
Slicing The Web
Table Technique DIV Technique
1 Ease Easy and Intuitive Not quite easy
2 SEO Friendly Friendly
3 Flexibility less flexibility More flexible
4 CSS need Not often used Usually used or in most cases
5 Code weight More code weight Less code weight
6
Code
understanding
Easy to be understood Not quite easy to understood
7 How many Cells It has rows , column and therefore cells Just one cell per DIV
8 Maintainability Easy but take time Little complicated but efficient
9 Cell Float Cell can’t float in the page Cell can float in the page
➔<DIV> Vs <Table>:
Slicing The Web
According to HTML Structure and weight of the code:
➔Does <Table> is that bad ?!
Slicing The Web
NO
But why? tell me why I have to use <table> any more?
➔The rigidity of the structure.
➔The ease of understanding in some complicated structures.
!Of course these advantages are according to slicing point of view.
➔Necessary HTML tags (incase of using <DIV>):
Slicing The Web
<div>
-------------------
<span>
-------------------
<ul> <ol> <li>
-------------------
<br> <hr>
➔Necessary HTML tags (incase of using <DIV>):
Slicing The Web
<div>
Example <div id=“header” style=“color: #FFF;”></div>
<div class=“header” style=“color: #FFF;”></div>
Attributes (id ,class, style)
The <div> tag defines a division/section in a document.<div>
➔Necessary HTML tags (incase of using <DIV>):
Slicing The Web
<span>
Attributes (id ,class, style)
Example <span id=“header” style=“color: #FFF;”></span>
<span class=“header” style=“color: #FFF;”></span>
The <span> tag is used to group inline-elements in a document.<span>
➔Necessary HTML tags (incase of using <DIV>):
Slicing The Web
<dl> <dt> <dd>
Attributes (id ,class, style)
Example
<dl>

<dt> Coffee </dt> 

<dd> Black hot drink </dd> 

<dt> Milk </dt> 

<dd> White cold drink </dd> 

</dl>
The <dl> tag defines a definition list.<dl>
The <dt> tag defines the start of a term in a definition list.<dt>
The <dd> tag defines the description of a term in a definition list.<dd>
Coffee
Black hot drink
Milk
White cold drink
➔Necessary HTML tags (incase of using <DIV>):
Slicing The Web
<ul> <ol> <li>
The <ul> tag defines an unordered list.<ul>
The <ol> tag defines the start of an ordered list.<ol>
The <li> tag defines the start of a list item.
The <li> tag is used in both ordered (<ol>) and unordered lists (<ul>).<li>
➔Necessary HTML tags (incase of using <DIV>):
Slicing The Web
<ul> <ol> <li>
Example <ol>

<li>Coffee</li> 

<li>Tea</li> 

<ol/>
<<ul

<li>Coffee</li>

<li>Tea</li>

<ul/>
1. Coffee
2. Tea
• Coffee
• Tea
➔Necessary HTML tags (incase of using <DIV>):
Slicing The Web
<br> <hr>
The <br> tag inserts a single line break.
In HTML the <br> tag has no end tag, like this: <br>.
In XHTML the <br> tag must be properly closed, like this: <br />.
Attributes (id ,class, style)
Example
<hr class=“break” style=“color:#FFF;” /> @XHTML
<br class=“break” style=“color:#FFF;” /> @XHTML
The <hr> tag inserts a horizontal rule.
In HTML the <hr> tag has no end tag.
In XHTML the <hr> tag must be properly closed, like this: <hr />.
<hr>
<br>
➔Samples & Examples of <Table> WebPages:
Slicing The Web
➔Samples & Examples of <DIV> WebPages:
Slicing The Web
Slicing The Web
CSS Phase
➔CSS Tags needed:
Slicing The Web
Background:;
-------------------
Padding:;
-------------------
Margin:;
-------------------
Float:;
-------------------
Position:;
-------------------
Display:;
-------------------
Direction:;
➔CSS Tags needed:
Slicing The Web
Background:;
Background-color: #FFF;
Background-images: url( images/pic.jpg) ;
Background-position: center top ;
Background-repeat: repeat-x ;
Background-attachment: scroll ;
Background: #FFF url(images/pic.jpg) center top repeat scroll;
➔CSS Tags needed:
Slicing The Web
Padding:;
Padding-top: 30px;
Padding-left: 30px;
Padding-bottom: 30px;
Padding-right: 30px;
Padding: 10px 30px 10px 30px ;
Padding: 10% 30% 10% 30% ;
➔CSS Tags needed:
Slicing The Web
Margin:;
margin-top: 30px;
margin-left: 30px;
margin-bottom: 30px;
margin-right: 30px;
margin: 10px 30px 10px 30px ;
margin: 10% 30% 10% 30% ;
margin: -10px -30px -10px -30px ;
➔CSS Tags needed:
Slicing The Web
Float:;
Float:
Right
Left
➔CSS Tags needed:
Slicing The Web
Position:;
Position:
Relative;
Absolute;
Fixed;
Static;
Z-index:
+1;
0;
-1;
Z-index can be used to place an element "behind" another element.
➔CSS Tags needed:
Slicing The Web
Display:;
Display:
Block;
Inline;
None;
CSS Tags needed:
Slicing The Web
Direction:;
Direction:
ltr;
(left to right)
rtl;
(right to left)
➔Alternative methods to slice the page:
Slicing The Web
Using
<table>
Using
Float + Padding + Margin
Using
Float
Left column Right column
➔Alternative methods to slice the page:
Slicing The Web
1- Using <table> <table width="800" cellspacing="2" cellpadding="5" border="1">
<tr>
<td colspan="2">
<p>Lorem ipsum dolor sit amet,</p>
</td>
</tr>
<tr>
<td width="150">
<p>Lorem ipsum dolor sit amet,</p>
</td>
<td width="650" valign="top">
<p>Lorem ipsum dolor sit amet,</p>
</td>
</tr>
<tr>
<td colspan="2" valign="top">
<p>Lorem ipsum dolor sit amet,</p>
</td>
</tr>
</table>
In HTML
➔Alternative methods to slice the page:
Slicing The Web
2- Using “ float ”
<div class=“Header”>
<p> Lorem ipsum dolor sit amet, </p>
< div>
<div class=“left”>
<p> Lorem ipsum dolor sit amet, </p>
<div>
<div class=“right”>
<p> Lorem ipsum dolor sit amet, </p>
</ div>
<div class=“footer”>
<p> Lorem ipsum dolor sit amet, </p>
<div>
In HTML
➔Alternative methods to slice the page:
Slicing The Web
2- Using “ float ”
.header{ width: 800px ;
height: 100px ;
margin: 5px auto 5px auto ; }
.left{ width: 140px; <<<<<<<<<<<<<<<<<<<<<<
float: left;
margin: 5px 5px 5px 5px ; }
.right{ width:640px ; <<<<<<<<<<<<<<<<<<<<<<
float: right ;
margin: 5px 5px 5px 5px ; }
.footer{ width: 800px ;
height: 50px ;
margin: 5px auto 5px auto ;
clear: both ; }
In CSS
➔Alternative methods to slice the page:
Slicing The Web
3- Using “ float + padding + margin ” (Advanced)
<div class=“Header”>
<p> Lorem ipsum dolor sit amet, </p>
< div>
<div class=“left”>
<p> Lorem ipsum dolor sit amet, </p>
<div>
<div class=“right”>
<p> Lorem ipsum dolor sit amet, </p>
</ div>
<div class=“footer”>
<p> Lorem ipsum dolor sit amet, </p>
<div>
In HTML
➔Alternative methods to slice the page:
Slicing The Web
3- Using “ float + padding + margin ”
➔Samples & Examples:
Slicing The Web
Simple Examples
1 Column 2 Column 3 Column
1 1 2 1 2 3
➔Samples & Examples:
Slicing The Web
Advanced Examples
➔Troubleshooting of some CSS problems that facing you during <DIV>ing:
Slicing The Web
Web Developer Add-on for FireFox (toolbar)
Click here to download it ( Note that it is still not for IE)
Helpful tool:
➔Troubleshooting of some CSS problems that facing you during <DIV>ing:
Slicing The Web
Discussing some cases
►Expanded web pages
►Horizontal scroll
►Percentage width values

More Related Content

What's hot

HTML/CSS the beginning
HTML/CSS the beginningHTML/CSS the beginning
HTML/CSS the beginning
WebMuses
 
Html - By Auroskkil
Html - By AuroskkilHtml - By Auroskkil
Html - By Auroskkil
BoneyGawande
 
Cascading Style Sheets - Part 02
Cascading Style Sheets - Part 02Cascading Style Sheets - Part 02
Cascading Style Sheets - Part 02
Hatem Mahmoud
 
CSS Best practice
CSS Best practiceCSS Best practice
CSS Best practice
Russ Weakley
 
Slow kinda sucks
Slow kinda sucksSlow kinda sucks
Slow kinda sucks
Tim Wright
 
Css best practices style guide and tips
Css best practices style guide and tipsCss best practices style guide and tips
Css best practices style guide and tips
Chris Love
 
Basics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPointBasics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPointSahil Gandhi
 
Bootstrap [part 2]
Bootstrap [part 2]Bootstrap [part 2]
Bootstrap [part 2]
Ghanshyam Patel
 
How to use CSS3 in WordPress
How to use CSS3 in WordPressHow to use CSS3 in WordPress
How to use CSS3 in WordPress
Suzette Franck
 
Standardizing the Web: A Look into the Why of Web Standards
Standardizing the Web: A Look into the Why of Web StandardsStandardizing the Web: A Look into the Why of Web Standards
Standardizing the Web: A Look into the Why of Web Standards
Tim Wright
 
CSS Introduction
CSS IntroductionCSS Introduction
CSS Introduction
Diliara Nasirova
 
Tercer trabajo de drapi 02
Tercer trabajo de drapi 02Tercer trabajo de drapi 02
Tercer trabajo de drapi 02
Jhon Silva Penekita
 
About Best friends - HTML, CSS and JS
About Best friends - HTML, CSS and JSAbout Best friends - HTML, CSS and JS
About Best friends - HTML, CSS and JS
Naga Harish M
 
Css Best Practices
Css Best PracticesCss Best Practices
Css Best Practices
sachin9737
 
Twitter bootstrap (css, components and javascript)
Twitter bootstrap (css, components and javascript)Twitter bootstrap (css, components and javascript)
Twitter bootstrap (css, components and javascript)
NexThoughts Technologies
 
Pemrograman Web 4 - Bootstrap 3
Pemrograman Web 4 - Bootstrap 3Pemrograman Web 4 - Bootstrap 3
Pemrograman Web 4 - Bootstrap 3
Nur Fadli Utomo
 
CSS3 Introduction
CSS3 IntroductionCSS3 Introduction
CSS3 Introduction
Jaeni Sahuri
 
Efficient, maintainable CSS
Efficient, maintainable CSSEfficient, maintainable CSS
Efficient, maintainable CSS
Russ Weakley
 

What's hot (19)

HTML/CSS the beginning
HTML/CSS the beginningHTML/CSS the beginning
HTML/CSS the beginning
 
Html - By Auroskkil
Html - By AuroskkilHtml - By Auroskkil
Html - By Auroskkil
 
Cascading Style Sheets - Part 02
Cascading Style Sheets - Part 02Cascading Style Sheets - Part 02
Cascading Style Sheets - Part 02
 
CSS Best practice
CSS Best practiceCSS Best practice
CSS Best practice
 
Slow kinda sucks
Slow kinda sucksSlow kinda sucks
Slow kinda sucks
 
Css best practices style guide and tips
Css best practices style guide and tipsCss best practices style guide and tips
Css best practices style guide and tips
 
Basics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPointBasics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPoint
 
Bootstrap [part 2]
Bootstrap [part 2]Bootstrap [part 2]
Bootstrap [part 2]
 
How to use CSS3 in WordPress
How to use CSS3 in WordPressHow to use CSS3 in WordPress
How to use CSS3 in WordPress
 
Standardizing the Web: A Look into the Why of Web Standards
Standardizing the Web: A Look into the Why of Web StandardsStandardizing the Web: A Look into the Why of Web Standards
Standardizing the Web: A Look into the Why of Web Standards
 
CSS Introduction
CSS IntroductionCSS Introduction
CSS Introduction
 
Tercer trabajo de drapi 02
Tercer trabajo de drapi 02Tercer trabajo de drapi 02
Tercer trabajo de drapi 02
 
About Best friends - HTML, CSS and JS
About Best friends - HTML, CSS and JSAbout Best friends - HTML, CSS and JS
About Best friends - HTML, CSS and JS
 
Css Best Practices
Css Best PracticesCss Best Practices
Css Best Practices
 
Twitter bootstrap (css, components and javascript)
Twitter bootstrap (css, components and javascript)Twitter bootstrap (css, components and javascript)
Twitter bootstrap (css, components and javascript)
 
Pemrograman Web 4 - Bootstrap 3
Pemrograman Web 4 - Bootstrap 3Pemrograman Web 4 - Bootstrap 3
Pemrograman Web 4 - Bootstrap 3
 
CSS3 Introduction
CSS3 IntroductionCSS3 Introduction
CSS3 Introduction
 
HTML & XHTML Basics
HTML & XHTML BasicsHTML & XHTML Basics
HTML & XHTML Basics
 
Efficient, maintainable CSS
Efficient, maintainable CSSEfficient, maintainable CSS
Efficient, maintainable CSS
 

Viewers also liked

Aanvraagformulier Vog Np 2009
Aanvraagformulier Vog Np 2009Aanvraagformulier Vog Np 2009
Aanvraagformulier Vog Np 2009
guestecf2cc7
 
Evaluation Of The Final Product
Evaluation Of The Final ProductEvaluation Of The Final Product
Evaluation Of The Final Productmiketh16
 
Roken Groep Marjolein
Roken Groep MarjoleinRoken Groep Marjolein
Roken Groep MarjoleinGerssen
 
Cisp In Pictures 97
Cisp In Pictures 97Cisp In Pictures 97
Cisp In Pictures 97
oaxjohn
 
Roken Groep Monique
Roken Groep MoniqueRoken Groep Monique
Roken Groep MoniqueGerssen
 
How to study and teaching how to study
How to study and teaching how to studyHow to study and teaching how to study
How to study and teaching how to study
Luiz Gorga
 
Solidarity Responsibility Job Incentive Scheme Master Thesis Daan Struyvenv3
Solidarity Responsibility Job Incentive Scheme Master Thesis Daan Struyvenv3Solidarity Responsibility Job Incentive Scheme Master Thesis Daan Struyvenv3
Solidarity Responsibility Job Incentive Scheme Master Thesis Daan Struyvenv3
daans
 
Linkin Park-Fort Minor
Linkin Park-Fort MinorLinkin Park-Fort Minor
Linkin Park-Fort Minormiketh16
 
Trabalho em Equipe
Trabalho em EquipeTrabalho em Equipe
Trabalho em Equipe
Gerisval Pessoa
 
Estratégia para vencer na crise
Estratégia para vencer na criseEstratégia para vencer na crise
Estratégia para vencer na crise
Gerisval Pessoa
 
MindShift Events Profile 2009
MindShift Events Profile 2009MindShift Events Profile 2009
MindShift Events Profile 2009NikkiBadenhorst
 

Viewers also liked (15)

State Of U V2
State Of U V2State Of U V2
State Of U V2
 
Aanvraagformulier Vog Np 2009
Aanvraagformulier Vog Np 2009Aanvraagformulier Vog Np 2009
Aanvraagformulier Vog Np 2009
 
Evaluation Of The Final Product
Evaluation Of The Final ProductEvaluation Of The Final Product
Evaluation Of The Final Product
 
State Of U V3
State Of U V3State Of U V3
State Of U V3
 
Roken Groep Marjolein
Roken Groep MarjoleinRoken Groep Marjolein
Roken Groep Marjolein
 
State Of U V1
State Of U V1State Of U V1
State Of U V1
 
Cisp In Pictures 97
Cisp In Pictures 97Cisp In Pictures 97
Cisp In Pictures 97
 
Roken Groep Monique
Roken Groep MoniqueRoken Groep Monique
Roken Groep Monique
 
Biosphere
BiosphereBiosphere
Biosphere
 
How to study and teaching how to study
How to study and teaching how to studyHow to study and teaching how to study
How to study and teaching how to study
 
Solidarity Responsibility Job Incentive Scheme Master Thesis Daan Struyvenv3
Solidarity Responsibility Job Incentive Scheme Master Thesis Daan Struyvenv3Solidarity Responsibility Job Incentive Scheme Master Thesis Daan Struyvenv3
Solidarity Responsibility Job Incentive Scheme Master Thesis Daan Struyvenv3
 
Linkin Park-Fort Minor
Linkin Park-Fort MinorLinkin Park-Fort Minor
Linkin Park-Fort Minor
 
Trabalho em Equipe
Trabalho em EquipeTrabalho em Equipe
Trabalho em Equipe
 
Estratégia para vencer na crise
Estratégia para vencer na criseEstratégia para vencer na crise
Estratégia para vencer na crise
 
MindShift Events Profile 2009
MindShift Events Profile 2009MindShift Events Profile 2009
MindShift Events Profile 2009
 

Similar to Slicing the web

Using a CSS Framework
Using a CSS FrameworkUsing a CSS Framework
Using a CSS Framework
Gareth Saunders
 
Introduction to Bootstrap
Introduction to BootstrapIntroduction to Bootstrap
Introduction to Bootstrap
Ron Reiter
 
HTML Web Devlopment presentation css.ppt
HTML Web Devlopment presentation css.pptHTML Web Devlopment presentation css.ppt
HTML Web Devlopment presentation css.ppt
raghavanp4
 
css.ppt
css.pptcss.ppt
css.ppt
css.pptcss.ppt
css.ppt
Sana903754
 
Html forfood
Html forfoodHtml forfood
Html forfood
Cristiane Zimmermann
 
Caracteristicas Basicas De Htlm
Caracteristicas Basicas De HtlmCaracteristicas Basicas De Htlm
Caracteristicas Basicas De HtlmMaria S Rivera
 
WCBuf: CSS Display Properties versus HTML Semantics
WCBuf: CSS Display Properties versus HTML SemanticsWCBuf: CSS Display Properties versus HTML Semantics
WCBuf: CSS Display Properties versus HTML Semantics
Adrian Roselli
 
Web development basics (Part-1)
Web development basics (Part-1)Web development basics (Part-1)
Web development basics (Part-1)
Rajat Pratap Singh
 
Highly Maintainable, Efficient, and Optimized CSS
Highly Maintainable, Efficient, and Optimized CSSHighly Maintainable, Efficient, and Optimized CSS
Highly Maintainable, Efficient, and Optimized CSSZoe Gillenwater
 
Bootstrap Workout 2015
Bootstrap Workout 2015Bootstrap Workout 2015
Bootstrap Workout 2015
Rob Davarnia
 
Please dont touch-3.6-jsday
Please dont touch-3.6-jsdayPlease dont touch-3.6-jsday
Please dont touch-3.6-jsday
Francesco Fullone
 
Advance Css 1194323118268797 5
Advance Css 1194323118268797 5Advance Css 1194323118268797 5
Advance Css 1194323118268797 5
dharshyamal
 
Advance Css
Advance CssAdvance Css
Advance Css
vijayta
 
Intro to web dev
Intro to web devIntro to web dev
Intro to web dev
kamar MEDDAH
 

Similar to Slicing the web (20)

Using a CSS Framework
Using a CSS FrameworkUsing a CSS Framework
Using a CSS Framework
 
Artdm171 Week4 Tags
Artdm171 Week4 TagsArtdm171 Week4 Tags
Artdm171 Week4 Tags
 
Introduction to Bootstrap
Introduction to BootstrapIntroduction to Bootstrap
Introduction to Bootstrap
 
HTML Web Devlopment presentation css.ppt
HTML Web Devlopment presentation css.pptHTML Web Devlopment presentation css.ppt
HTML Web Devlopment presentation css.ppt
 
css.ppt
css.pptcss.ppt
css.ppt
 
css.ppt
css.pptcss.ppt
css.ppt
 
Html forfood
Html forfoodHtml forfood
Html forfood
 
Caracteristicas Basicas De Htlm
Caracteristicas Basicas De HtlmCaracteristicas Basicas De Htlm
Caracteristicas Basicas De Htlm
 
ARTDM 171, Week 5: CSS
ARTDM 171, Week 5: CSSARTDM 171, Week 5: CSS
ARTDM 171, Week 5: CSS
 
WCBuf: CSS Display Properties versus HTML Semantics
WCBuf: CSS Display Properties versus HTML SemanticsWCBuf: CSS Display Properties versus HTML Semantics
WCBuf: CSS Display Properties versus HTML Semantics
 
Web development basics (Part-1)
Web development basics (Part-1)Web development basics (Part-1)
Web development basics (Part-1)
 
HTML5 & CSS3 Flag
HTML5 & CSS3 FlagHTML5 & CSS3 Flag
HTML5 & CSS3 Flag
 
Css
CssCss
Css
 
Highly Maintainable, Efficient, and Optimized CSS
Highly Maintainable, Efficient, and Optimized CSSHighly Maintainable, Efficient, and Optimized CSS
Highly Maintainable, Efficient, and Optimized CSS
 
Bootstrap Workout 2015
Bootstrap Workout 2015Bootstrap Workout 2015
Bootstrap Workout 2015
 
Email dssign rules
Email dssign rulesEmail dssign rules
Email dssign rules
 
Please dont touch-3.6-jsday
Please dont touch-3.6-jsdayPlease dont touch-3.6-jsday
Please dont touch-3.6-jsday
 
Advance Css 1194323118268797 5
Advance Css 1194323118268797 5Advance Css 1194323118268797 5
Advance Css 1194323118268797 5
 
Advance Css
Advance CssAdvance Css
Advance Css
 
Intro to web dev
Intro to web devIntro to web dev
Intro to web dev
 

Recently uploaded

Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
ameli25062005
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
cy0krjxt
 
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
708pb191
 
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Mansi Shah
 
20 slides of research movie and artists .pdf
20 slides of research movie and artists .pdf20 slides of research movie and artists .pdf
20 slides of research movie and artists .pdf
ameli25062005
 
Research 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdfResearch 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdf
ameli25062005
 
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
smpc3nvg
 
一比一原版(毕业证)长崎大学毕业证成绩单如何办理
一比一原版(毕业证)长崎大学毕业证成绩单如何办理一比一原版(毕业证)长崎大学毕业证成绩单如何办理
一比一原版(毕业证)长崎大学毕业证成绩单如何办理
taqyed
 
一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理
一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理
一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理
7sd8fier
 
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
gpffo76j
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
cy0krjxt
 
RTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,DRTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,D
cy0krjxt
 
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
7sd8fier
 
vernacular architecture in response to climate.pdf
vernacular architecture in response to climate.pdfvernacular architecture in response to climate.pdf
vernacular architecture in response to climate.pdf
PrabhjeetSingh219035
 
Exploring the Future of Smart Garages.pdf
Exploring the Future of Smart Garages.pdfExploring the Future of Smart Garages.pdf
Exploring the Future of Smart Garages.pdf
fastfixgaragedoor
 
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
jyz59f4j
 
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
9a93xvy
 
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
h7j5io0
 
Borys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior designBorys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior design
boryssutkowski
 
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
smpc3nvg
 

Recently uploaded (20)

Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
 
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
 
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
 
20 slides of research movie and artists .pdf
20 slides of research movie and artists .pdf20 slides of research movie and artists .pdf
20 slides of research movie and artists .pdf
 
Research 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdfResearch 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdf
 
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
 
一比一原版(毕业证)长崎大学毕业证成绩单如何办理
一比一原版(毕业证)长崎大学毕业证成绩单如何办理一比一原版(毕业证)长崎大学毕业证成绩单如何办理
一比一原版(毕业证)长崎大学毕业证成绩单如何办理
 
一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理
一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理
一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理
 
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
 
RTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,DRTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,D
 
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
 
vernacular architecture in response to climate.pdf
vernacular architecture in response to climate.pdfvernacular architecture in response to climate.pdf
vernacular architecture in response to climate.pdf
 
Exploring the Future of Smart Garages.pdf
Exploring the Future of Smart Garages.pdfExploring the Future of Smart Garages.pdf
Exploring the Future of Smart Garages.pdf
 
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
 
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
 
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
 
Borys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior designBorys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior design
 
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
 

Slicing the web

  • 1. Slicing The Web By: M. Aladdin Hemmat August, 2008 slicing using tableless or DIV technique
  • 2. ➔Objective of this training: Slicing The Web 1- To review the slicing techniques and when I’m talking about Techniques, I’m talking about how to slice the design inside the Graphic program. 2- To know how to convert in between the design to a coded webpage. 2- To get a good knowledge of CSS with stress on Styles that is used in slicing. 3- To troubleshoot any kind of webpage templates.
  • 3. Slicing The Web Designing Phase “Photoshop” Or the graphic program you are using to make your design Coding Phase “HTML / XHTML” The code of the webpage Styling Phase CSS Cascading style sheets ✓ Design to HTML ✓ Design Tips that will be very helpful at ‘DIV’ing or slicing as general ✓ <DIV> Vs <Table> ✓ Does <Table> is that bad?! ✓ Necessary HTML tags (incase of using <DIV>) ✓ Samples & Examples of <Table> WebPages ✓ Samples & Examples of <DIV> WebPages ✓ CSS Tags needed ✓ Alternative methods to slice the page using CSS ✓ Samples & Examples ✓ How to troubleshoot CSS problems during <DIV>ing Slicing The Web
  • 5. ➔Design to HTML: Slicing The Web 1- slicing techniques. 2- Using PhotoShop to Export the design as a webpage.
  • 6. ➔Design Tips that will be very helpful at ‘DIV’ing or slicing as general: 1- Optimize the spaces with solid colors, by using hex CSS code instead of pictures. Slicing The Web 2- use background image using CSS.
  • 8. ➔<DIV> Vs <Table>: Slicing The Web Table Technique DIV Technique 1 Ease Easy and Intuitive Not quite easy 2 SEO Friendly Friendly 3 Flexibility less flexibility More flexible 4 CSS need Not often used Usually used or in most cases 5 Code weight More code weight Less code weight 6 Code understanding Easy to be understood Not quite easy to understood 7 How many Cells It has rows , column and therefore cells Just one cell per DIV 8 Maintainability Easy but take time Little complicated but efficient 9 Cell Float Cell can’t float in the page Cell can float in the page
  • 9. ➔<DIV> Vs <Table>: Slicing The Web According to HTML Structure and weight of the code:
  • 10. ➔Does <Table> is that bad ?! Slicing The Web NO But why? tell me why I have to use <table> any more? ➔The rigidity of the structure. ➔The ease of understanding in some complicated structures. !Of course these advantages are according to slicing point of view.
  • 11. ➔Necessary HTML tags (incase of using <DIV>): Slicing The Web <div> ------------------- <span> ------------------- <ul> <ol> <li> ------------------- <br> <hr>
  • 12. ➔Necessary HTML tags (incase of using <DIV>): Slicing The Web <div> Example <div id=“header” style=“color: #FFF;”></div> <div class=“header” style=“color: #FFF;”></div> Attributes (id ,class, style) The <div> tag defines a division/section in a document.<div>
  • 13. ➔Necessary HTML tags (incase of using <DIV>): Slicing The Web <span> Attributes (id ,class, style) Example <span id=“header” style=“color: #FFF;”></span> <span class=“header” style=“color: #FFF;”></span> The <span> tag is used to group inline-elements in a document.<span>
  • 14. ➔Necessary HTML tags (incase of using <DIV>): Slicing The Web <dl> <dt> <dd> Attributes (id ,class, style) Example <dl>
 <dt> Coffee </dt> 
 <dd> Black hot drink </dd> 
 <dt> Milk </dt> 
 <dd> White cold drink </dd> 
 </dl> The <dl> tag defines a definition list.<dl> The <dt> tag defines the start of a term in a definition list.<dt> The <dd> tag defines the description of a term in a definition list.<dd> Coffee Black hot drink Milk White cold drink
  • 15. ➔Necessary HTML tags (incase of using <DIV>): Slicing The Web <ul> <ol> <li> The <ul> tag defines an unordered list.<ul> The <ol> tag defines the start of an ordered list.<ol> The <li> tag defines the start of a list item. The <li> tag is used in both ordered (<ol>) and unordered lists (<ul>).<li>
  • 16. ➔Necessary HTML tags (incase of using <DIV>): Slicing The Web <ul> <ol> <li> Example <ol>
 <li>Coffee</li> 
 <li>Tea</li> 
 <ol/> <<ul
 <li>Coffee</li>
 <li>Tea</li>
 <ul/> 1. Coffee 2. Tea • Coffee • Tea
  • 17. ➔Necessary HTML tags (incase of using <DIV>): Slicing The Web <br> <hr> The <br> tag inserts a single line break. In HTML the <br> tag has no end tag, like this: <br>. In XHTML the <br> tag must be properly closed, like this: <br />. Attributes (id ,class, style) Example <hr class=“break” style=“color:#FFF;” /> @XHTML <br class=“break” style=“color:#FFF;” /> @XHTML The <hr> tag inserts a horizontal rule. In HTML the <hr> tag has no end tag. In XHTML the <hr> tag must be properly closed, like this: <hr />. <hr> <br>
  • 18. ➔Samples & Examples of <Table> WebPages: Slicing The Web
  • 19. ➔Samples & Examples of <DIV> WebPages: Slicing The Web
  • 21. ➔CSS Tags needed: Slicing The Web Background:; ------------------- Padding:; ------------------- Margin:; ------------------- Float:; ------------------- Position:; ------------------- Display:; ------------------- Direction:;
  • 22. ➔CSS Tags needed: Slicing The Web Background:; Background-color: #FFF; Background-images: url( images/pic.jpg) ; Background-position: center top ; Background-repeat: repeat-x ; Background-attachment: scroll ; Background: #FFF url(images/pic.jpg) center top repeat scroll;
  • 23. ➔CSS Tags needed: Slicing The Web Padding:; Padding-top: 30px; Padding-left: 30px; Padding-bottom: 30px; Padding-right: 30px; Padding: 10px 30px 10px 30px ; Padding: 10% 30% 10% 30% ;
  • 24. ➔CSS Tags needed: Slicing The Web Margin:; margin-top: 30px; margin-left: 30px; margin-bottom: 30px; margin-right: 30px; margin: 10px 30px 10px 30px ; margin: 10% 30% 10% 30% ; margin: -10px -30px -10px -30px ;
  • 25. ➔CSS Tags needed: Slicing The Web Float:; Float: Right Left
  • 26. ➔CSS Tags needed: Slicing The Web Position:; Position: Relative; Absolute; Fixed; Static; Z-index: +1; 0; -1; Z-index can be used to place an element "behind" another element.
  • 27. ➔CSS Tags needed: Slicing The Web Display:; Display: Block; Inline; None;
  • 28. CSS Tags needed: Slicing The Web Direction:; Direction: ltr; (left to right) rtl; (right to left)
  • 29. ➔Alternative methods to slice the page: Slicing The Web Using <table> Using Float + Padding + Margin Using Float Left column Right column
  • 30. ➔Alternative methods to slice the page: Slicing The Web 1- Using <table> <table width="800" cellspacing="2" cellpadding="5" border="1"> <tr> <td colspan="2"> <p>Lorem ipsum dolor sit amet,</p> </td> </tr> <tr> <td width="150"> <p>Lorem ipsum dolor sit amet,</p> </td> <td width="650" valign="top"> <p>Lorem ipsum dolor sit amet,</p> </td> </tr> <tr> <td colspan="2" valign="top"> <p>Lorem ipsum dolor sit amet,</p> </td> </tr> </table> In HTML
  • 31. ➔Alternative methods to slice the page: Slicing The Web 2- Using “ float ” <div class=“Header”> <p> Lorem ipsum dolor sit amet, </p> < div> <div class=“left”> <p> Lorem ipsum dolor sit amet, </p> <div> <div class=“right”> <p> Lorem ipsum dolor sit amet, </p> </ div> <div class=“footer”> <p> Lorem ipsum dolor sit amet, </p> <div> In HTML
  • 32. ➔Alternative methods to slice the page: Slicing The Web 2- Using “ float ” .header{ width: 800px ; height: 100px ; margin: 5px auto 5px auto ; } .left{ width: 140px; <<<<<<<<<<<<<<<<<<<<<< float: left; margin: 5px 5px 5px 5px ; } .right{ width:640px ; <<<<<<<<<<<<<<<<<<<<<< float: right ; margin: 5px 5px 5px 5px ; } .footer{ width: 800px ; height: 50px ; margin: 5px auto 5px auto ; clear: both ; } In CSS
  • 33. ➔Alternative methods to slice the page: Slicing The Web 3- Using “ float + padding + margin ” (Advanced) <div class=“Header”> <p> Lorem ipsum dolor sit amet, </p> < div> <div class=“left”> <p> Lorem ipsum dolor sit amet, </p> <div> <div class=“right”> <p> Lorem ipsum dolor sit amet, </p> </ div> <div class=“footer”> <p> Lorem ipsum dolor sit amet, </p> <div> In HTML
  • 34. ➔Alternative methods to slice the page: Slicing The Web 3- Using “ float + padding + margin ”
  • 35. ➔Samples & Examples: Slicing The Web Simple Examples 1 Column 2 Column 3 Column 1 1 2 1 2 3
  • 36. ➔Samples & Examples: Slicing The Web Advanced Examples
  • 37. ➔Troubleshooting of some CSS problems that facing you during <DIV>ing: Slicing The Web Web Developer Add-on for FireFox (toolbar) Click here to download it ( Note that it is still not for IE) Helpful tool:
  • 38. ➔Troubleshooting of some CSS problems that facing you during <DIV>ing: Slicing The Web Discussing some cases ►Expanded web pages ►Horizontal scroll ►Percentage width values