Preview
Download

Secret Service Wars
Want to Advertise here? Contact Us


Home
Forums
Awards for You
Winners
Awards Won
About Us
Past Layouts
Past Updates


Site Rules
Site FAQ
Site Staff
Credits
Link to Us
Link Exchange
Linkage
Affiliation


Latest Contest
Previous Contest
Contest Winners
Mini Contests
General Rules


100x100 Icons
64x64 Icons
70x70 Icons
AIM Icons
Archived Icons


Signatures
Buttons
Banners
Wallpapers
Enter Signs
Hiatus Signs
LJ Headers
Friends Only Banners


Div Layer
Tables
iFrames
PopUp


Brushes
Extractions
Vectors
Icon Bases
Icon Creator


HTML Tutorials
CSS Turoials
Let's Make a Layout
Graphics Tutorials
Do's and Don'ts











Bassman Themes

Let's Make a Layout

When I FIRST started making layouts I didn't touch CSS, I didn't know what it meant let alone how to use it. I use those damned page builders that did everything for me. Now... there isn't a layout that goes out that doesn't include CSS. It's a handy tool that's simple to use, and can make a website move from "Meh...alright" to "WOW!"
CSS could be used to nearly code the ENTIRE layout. (As we're using it right now xD)
In this tutorial we're getting pretty damn close with it defining everything for us as we use it to define the table's cells and some general characteristics with this page!

As you noticed back in the first few parts we decided to link to various outside style sheet, we've already created one of those style sheets, style.css if you don't have this open already, open it up in notepad we're going to add to it.
We've already used the CSS to define the shape, and background of our table, now we're going to use it to define our pages. The index page will go first.

This page links to the style.css, in this instance there isn't text on this page, and the only thing we really need to do with the css is set the background color, and scrollbar to vanish. For this layout a white background will work, and we're going to make the scrollbar near invisible. We're not going to bother setting the link properties or text ones, there isn't any text on the page anyway =P

So at the top of the style.css file let's create a blank line and add this:
body {
}

Again I'm going to stress spacing. When you space correctly you can read your tags and code easier. It makes things lovely.
In our body we want to change the scrollbars, and ensure that the background stays white. (Sometimes people play with their browser settings, we want to always be sure things are set the way that we want them.)
So we'll start with the background as it's the 'easiest' of the two. To our code we want to add background: #FFFFFF;
So we have this now:

body {
background: #FFFFFF;
}

Next is the Scrollbars for the page.
I've never been one to really learn what each piece does in the scrollbars properties, I tend to fiddle until I get what I like. It's something I'd recomend doing - though if you care to learn a little about it I can tell you this much, the dark shadow is the outer line, the shadow is the inner line. The highlight is the inner line and the 3dlight is the outer line. The face is the color of the top of the bar and inside the box where the arrow's are. The track is the color that is against the page, and the arrow is as it states, the arrow color.
These are the properties and the color is all set to white, the background of the page is white, so we're just going to make it all white, so on IE it doesn't show up. Remember changing the scrollbar only works in IE. If you're a firefox user you can just skip this.

scrollbar-DarkShadow-Color:#FFFFFF;
scrollbar-Track-Color:#FFFFFF;
scrollbar-Face-Color:#FFFFFF;
scrollbar-Shadow-Color: #FFFFFF;
scrollbar-3dLight-Color: #FFFFFF;
scrollbar-Highlight-Color: #FFFFFF;
scrollbar-Arrow-Color: #FFFFFF;

And there we go, no scrollbar. We're done with the style.css you can save it and close it. If you want, refresh your page and you can see... or well not see any changes, but they're there!

Now we need to create the stylemain.css and the stylelink.css so let's start with stylemain.css
Open up a blank notepad page and save it as stylemain.css Now we're going to be changing a lot of things here, including the background, scrollbars, font and link properties.
We won't alter the margins as they're fine the way they are in this case.

So let's start with our body again at the top of the page add:
body {
}

Now in between the { and } make a new line and add in the background tag background:
For this purpose we're going to want to set a background image, color and we want the background to be fixed, so that it doesn't scroll and destroy the look of the layout. The image is located in our images folder and we called it main.jpg (If you don't understand this you need to go back to css 101) We're going to use the transparent color we picked in the background. I used #76CBAE so that's what I'll set there.
background: url('images/main.jpg') #76CBAE fixed;
This way if the background doesn't show up I'll have the nice aqua there.

Next let's change the scrollbar properties. In this instance I want to use the transparent color for the track, once we finish setting up the transparency properly IE users will be able to see the layout there instead of a solid color on the track. Other than that I'm going to pick colors that go with the layout.55AE8F

scrollbar-DarkShadow-Color:#000000;
scrollbar-Track-Color:#76CBAE;
scrollbar-Face-Color:#55AE8F;
scrollbar-Shadow-Color: #55AE8F;
scrollbar-3dLight-Color: #000000;
scrollbar-Highlight-Color: #55AE8F;
scrollbar-Arrow-Color: #000000;

The only way to really see if you like what you have is to test it. However, we can't see it right now, because there is no text on the page, forcing a scrollbar.
Open in notepad main.html and add text (If you don't know how to do this, go back to HTML 101) Add enough line breaks and text to force a scroll. So you can see your bar.
Play with it till you get what you like, once you do come back to this and we'll continue with changing the other properties. And yes, I'm aware the transparency doesn't work for IE either yet... we'll come back to it I promise <3

Alright so we have the scrollbars and the background, but you likely noticed the black text doesn't show up and it's kind of big. So let's fix that.
Starting with size enter down to a new line and add
font-size: 11px;
This will shrink our font to something more desirable.

In HTML we tend to make our fonts larger or smaller by going <font size=+3>This however is BAD practice. It's better to set the font in the CSS and use that as only a highlighting measure, and even then don't use it. It'll not really aid your design any. But of course this is your choice. HTML uses smaller numbers where as CSS uses pixels... and thus the number is larger. Keep in mind people like me are getting old and size 8px font is NOT a font to be used on a website. Size 11px or 12px is small enough. For this design I recommend 11px.

Now we want to change the font color enter down to a new line and add
color: #FFFFFF;
I'm trying white out, fidle with it and find a color that looks good and is LEGIBLE. If we have to highlight to read your text we're not sticking around, it's that simple.

Alright, now the default face for font is Times New Roman, I personally can't stand that font, I much perfer Verdana, so I'm going to change mine to verdana. Keep this in mind when changing the type, NOT EVERYONE has the same fonts. I have a font called Ringbearer FT, and while it's pretty and all if you don't have it you'll see either boxes or Times New Roman depending on how your computer is set up to handle it. Stick to the basics that 99% of people have, Times New Roman, Verdana, Comic Sans Ms, Arial, Courier New...
Anyway back to changing it to Verdana
font-family: Verdana;

Also you can set more than one font, so that if the person does not have the primary choice it'll go to the secondary. For me I'm going to add in Arial and Comic Sans MS.
font-family: Verdana, Arial, Comic Sans MS;

There we are, the Body is all set up exactly how we want it. It's time to change the links, because everyone likes fancy links.
I mean some like really fancy (javascript) but honestly when a link has a load time I think that's just annoying and prevents people from really enjoying the page. Personal opinion though. And it's not nearly as annoying as the underlines. Dear lord I hate underlines on links. IT just doesn't look good. But once again just me... anyway on with it.
Links have four 'commands' Link, Active, Visited, Hover. HTML can modify the colors of Link, active and visited, but it can not manage the colors of the hover. Besides CSS just does it better and gives you more options.
We're going to stick to a simple color change, line remove/add and pretty hover effect (More on Link properties can be found in CSS 101)

Most often people decide to have the visited, active and regular link properties the same throughout the file. At which point we can combine the different properties so as not to type the same thing out. We'll start by showing you what it looks like seperate and then what it looks like combined.

This is them seperate:

A:link {
}

A:active {
}

A:visited {
}

This is them all together:

A:link, A:active, A:visited {
}

The reason you would want them all seperate is if you decided that the links would look different after they had been visited or that they would look different when they are clicked. The properties for them are all the same, and so for the purpose of this design we want the link, active and visited to all remain the same.
The first thing we're going to do is change the color of the link. The bright blue which is the default for a link will not match our layout. So our link color will be silver. (The HEX Code for white is C0C0C0)

A:link, A:active, A:visited {
color: #FFFFFF;
}

Now instead of being the standard blue color the links will be the color I've chosen. The next part is to add the type of text decoration that is desired.
By default links are underlined. Personally I don't like underlined, I like "none". (For types of text decorations see CSS 101)

A:link, A:active, A:visited {
color: #FFFFFF;
text-decoration: none;
}

By setting the text-decoration to none there will be no lines anywhere on the link it'll just be like it was normal text, but a different color so it still stands out.
Some people find they don't like the underline, but they still want the link to stand out by more than just color, we're going to accomplish this by changing the letter spacing.

A:link, A:active, A:visited {
color: #FFFFFF;
text-decoration: none;
letter-spacing: 2px;
}

This will space the letters apart more and make the links stand out. You can change the pixels to your tastes but keep in mind the size of the area you're working with and the overall appearance. I would not recommend ANYTHING higher than Five for anytype of letter or word spacing.
There are other properties you can add to your links such as you can make them italics, bolded, you can change the word spacing, change the font type and size of them. We're however not doing that =P

The next step is to add our hover.

A:hover {
}

Hover is completely optional but will allow a user to see it's a link because it's not dull or flat, it moves and adds an overall elegant feel to the site. (Dynamic w00t w00t)
A few hints and tips of GOOD WEBDESIGN. Do not make a hover where the text grows, if you do this your LAYOUT WILL MOVE if your layout moves it becomes difficult to click the link the visitor will become annoyed and no longer take the time to view the website. If your links are 12px don't make the hover 14px it'll only make the webpage move. However you must learn this on your own.
For the purpose of this layout we will be adding a different color to the hover, a text-decoration of an underline as well as ensuring our letter spacing is consistant with the rest at 2px.
First is the color.

A:hover {
color: #000000;
}

The #000000 color is the HEX code for black that I've chosen to use for this portion of the layout. You can change it to many different things. Some people like to make the link almost invisible. Some like to make it completely disappear, play with it.
The next part is to add in our text decoration.

A:hover {
color: #D4CCFF;
text-decoration: underline;
}

When you're adding a text decoration, you do not place comma's to seperate what each part is. If you want only an underline, just don't include the overline part, or overline alone, or perhaps you still want it to be none, then you type none.
Our last part is the letter spacing. We want to be sure the letter spacing isn't going to size down on us.

A:hover {
color: #D4CCFF;
text-decoration: underline;
letter-spacing: 2px;
}

So we set the letter-spacing back to 2px... you CAN change this, but like I said bad design because your layout will move with the links. Your choice however.

And we're done! Well we're done the stylemain.css we still have to do the stylelinks.css the big change there will be the background, so let's open up a new notepad and save this one as stylelinks.css the fastest way we can do this (As I'm sure this has been long enough already) is to copy and paste from stylemain to stylelinks all we're going to need to change is the background: url('images/main.jpg') #76CBAE fixed; so that it says background: url('images/links.jpg') #76CBAE fixed; instead. (Proper background)

So we're done then... oh right, we need to make that transparency work...

Go back to style.css (Open it in notepad) What we're going to need to do is change the td.linkframe and td.mainframe properties by adding in a background.
So find in style.css the code
td.linkframe{
width: 127px;
height: 281px;
vertical-align: top;
}

And what you want to add to it this background: url('images/links.jpg') no-repeat;
The images folder is where our links.jpg is located and we don't want this image to repeat. We don't need the fixed in here because it won't scroll (We have a background on main.html to stop that xD)

Now in style.css find
td.mainframe{
width: 461px;
height: 325px;
vertical-align: top;
}

And you want to add this background: url('images/main.jpg') no-repeat;
The images folder is where our main.jpg is located and we don't want this image to repeat. We don't need the fixed in here because it won't scroll.

Save style.css and preview in your webbrowser. Everything should be peachy keen now! <3

Finally head over to Final Touches

Let's Make a Layout(iFrames!) Part One :: Getting Started
Let's Make a Layout(iFrames!) Part Two :: Tables
Let's Make a Layout(iFrames!) Part Three :: iframes
Let's Make a Layout(iFrames!) Part Four :: CSS
Let's Make a Layout(iFrames!) Part Five :: Final Touches.