SAMPLE Photoshop To HTML JeffreyWay
SAMPLE Photoshop To HTML JeffreyWay
com
Envato.com
An Introduction 6
What This Book Includes 7
What This Book Assumes 7
What This Book Does Not Assume 8
Tools of the Trade 8
Conclusion 140
This is what separates the amateurs from the pros. By the end of
this book, you’ll be a member of the latter.
Jeffrey Way
AN INTRODUCTION
Introduction
To access these files, please use the links provided on the last
page of this book.
HTML
<div id=“myDiv”>
…some text goes here
</div>
Introduction
CSS
#myDiv {
Width: 500px;
Margin: auto;
Background: red;
}
Komodo Edit
https://www.activestate.com/komodo_edit/downloads/
There are a variety of free code editors for both the Mac and PC.
A simple Google search will return several options. One that will
beautifully serve users of both platforms is Komodo Edit.
Introduction
https://addons.mozilla.org/en-US/firefox/addon/60
This nifty extension will allow you to edit your CSS inside of the
browser, disable JS, apply rulers, validate the HTML and CSS, to
name a few. It’s an essential tool that nearly all developers have
installed. You should as well.
IE Tester
http://www.my-debugbar.com/wiki/IETester/HomePage
BrowserShots.org
http://browsershots.org/
VMWare Fusion
http://www.vmware.com/products/fusion/
You should begin thinking this way when viewing every design. This
layout is essentially divided into three sections:
1. Header
2. Main Content
3. Footer
15 Coding The HTML
You’ll find that most sites will have a similar structure. Some might
have a few more columns, but in general, you’ll always find these
three components.
<div id=”container”>
...stuff
!
</div>
Next, add a few more divisions. Ignoring the specifics and focusing
solely on the wrapping elements, let’s add our three components:
<div id=”container”>
<div id=”header”>
header content goes here
</div>
<div id=”main”>
main body goes here
</div>
<div id=”footer”>
footer info goes here
</div>
</div>
16 Coding The HTML
The Markup
Let’s now take the process a step further. Within our #main div,
we’ll need to insert additional wrapping divs for the “What We Do”
section as well as the sidebar.
<div id=”container”>
<div id=”header”></div>
<div id=”main”>
<div id=”primaryContent”></div>
<div id=”secondaryContent”></div>
</div><!-- end main-->
</div><!--end continer-->
<div id=”footer”></div>
!
for the entire width of the user’s
browser window. This cannot be
accomplished when nested inside a
div with a stated width. Don’t worry
if this is confusing; we’ll discuss it more in later sections.
Header
Now that we have our basic structure, let’s begin fleshing out each
section. We’ll start with the header.