PREPPY LAYOUT CODING TUTORIAL
This is a tutorial for a preppy layout. This is NOT for collage layouts.In this tutorial, you'll be not only coding a layout, but splitting it into header, footer, style.css, and index pages for using php includes. This is how stylesheets are split too. This will save you time in the end.
CLICK HERE to learn more about php includes (it's a php includes tutorial of mine) if you don't already know about them than it might confuse you at first. They are amazing.
This tutorial should all make sense by the end. Try not to give up cause this sh!t isn't easy at first and it takes time and patience.
CLICK HERE for the finished layout. You can use this as a visual reference as you go.
THE STEPS: STYLE.CSS
1. Create a file called style.css This page will have the styling (like h1, affies, elites, so on) of your coding in it and the placement of your sections (header, content section, sidebar, footer, so on)Start putting in each piece of coding I give you below. I will explain each piece too!
----------- We will start out with the main body of your layout. -------------------
background:url(URLGOESHERE);
background-color: #;
font-family: arial;
font-size: 9px;
color: #747373;
background-repeat: repeat !important;
background-attachment: fixed;
}
------------- This is the container of your layout. This is the ENTIRE layout section, not just the individual pieces like the content and sidebar sections. { click here for example of container } ------------
position: relative;
margin: 5px auto 5px auto;
width: 699px;
padding: 3px;
background-color:#e9e9e9;
border: 1px solid #ddd;
overflow: hidden;
}
- top margin: the first number is the space around the top (mine is 5px)
- right margin: the second number is the space around the right. Mine is set to auto so that it automatically calculates the space for all computers since all computer screens are different sizes. I suggest keeping yours at auto too.
- bottom margin: the third number is the space around the bottom (mine is 5px, same as my top)
- left margin: the last number is the space around the left. Again, mine is set to auto.
-------------- Now we're on to the header part of the coding. { click here for example of header } ---------
margin: 2px;
background-image: url(URLGOESHERE) ;
border:1px solid #d3d3d3;
width: 690px;
height: 200px;
}
---------- Now we're on to the sidebar section of the layout { click here for example of sidebar } -----------
float: left;
width: 190px;
padding:5px;
margin:4px 0px;
background-color:#f0f0f0;
}
---------- Now we're on to the content section of the layout { click here for example of content section } -----------
float: right;
width: 475px;
padding:5px;
margin:4px;
background-color:#f0f0f0;
}
---------- Now we're on to the footer section of the layout { click here for example of footer section } -----------
clear:both;
background-color:#e9e9e9;
border-top:1px solid #d3d3d3;
text-align:center;
padding:5px;
}
♥------------------------------------------------------♥
CLICK HERE for PART TWO of this tutorial
♥------------------------------------------------------♥
✿ Owner: Kayla