SlideShare uma empresa Scribd logo
1 de 38
Baixar para ler offline
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

Mais conteúdo relacionado

Mais procurados

HTML/CSS the beginning
HTML/CSS the beginningHTML/CSS the beginning
HTML/CSS the beginningWebMuses
 
Html - By Auroskkil
Html - By AuroskkilHtml - By Auroskkil
Html - By AuroskkilBoneyGawande
 
Cascading Style Sheets - Part 02
Cascading Style Sheets - Part 02Cascading Style Sheets - Part 02
Cascading Style Sheets - Part 02Hatem Mahmoud
 
Slow kinda sucks
Slow kinda sucksSlow kinda sucks
Slow kinda sucksTim 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 tipsChris 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
 
How to use CSS3 in WordPress
How to use CSS3 in WordPressHow to use CSS3 in WordPress
How to use CSS3 in WordPressSuzette 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 StandardsTim Wright
 
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 JSNaga Harish M
 
Css Best Practices
Css Best PracticesCss Best Practices
Css Best Practicessachin9737
 
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 3Nur Fadli Utomo
 
Efficient, maintainable CSS
Efficient, maintainable CSSEfficient, maintainable CSS
Efficient, maintainable CSSRuss Weakley
 

Mais procurados (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
 

Destaque

Aanvraagformulier Vog Np 2009
Aanvraagformulier Vog Np 2009Aanvraagformulier Vog Np 2009
Aanvraagformulier Vog Np 2009guestecf2cc7
 
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 97oaxjohn
 
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 studyLuiz 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 Struyvenv3daans
 
Linkin Park-Fort Minor
Linkin Park-Fort MinorLinkin Park-Fort Minor
Linkin Park-Fort Minormiketh16
 
Estratégia para vencer na crise
Estratégia para vencer na criseEstratégia para vencer na crise
Estratégia para vencer na criseGerisval Pessoa
 
MindShift Events Profile 2009
MindShift Events Profile 2009MindShift Events Profile 2009
MindShift Events Profile 2009NikkiBadenhorst
 

Destaque (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
 

Semelhante a Slicing the web

Introduction to Bootstrap
Introduction to BootstrapIntroduction to Bootstrap
Introduction to BootstrapRon Reiter
 
HTML Web Devlopment presentation css.ppt
HTML Web Devlopment presentation css.pptHTML Web Devlopment presentation css.ppt
HTML Web Devlopment presentation css.pptraghavanp4
 
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 SemanticsAdrian 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 2015Rob Davarnia
 
Advance Css
Advance CssAdvance Css
Advance Cssvijayta
 
Advance Css 1194323118268797 5
Advance Css 1194323118268797 5Advance Css 1194323118268797 5
Advance Css 1194323118268797 5dharshyamal
 

Semelhante a 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
Advance CssAdvance Css
Advance Css
 
Advance Css 1194323118268797 5
Advance Css 1194323118268797 5Advance Css 1194323118268797 5
Advance Css 1194323118268797 5
 
Intro to web dev
Intro to web devIntro to web dev
Intro to web dev
 

Último

(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...
(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...
(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...ranjana rawat
 
Chapter 19_DDA_TOD Policy_First Draft 2012.pdf
Chapter 19_DDA_TOD Policy_First Draft 2012.pdfChapter 19_DDA_TOD Policy_First Draft 2012.pdf
Chapter 19_DDA_TOD Policy_First Draft 2012.pdfParomita Roy
 
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)amitlee9823
 
UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...
UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...
UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...RitikaRoy32
 
VVIP Pune Call Girls Hadapsar (7001035870) Pune Escorts Nearby with Complete ...
VVIP Pune Call Girls Hadapsar (7001035870) Pune Escorts Nearby with Complete ...VVIP Pune Call Girls Hadapsar (7001035870) Pune Escorts Nearby with Complete ...
VVIP Pune Call Girls Hadapsar (7001035870) Pune Escorts Nearby with Complete ...Call Girls in Nagpur High Profile
 
Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...amitlee9823
 
Government polytechnic college-1.pptxabcd
Government polytechnic college-1.pptxabcdGovernment polytechnic college-1.pptxabcd
Government polytechnic college-1.pptxabcdshivubhavv
 
DragonBall PowerPoint Template for demo.pptx
DragonBall PowerPoint Template for demo.pptxDragonBall PowerPoint Template for demo.pptx
DragonBall PowerPoint Template for demo.pptxmirandajeremy200221
 
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
 
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...SUHANI PANDEY
 
Design Inspiration for College by Slidesgo.pptx
Design Inspiration for College by Slidesgo.pptxDesign Inspiration for College by Slidesgo.pptx
Design Inspiration for College by Slidesgo.pptxTusharBahuguna2
 
AMBER GRAIN EMBROIDERY | Growing folklore elements | Root-based materials, w...
AMBER GRAIN EMBROIDERY | Growing folklore elements |  Root-based materials, w...AMBER GRAIN EMBROIDERY | Growing folklore elements |  Root-based materials, w...
AMBER GRAIN EMBROIDERY | Growing folklore elements | Root-based materials, w...BarusRa
 
infant assessment fdbbdbdddinal ppt.pptx
infant assessment fdbbdbdddinal ppt.pptxinfant assessment fdbbdbdddinal ppt.pptx
infant assessment fdbbdbdddinal ppt.pptxsuhanimunjal27
 
Stark Industries Marketing Plan (1).pptx
Stark Industries Marketing Plan (1).pptxStark Industries Marketing Plan (1).pptx
Stark Industries Marketing Plan (1).pptxjeswinjees
 
call girls in Vasundhra (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
call girls in Vasundhra (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...call girls in Vasundhra (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
call girls in Vasundhra (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...Delhi Call girls
 
Top Rated Pune Call Girls Saswad ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated  Pune Call Girls Saswad ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...Top Rated  Pune Call Girls Saswad ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated Pune Call Girls Saswad ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...Call Girls in Nagpur High Profile
 
Top Rated Pune Call Girls Koregaon Park ⟟ 6297143586 ⟟ Call Me For Genuine S...
Top Rated  Pune Call Girls Koregaon Park ⟟ 6297143586 ⟟ Call Me For Genuine S...Top Rated  Pune Call Girls Koregaon Park ⟟ 6297143586 ⟟ Call Me For Genuine S...
Top Rated Pune Call Girls Koregaon Park ⟟ 6297143586 ⟟ Call Me For Genuine S...Call Girls in Nagpur High Profile
 
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...amitlee9823
 
VVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts Service
VVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts ServiceVVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts Service
VVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts Servicearoranaina404
 

Último (20)

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...
 
(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...
(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...
(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...
 
Chapter 19_DDA_TOD Policy_First Draft 2012.pdf
Chapter 19_DDA_TOD Policy_First Draft 2012.pdfChapter 19_DDA_TOD Policy_First Draft 2012.pdf
Chapter 19_DDA_TOD Policy_First Draft 2012.pdf
 
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)
 
UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...
UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...
UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...
 
VVIP Pune Call Girls Hadapsar (7001035870) Pune Escorts Nearby with Complete ...
VVIP Pune Call Girls Hadapsar (7001035870) Pune Escorts Nearby with Complete ...VVIP Pune Call Girls Hadapsar (7001035870) Pune Escorts Nearby with Complete ...
VVIP Pune Call Girls Hadapsar (7001035870) Pune Escorts Nearby with Complete ...
 
Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
 
Government polytechnic college-1.pptxabcd
Government polytechnic college-1.pptxabcdGovernment polytechnic college-1.pptxabcd
Government polytechnic college-1.pptxabcd
 
DragonBall PowerPoint Template for demo.pptx
DragonBall PowerPoint Template for demo.pptxDragonBall PowerPoint Template for demo.pptx
DragonBall PowerPoint Template for demo.pptx
 
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
 
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...
 
Design Inspiration for College by Slidesgo.pptx
Design Inspiration for College by Slidesgo.pptxDesign Inspiration for College by Slidesgo.pptx
Design Inspiration for College by Slidesgo.pptx
 
AMBER GRAIN EMBROIDERY | Growing folklore elements | Root-based materials, w...
AMBER GRAIN EMBROIDERY | Growing folklore elements |  Root-based materials, w...AMBER GRAIN EMBROIDERY | Growing folklore elements |  Root-based materials, w...
AMBER GRAIN EMBROIDERY | Growing folklore elements | Root-based materials, w...
 
infant assessment fdbbdbdddinal ppt.pptx
infant assessment fdbbdbdddinal ppt.pptxinfant assessment fdbbdbdddinal ppt.pptx
infant assessment fdbbdbdddinal ppt.pptx
 
Stark Industries Marketing Plan (1).pptx
Stark Industries Marketing Plan (1).pptxStark Industries Marketing Plan (1).pptx
Stark Industries Marketing Plan (1).pptx
 
call girls in Vasundhra (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
call girls in Vasundhra (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...call girls in Vasundhra (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
call girls in Vasundhra (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
 
Top Rated Pune Call Girls Saswad ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated  Pune Call Girls Saswad ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...Top Rated  Pune Call Girls Saswad ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated Pune Call Girls Saswad ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
 
Top Rated Pune Call Girls Koregaon Park ⟟ 6297143586 ⟟ Call Me For Genuine S...
Top Rated  Pune Call Girls Koregaon Park ⟟ 6297143586 ⟟ Call Me For Genuine S...Top Rated  Pune Call Girls Koregaon Park ⟟ 6297143586 ⟟ Call Me For Genuine S...
Top Rated Pune Call Girls Koregaon Park ⟟ 6297143586 ⟟ Call Me For Genuine S...
 
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
VVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts Service
VVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts ServiceVVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts Service
VVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts Service
 

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