SlideShare a Scribd company logo
1 of 18
PSD to HTML Conversion
Designing a website involves many
steps, and one of the most important is
the conversion of PSD files into HTML
format. Here, we will discuss how to do
the conversion process easily and
efficiently. Before you start the
process, you first need to know some
of the basics.
What is PSD?
PSD means a Photoshop document. Photoshop
is a popular application for image editing. It helps
you to edit photos, create designs using layers
and save the final design in various formats. The
default file format in Photoshop is *.PSD.
Web designers first create their designs in
Photoshop. Those designs are then converted
into HTML format. Generally, the conversion job
is handled by the coding experts — not by
graphic designers.
What is HTML?
HTML stands for Hypertext Markup Language.
HTML is a popular coding language used for web
page creation. It uses preset tags. The latest HTML
version is HTML5.
Web design is a creative process, and if you start
coding directly, you may not get the creativity and
the aesthetic appeal in the process. Hence, having
a graphic representation of your design at the start
can tell you where you are heading in your website
creation. When you have the graphic representation
of the design, it is rather easier to work with the
codes.
Different approaches for converting PSD to
HTML
It is important to know what the options are before
beginning the process to convert your Photoshop
files into an HTML file.
Ways to enable the conversion process:

Self coding

Automated tools

Getting help from a PSD conversion company
This document will cover the process of self-coding.
Beginning the conversion process
We assume that you already have your design in
the PSD format. Finalize the design before you
start the conversion process.
If you are designing the website for your client,
then first get the approval of the design from your
client before you start the conversions so that
you don’t need to rework unnecessarily. PSD to
HTML conversions can be time-consuming: plan
well to avoid time wastage.
Different components of your web pages

Logo: The logo is generally placed in the
header of the webpage in most of the design
layouts.

Header: It refers to the top portion of your web
page. Depending on the layout, it could
contain the company’s logo, tagline, flash
animation, image, sliders and a navigation
menu.

Body: The body of the website contains the
textual content and user sign-in module if any.
When you are converting the website design which
you have created using Photoshop, you need to
make sure that all of these components are placed
in the appropriate positions without losing the
design harmony of the page.
Slicing
In this step, the PSD file which you have created
and made of several layers should be sliced.
Slicing is the breaking up of a single large image to multiple small
images. One of the benefits of using a sliced version of PSD in
your HTML page is that it will help in faster loading of the pages.
If the entire PSD file is kept a single PSD file then it will take
plenty of time for the page to download. To slice your image, you
can use the slicing tool available in Photoshop. There are four
types of slicing options available in Photoshop for breaking your
web page into small pieces:
Normal
Fixed Aspect Ratio
Fixed Size
Slices from Guides
Once you have sliced the PSD file, make sure to save the sliced
version using the option “Save for the Web”. Save these images
in ‘images’ directory.
Create required directories
You need to create the required directories in your
computer to proceed in an organized way:
Main folder with website name
Subfolder named ‘Images’ under the main folder.
Here you will store all the images that you will be
using for your website
Subfolder named ‘Styles’ for the CSS file or for style
sheets under the main folder
Working with HTML page
After you have created the required folders, now it is
time to create your HTML page. You can use an HTML
page builder such Adobe Dreamweaver or open source
option like Amaya or Komposer. Create a new file in
Dreamweaver and name it as index.html and then save
it in your main folder.
Next step is to create styles file. You can do this in an
HTML editor and save the new file as styles.css in the
CSS folder. In the style sheet, we will give all the
information regarding the stylistic features of HTML web
page like font size, font type, background color, the
position of the images, margins and fieldset among
others. The CSS style sheet should be linked to the
HTML page.
Building a set of website designs
Now, we will take you through the entire process of
getting from Photoshop to completed HTML.
We will build a set of PSD files for a website which
will become a WordPress theme.
Step 1 – Ready the editor
First of all, open the code editor of choice like
Dreamweaver and set up a “Site”.
Step 2 – Quick layout
Now, we will construct a quick overall
layout in HTML with some CSS just to
make sure we have got a good
foundation. We can also check it in
major browsers like IE, Safari and
Chrome.
Browser compatibility issues should be
sorted out now only.
Ready the Mockup (pt. 1)
In the first mockup, we should find:
The design is centered, means we have to wrap it in a
container and then center that container.
The design is a series of horizontal blocks. Sometimes
the blocks have two columns. We can do it in series.
We have a footer which is in a different color. It means
the background needs to be that color, if the user
browser stretches. Hence, the footer will need to sit in a
different container to the main stuff.
Here is the HTML layout:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Creatif</title>
<link href="css/style.css" rel="stylesheet" type="text/css" media="all">
</head>
<body>
<div id="wrapper">
<div class="container">
<div id="header">
<img src=”images/logo.png”>
<ul>
<li><a href=”#”>menu1</a></li>
<li><a href=”#”>menu2</a></li>
<li><a href=”#”>menu3</a></li>
</ul>
</div>
<div id="main">
<div id="section1">
<h2>What is Lorem Ipsum?</h2>
<p>Section1 content</p>
</div>
<div id="section2">
<h2>Heading2</h2>
<p>Section2 content</p>
Ready the Mockup (pt. 2)
You can see that there are two
segments: the #main area and the
#footer area. Inside each, we have a
<div class=”container”> element which
will be fixed width and centered. The
main container includes a sequence of
<div>. Now we will add CSS code as
follows:
</div>
</div>
<div id="footer">
Copyright2017,All rights reserved.
</div>
</div>
</div>
</body>
</html>
body{
Background-color:#0c80ab;
}
.container{
Width:950px;
Margin:0 auto;
}
#header {
background: #86c0d5;
color: #000;
text-align: center;
font-size: 15px;
</div>
</div>
<div id="footer">
Copyright2017,All rights reserved.
</div>
</div>
</div>
</body>
</html>
Ready the Mockup (pt. 3)
Now we will add CSS code as follows:
We have set the body’s background
color as the light blue of the footer.
Then the #main area has the lighter
background. You can also see the
.container elements have a width of
950px and are centred using
margin:auto.
body{
Background-color:#0c80ab;
}
.container{
Width:950px;
Margin:0 auto;
}
#header {
background: #86c0d5;
color: #000;
text-align: center;
font-size: 15px;
}
/* ———————— MAIN CONTENT ————–*/
#header ul{
Float:right;
}
#header ul li{
Display:inline-block;
List-style:none;
}
#header ul li a{
Display:inline-block;
Color:#000;
Font-size:15px;
}
main {
Background-color:#6db3cd;
Margin-top:50px;
Padding:30px 0px;
}
#section1,#section2 {
float: left;
width: 100%;
background: #b6d9e6;
color: #000;
font-size: 15px;
text-align: left;
padding: 20px;
Margin-bottom:30px;
}
#section1 h2,#section2 h2{
Font-weight:bold;
color: #000;
Step 3 – Add some background images
So our layout is now in shape. With main elements positioned,
we can now style it up. First of all, we need some images. You
can make these yourself if you have layered PSDs. Now, use a
large background image. You can also create a background
image for the footer. So you can now update the CSS file and
add the new background images. The first thing to do is to create
a directory structure and get ready to build like an /images/
directory and a /scripts/ directory and save all CSS and HTML in
the root.
Each time you want to get your PSD files converted, you should
be careful of all the factors. Let quality be your watchword. If you
make your decisions on this factor, then they will be the right
ones.
font-size: 20px;
text-align: left;
padding: 0 20px;
}
#section1 p,#section2 p{
Font-size:16px;
Line-height:1.4;
Color:#000;
}
#footer{
Background:#86c0d5;
Color:#000;
Text-align:center;
Padding:60px;
PSD to HTML Conversion

More Related Content

What's hot

Web designing course
Web designing courseWeb designing course
Web designing coursemandeep Singh
 
Introduction to html5
Introduction to html5Introduction to html5
Introduction to html5kolev-prp
 
HTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts BasicsHTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts BasicsSun Technlogies
 
Unit j adobe dreamweaver cs6
Unit j adobe dreamweaver cs6Unit j adobe dreamweaver cs6
Unit j adobe dreamweaver cs6Krista Lawrence
 
Web design and Development
Web design and DevelopmentWeb design and Development
Web design and DevelopmentShagor Ahmed
 
Html css java script basics All about you need
Html css java script basics All about you needHtml css java script basics All about you need
Html css java script basics All about you needDipen Parmar
 
Developing branding solutions
Developing branding solutionsDeveloping branding solutions
Developing branding solutionsThomas Daly
 
Customizing Your WordPress Theme Using Firebug and Basic CSS
Customizing Your WordPress Theme Using Firebug and Basic CSSCustomizing Your WordPress Theme Using Firebug and Basic CSS
Customizing Your WordPress Theme Using Firebug and Basic CSSLaura Hartwig
 
Lecture 1 intro to web designing
Lecture 1  intro to web designingLecture 1  intro to web designing
Lecture 1 intro to web designingpalhaftab
 
Developing branding solutions for 2013
Developing branding solutions for 2013Developing branding solutions for 2013
Developing branding solutions for 2013Thomas Daly
 
Create a stunning, mobile friendly business website with the divi theme
Create a stunning, mobile friendly business website with the divi themeCreate a stunning, mobile friendly business website with the divi theme
Create a stunning, mobile friendly business website with the divi themeMichelle Castillo
 

What's hot (20)

Web designing course
Web designing courseWeb designing course
Web designing course
 
Web Development
Web DevelopmentWeb Development
Web Development
 
Introduction to html5
Introduction to html5Introduction to html5
Introduction to html5
 
HTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts BasicsHTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts Basics
 
Unit j adobe dreamweaver cs6
Unit j adobe dreamweaver cs6Unit j adobe dreamweaver cs6
Unit j adobe dreamweaver cs6
 
Web design and Development
Web design and DevelopmentWeb design and Development
Web design and Development
 
Html css java script basics All about you need
Html css java script basics All about you needHtml css java script basics All about you need
Html css java script basics All about you need
 
Web designing
Web designingWeb designing
Web designing
 
Web designing course bangalore
Web designing course bangaloreWeb designing course bangalore
Web designing course bangalore
 
Developing branding solutions
Developing branding solutionsDeveloping branding solutions
Developing branding solutions
 
Customizing Your WordPress Theme Using Firebug and Basic CSS
Customizing Your WordPress Theme Using Firebug and Basic CSSCustomizing Your WordPress Theme Using Firebug and Basic CSS
Customizing Your WordPress Theme Using Firebug and Basic CSS
 
Lecture 1 intro to web designing
Lecture 1  intro to web designingLecture 1  intro to web designing
Lecture 1 intro to web designing
 
Web designing
Web designingWeb designing
Web designing
 
Group 3
Group 3Group 3
Group 3
 
HTML/HTML5
HTML/HTML5HTML/HTML5
HTML/HTML5
 
html & css
html & css html & css
html & css
 
Developing branding solutions for 2013
Developing branding solutions for 2013Developing branding solutions for 2013
Developing branding solutions for 2013
 
Create a stunning, mobile friendly business website with the divi theme
Create a stunning, mobile friendly business website with the divi themeCreate a stunning, mobile friendly business website with the divi theme
Create a stunning, mobile friendly business website with the divi theme
 
WEB DESIGN
WEB DESIGNWEB DESIGN
WEB DESIGN
 
Working with the Latest Tendenci Modules
Working with the Latest Tendenci ModulesWorking with the Latest Tendenci Modules
Working with the Latest Tendenci Modules
 

Similar to PSD to HTML Conversion

Psd to Html Conversion - Best Practices
Psd to Html Conversion - Best PracticesPsd to Html Conversion - Best Practices
Psd to Html Conversion - Best PracticesMindfire Solutions
 
Intro to Design Manager
Intro to Design ManagerIntro to Design Manager
Intro to Design ManagerD'arce Hess
 
HTML/CSS Crash Course (april 4 2017)
HTML/CSS Crash Course (april 4 2017)HTML/CSS Crash Course (april 4 2017)
HTML/CSS Crash Course (april 4 2017)Daniel Friedman
 
Psd to html
Psd to htmlPsd to html
Psd to htmlLen Biel
 
Intermediate Web Design.doc
Intermediate Web Design.docIntermediate Web Design.doc
Intermediate Web Design.docbutest
 
Intermediate Web Design.doc
Intermediate Web Design.docIntermediate Web Design.doc
Intermediate Web Design.docbutest
 
Convert PSD To Word Press In 6 Super Easy Steps
Convert PSD To Word Press In 6 Super Easy StepsConvert PSD To Word Press In 6 Super Easy Steps
Convert PSD To Word Press In 6 Super Easy StepsSunTec India
 
Lesson 8 Computer Creating your Website.pdf
Lesson 8 Computer Creating your Website.pdfLesson 8 Computer Creating your Website.pdf
Lesson 8 Computer Creating your Website.pdfAshleyJovelClavecill
 
BP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
BP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog TemplateBP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
BP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog TemplateSean Burgess
 
In Class Assignment 1 .docx
In Class Assignment 1                                        .docxIn Class Assignment 1                                        .docx
In Class Assignment 1 .docxjaggernaoma
 
How to Splice Images for Web Design
How to Splice Images for Web DesignHow to Splice Images for Web Design
How to Splice Images for Web DesignChristopher Dill
 
Easy Guide on PSD to WordPress Conversion
Easy Guide on PSD to WordPress ConversionEasy Guide on PSD to WordPress Conversion
Easy Guide on PSD to WordPress ConversionWordSuccor
 
Web design in 7 days by waqar
Web design in 7 days by waqarWeb design in 7 days by waqar
Web design in 7 days by waqarWaqar Chodhry
 
Developing branding solutions for 2013
Developing branding solutions for 2013Developing branding solutions for 2013
Developing branding solutions for 2013Thomas Daly
 
So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017
So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017 So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017
So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017 Evan Mullins
 

Similar to PSD to HTML Conversion (20)

ARTICULOENINGLES
ARTICULOENINGLESARTICULOENINGLES
ARTICULOENINGLES
 
Psd to Html Conversion - Best Practices
Psd to Html Conversion - Best PracticesPsd to Html Conversion - Best Practices
Psd to Html Conversion - Best Practices
 
Intro to Design Manager
Intro to Design ManagerIntro to Design Manager
Intro to Design Manager
 
HTML/CSS Crash Course (april 4 2017)
HTML/CSS Crash Course (april 4 2017)HTML/CSS Crash Course (april 4 2017)
HTML/CSS Crash Course (april 4 2017)
 
Web development
Web developmentWeb development
Web development
 
INTRODUCTIONS OF HTML
INTRODUCTIONS OF HTMLINTRODUCTIONS OF HTML
INTRODUCTIONS OF HTML
 
Psd to html
Psd to htmlPsd to html
Psd to html
 
Intermediate Web Design.doc
Intermediate Web Design.docIntermediate Web Design.doc
Intermediate Web Design.doc
 
Intermediate Web Design.doc
Intermediate Web Design.docIntermediate Web Design.doc
Intermediate Web Design.doc
 
Convert PSD To Word Press In 6 Super Easy Steps
Convert PSD To Word Press In 6 Super Easy StepsConvert PSD To Word Press In 6 Super Easy Steps
Convert PSD To Word Press In 6 Super Easy Steps
 
Lesson 8 Computer Creating your Website.pdf
Lesson 8 Computer Creating your Website.pdfLesson 8 Computer Creating your Website.pdf
Lesson 8 Computer Creating your Website.pdf
 
BP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
BP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog TemplateBP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
BP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
 
In Class Assignment 1 .docx
In Class Assignment 1                                        .docxIn Class Assignment 1                                        .docx
In Class Assignment 1 .docx
 
How to Splice Images for Web Design
How to Splice Images for Web DesignHow to Splice Images for Web Design
How to Splice Images for Web Design
 
Easy Guide on PSD to WordPress Conversion
Easy Guide on PSD to WordPress ConversionEasy Guide on PSD to WordPress Conversion
Easy Guide on PSD to WordPress Conversion
 
Web design in 7 days
Web design in 7 daysWeb design in 7 days
Web design in 7 days
 
Web design in 7 days by waqar
Web design in 7 days by waqarWeb design in 7 days by waqar
Web design in 7 days by waqar
 
Developing branding solutions for 2013
Developing branding solutions for 2013Developing branding solutions for 2013
Developing branding solutions for 2013
 
So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017
So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017 So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017
So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017
 
ppt of MANOJ KUMAR.pptx
ppt of MANOJ KUMAR.pptxppt of MANOJ KUMAR.pptx
ppt of MANOJ KUMAR.pptx
 

More from Darryl Sherman

Java Naming & Directory Services
Java Naming & Directory ServicesJava Naming & Directory Services
Java Naming & Directory ServicesDarryl Sherman
 
Il 02-search requeststrings
Il 02-search requeststringsIl 02-search requeststrings
Il 02-search requeststringsDarryl Sherman
 
Angular js filters and directives
Angular js filters and directivesAngular js filters and directives
Angular js filters and directivesDarryl Sherman
 

More from Darryl Sherman (6)

Java Naming & Directory Services
Java Naming & Directory ServicesJava Naming & Directory Services
Java Naming & Directory Services
 
Il 01-search engines
Il 01-search enginesIl 01-search engines
Il 01-search engines
 
Il 02-search requeststrings
Il 02-search requeststringsIl 02-search requeststrings
Il 02-search requeststrings
 
Python unit testing
Python unit testingPython unit testing
Python unit testing
 
Angular js filters and directives
Angular js filters and directivesAngular js filters and directives
Angular js filters and directives
 
Node js lecture
Node js lectureNode js lecture
Node js lecture
 

Recently uploaded

Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmSujith Sukumaran
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...OnePlan Solutions
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaHanief Utama
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)jennyeacort
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
Buds n Tech IT Solutions: Top-Notch Web Services in Noida
Buds n Tech IT Solutions: Top-Notch Web Services in NoidaBuds n Tech IT Solutions: Top-Notch Web Services in Noida
Buds n Tech IT Solutions: Top-Notch Web Services in Noidabntitsolutionsrishis
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024StefanoLambiase
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEEVICTOR MAESTRE RAMIREZ
 
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Velvetech LLC
 
英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作qr0udbr0
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsAhmed Mohamed
 
SpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at RuntimeSpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at Runtimeandrehoraa
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfFerryKemperman
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityNeo4j
 
CRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceCRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceBrainSell Technologies
 
How to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdfHow to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdfLivetecs LLC
 
What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...Technogeeks
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanyChristoph Pohl
 

Recently uploaded (20)

Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalm
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief Utama
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
2.pdf Ejercicios de programación competitiva
2.pdf Ejercicios de programación competitiva2.pdf Ejercicios de programación competitiva
2.pdf Ejercicios de programación competitiva
 
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
Buds n Tech IT Solutions: Top-Notch Web Services in Noida
Buds n Tech IT Solutions: Top-Notch Web Services in NoidaBuds n Tech IT Solutions: Top-Notch Web Services in Noida
Buds n Tech IT Solutions: Top-Notch Web Services in Noida
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEE
 
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...
 
英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML Diagrams
 
SpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at RuntimeSpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at Runtime
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdf
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 
CRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceCRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. Salesforce
 
How to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdfHow to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdf
 
What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
 

PSD to HTML Conversion

  • 1. PSD to HTML Conversion
  • 2. Designing a website involves many steps, and one of the most important is the conversion of PSD files into HTML format. Here, we will discuss how to do the conversion process easily and efficiently. Before you start the process, you first need to know some of the basics.
  • 3. What is PSD? PSD means a Photoshop document. Photoshop is a popular application for image editing. It helps you to edit photos, create designs using layers and save the final design in various formats. The default file format in Photoshop is *.PSD. Web designers first create their designs in Photoshop. Those designs are then converted into HTML format. Generally, the conversion job is handled by the coding experts — not by graphic designers.
  • 4. What is HTML? HTML stands for Hypertext Markup Language. HTML is a popular coding language used for web page creation. It uses preset tags. The latest HTML version is HTML5. Web design is a creative process, and if you start coding directly, you may not get the creativity and the aesthetic appeal in the process. Hence, having a graphic representation of your design at the start can tell you where you are heading in your website creation. When you have the graphic representation of the design, it is rather easier to work with the codes.
  • 5. Different approaches for converting PSD to HTML It is important to know what the options are before beginning the process to convert your Photoshop files into an HTML file. Ways to enable the conversion process:  Self coding  Automated tools  Getting help from a PSD conversion company This document will cover the process of self-coding.
  • 6. Beginning the conversion process We assume that you already have your design in the PSD format. Finalize the design before you start the conversion process. If you are designing the website for your client, then first get the approval of the design from your client before you start the conversions so that you don’t need to rework unnecessarily. PSD to HTML conversions can be time-consuming: plan well to avoid time wastage.
  • 7. Different components of your web pages  Logo: The logo is generally placed in the header of the webpage in most of the design layouts.  Header: It refers to the top portion of your web page. Depending on the layout, it could contain the company’s logo, tagline, flash animation, image, sliders and a navigation menu.  Body: The body of the website contains the textual content and user sign-in module if any. When you are converting the website design which you have created using Photoshop, you need to make sure that all of these components are placed in the appropriate positions without losing the design harmony of the page.
  • 8. Slicing In this step, the PSD file which you have created and made of several layers should be sliced. Slicing is the breaking up of a single large image to multiple small images. One of the benefits of using a sliced version of PSD in your HTML page is that it will help in faster loading of the pages. If the entire PSD file is kept a single PSD file then it will take plenty of time for the page to download. To slice your image, you can use the slicing tool available in Photoshop. There are four types of slicing options available in Photoshop for breaking your web page into small pieces: Normal Fixed Aspect Ratio Fixed Size Slices from Guides Once you have sliced the PSD file, make sure to save the sliced version using the option “Save for the Web”. Save these images in ‘images’ directory.
  • 9. Create required directories You need to create the required directories in your computer to proceed in an organized way: Main folder with website name Subfolder named ‘Images’ under the main folder. Here you will store all the images that you will be using for your website Subfolder named ‘Styles’ for the CSS file or for style sheets under the main folder
  • 10. Working with HTML page After you have created the required folders, now it is time to create your HTML page. You can use an HTML page builder such Adobe Dreamweaver or open source option like Amaya or Komposer. Create a new file in Dreamweaver and name it as index.html and then save it in your main folder. Next step is to create styles file. You can do this in an HTML editor and save the new file as styles.css in the CSS folder. In the style sheet, we will give all the information regarding the stylistic features of HTML web page like font size, font type, background color, the position of the images, margins and fieldset among others. The CSS style sheet should be linked to the HTML page.
  • 11. Building a set of website designs Now, we will take you through the entire process of getting from Photoshop to completed HTML. We will build a set of PSD files for a website which will become a WordPress theme.
  • 12. Step 1 – Ready the editor First of all, open the code editor of choice like Dreamweaver and set up a “Site”.
  • 13. Step 2 – Quick layout Now, we will construct a quick overall layout in HTML with some CSS just to make sure we have got a good foundation. We can also check it in major browsers like IE, Safari and Chrome. Browser compatibility issues should be sorted out now only.
  • 14. Ready the Mockup (pt. 1) In the first mockup, we should find: The design is centered, means we have to wrap it in a container and then center that container. The design is a series of horizontal blocks. Sometimes the blocks have two columns. We can do it in series. We have a footer which is in a different color. It means the background needs to be that color, if the user browser stretches. Hence, the footer will need to sit in a different container to the main stuff. Here is the HTML layout: <!doctype html> <html> <head> <meta charset="utf-8"> <title>Creatif</title> <link href="css/style.css" rel="stylesheet" type="text/css" media="all"> </head> <body> <div id="wrapper"> <div class="container"> <div id="header"> <img src=”images/logo.png”> <ul> <li><a href=”#”>menu1</a></li> <li><a href=”#”>menu2</a></li> <li><a href=”#”>menu3</a></li> </ul> </div> <div id="main"> <div id="section1"> <h2>What is Lorem Ipsum?</h2> <p>Section1 content</p> </div> <div id="section2"> <h2>Heading2</h2> <p>Section2 content</p>
  • 15. Ready the Mockup (pt. 2) You can see that there are two segments: the #main area and the #footer area. Inside each, we have a <div class=”container”> element which will be fixed width and centered. The main container includes a sequence of <div>. Now we will add CSS code as follows: </div> </div> <div id="footer"> Copyright2017,All rights reserved. </div> </div> </div> </body> </html> body{ Background-color:#0c80ab; } .container{ Width:950px; Margin:0 auto; } #header { background: #86c0d5; color: #000; text-align: center; font-size: 15px; </div> </div> <div id="footer"> Copyright2017,All rights reserved. </div> </div> </div> </body> </html>
  • 16. Ready the Mockup (pt. 3) Now we will add CSS code as follows: We have set the body’s background color as the light blue of the footer. Then the #main area has the lighter background. You can also see the .container elements have a width of 950px and are centred using margin:auto. body{ Background-color:#0c80ab; } .container{ Width:950px; Margin:0 auto; } #header { background: #86c0d5; color: #000; text-align: center; font-size: 15px; } /* ———————— MAIN CONTENT ————–*/ #header ul{ Float:right; } #header ul li{ Display:inline-block; List-style:none; } #header ul li a{ Display:inline-block; Color:#000; Font-size:15px; } main { Background-color:#6db3cd; Margin-top:50px; Padding:30px 0px; } #section1,#section2 { float: left; width: 100%; background: #b6d9e6; color: #000; font-size: 15px; text-align: left; padding: 20px; Margin-bottom:30px; } #section1 h2,#section2 h2{ Font-weight:bold; color: #000;
  • 17. Step 3 – Add some background images So our layout is now in shape. With main elements positioned, we can now style it up. First of all, we need some images. You can make these yourself if you have layered PSDs. Now, use a large background image. You can also create a background image for the footer. So you can now update the CSS file and add the new background images. The first thing to do is to create a directory structure and get ready to build like an /images/ directory and a /scripts/ directory and save all CSS and HTML in the root. Each time you want to get your PSD files converted, you should be careful of all the factors. Let quality be your watchword. If you make your decisions on this factor, then they will be the right ones. font-size: 20px; text-align: left; padding: 0 20px; } #section1 p,#section2 p{ Font-size:16px; Line-height:1.4; Color:#000; } #footer{ Background:#86c0d5; Color:#000; Text-align:center; Padding:60px;
  • 18. PSD to HTML Conversion