Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to: Implementing a PSD Template
#1
What you want to first do, is save each individual image and upload them to your site.
The CSS
1. Background
Code:
body
{
background-image:url('http://wwwurltobackground.png');
background-repeat:repeat x,y;

Background-repeat:repeat x,y; will repeat the image you have up and down throughout your website.
X will repeat up
Y will repeat down
no-repeat will not repeat the background.


2. Alignment
Code:
position:absolute;
left: x ;
top:  x;
  width: x;
  height: x;

Move Left - Use a negative value for left.
Move Right - Use a positive value for left.
Move Up - Use a negative value for top.
Move Down - Use a positive value for top.
Width is explanatory, as is height.
(replace X with the numbers you want.)

B. The HTML
1. Using <div> Tags
Code:
<div id="insert section name">Content</div>
The <div></div> tags define the part of the website you are going to call in the CSS.

For example
Code:
#insert section name{
background-image:url('http://www.contentimage.com/contentbackground.png');
position:absolute;
left: 350;
top: 130;
  width: 676;
  height: 458;
What we did was call the section using #name of div. And then aligned it using the Left, Top, Width, and Height attributes. You can find a list and examples of attributes
Here


Final Product:
index.html (Click to View)
What we did here was use CSS to align the content box, and to make the text italicized. We also called a background using CSS.
[Image: pineapple.gif]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  My First ACTUAL Website Template biasa199 23 4,864 05-11-2012, 11:33 AM
Last Post: Diabolic
  [Free Template] HTML / CSS Basic Page Jordan L. 16 2,949 01-17-2011, 03:53 AM
Last Post: Hollow™
  PSD to xHTML itylernallen 7 1,860 10-19-2010, 11:36 PM
Last Post: AceInfinity
  Help with creating my side from .PSD!!! iLegendary 2 1,006 12-13-2009, 02:01 AM
Last Post: iLegendary
  Joomla Template R3c0nna1ssanc3 8 2,458 10-21-2009, 05:54 PM
Last Post: R3c0nna1ssanc3

Forum Jump:


Users browsing this thread: 1 Guest(s)