<!-- --><!-- --><style type="text/css">@import url(http://www.blogger.com/static/v1/v-css/navbar/697174003-classic.css); div.b-mobile {display:none;} </style> </head><body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener("load", function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <iframe src="http://www.blogger.com/navbar.g?targetBlogID=20981690469561729&amp;blogName=Neo-Faerie+Wings%3A+Your+source+for+hig...&a mp;publishMode=PUBLISH_MODE_BLOGSPOT&amp;navbarType=BLACK&amp;layoutType=CLASSIC&amp;searchRoot=http%3A%2F%2Fneo-faeriewings. blogspot.com%2Fsearch&amp;blogLocale=en_US&amp;homepageUrl=http%3A%2F%2Fneo-faeriewings.blogspot.com%2F" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" height="30px" width="100%" id="navbar-iframe" allowtransparency="true" title="Blogger Navigation and Search"></iframe> <div></div> Neo-Faerie Wings: Your source for high quality neopets graphics

Dec 17, 2010

Other Themes Pet Page and Site Layouts

All of these layouts have been tested on Firefox, Internet Explorer and Google Chrome. If you find anything wrong with the codes please don't hesitate to contact us about the matter and we'll be glad to resolve the problem!

1 2

BACK TO PET PAGE AND SITE LAYOUT INDEX

Labels: , , , ,

Jul 7, 2010

Simple CSS Pet Page and Site Layout

1 2

Labels: ,

May 14, 2010

Classes and IDs

As you probably know...divisions can have classes and id's. But what are classes and id's?

We classify our divisions into classes and/or id's if we want a certain attribute to be applied only on a specific part of the page. For example, if you want your menus to have a completely different link color from the rest of the page. Or if you want your headers to be of different font.

Q. But when do we use classes? And, when do we use id's?

A. We use classes when we have more than one element/attribute to be used in the same class. And we use id when we give a unique attribute to a single tag! Id's are usually used once per document as for classes, you can use them multiple times in your document!

Classes

For example I want the first row on my table to have this attributes:
  • tahoma font,
  • a font-size of 10,
  • I want my text to be bold,
  • I want my text to be centered,
  • the background should be black and the text should be white,
  • and i want my text to have a double white bottom border,

Hmmmm... let me see...so how will the code look like? Lets name this class tr1 for the first table row!

.tr1{font-family:tahoma; font-size:10; font-weight:bold; text-align:center; background-color:black; color:#ffffff;border-bottom: double #ffffff;}

Now, I want my second row to have the following attributes:

  • a comic sans ms font
  • a background color of lightblue
  • text should be on the left
  • text color should be red
  • a border around my text
  • there should be a padding of 3px;

Now the code for the second row would be:
.tr2 {font-family:comic sans ms; background-color:lightblue; text-align:left; color:red; border:1px solid #000000; padding:3px;}

My third row will be a lot simpler. I just want to have:

  • text on the right
  • text color of blue
  • and background of yellow

The code will look like this for our third row:
.tr3 {text-align:right; font-family: arial; color: blue; background-color: yellow;}

Now let's see how our table looks like when we put all the attributes together!

THIS IS THE FIRST ROW
THIS IS THE SECOND ROW
THIS IS THE THIRD ROW

The code we've placed on the table are as follows:
on the first row: <div class="tr1">THIS IS THE FIRST ROW</div>
on the secong row: <div class="tr2">THIS IS THE SECOND ROW</div>
and on the third row: <div class="tr3">THIS IS THE THIRD ROW</div>

ID's

Let's continue with our table....I want all links on the table to be in color red and purple when hovered! Let's name the id navcontainer!

The code will be:
#navcontainer ul
{
margin: 0;
padding: 0;
list-style-type: none;
}

#navcontainer li { margin: 0; }

#navcontainer a
{
color: red;
background-color: none;
text-decoration: none;
}

#navcontainer a:hover
{
background-color:none;
color: purple;
}

The code we need to add would be:
<div id="navcontainer">
(put your table code here! including links!)
</div>

So now our table will have to be like so if we placed the codes just before everything!

Notice how the links in the divisions are different from this LINK which is outside of the divisions!

Better Understanding

To better understand the difference of Classes and IDs, study the code of the table above:

Notice how often we used classes. We used it 3 times to apply our preferences. The ID on the other hand, can only be found at the beginning and end of the entire code. IDs are therefore used to set an attribute to the entire document while classes are used to set attributes to the different parts of the document!

Labels: , , ,

Basic CSS

Scrollbars

This code will help you change the color of your scrollbars to fit your weblayout. However, this can only be seen on IE and not on Mozilla! If you need ready coded scrollbars you can use the following below!

This is the code you need to place:

The code above will show a scrollbar similar to this:

To know which part is ... I placed unusual colors on the attributes which you can edit later!

scrollbar-face-color:red;
scrollbar-arrow-color:blue;
scrollbar-track-color:purple;
scrollbar-shadow-color:black;
scrollbar-highlight-color:yellow;
scrollbar-3dlight-color:green;
scrollbar-darkshadow-color:white;

Left Scrollbars by Alex

This is easy if you can code a normal scrollbar. All you need to do in this that you dont have in the other is put {direction:rtl; infront of ur scrollbar code

<style type="text/css">
body {
direction:rtl;
scrollbar-3dlight-color: COLOR/CODE;
scrollbar-arrow-color: COLOR/CODE;
scrollbar-base-color: COLOR/CODE;
scrollbar-darkshadow-color: COLOR/CODE;
scrollbar-face-color: COLOR/CODE;
scrollbar-highlight-color: COLOR/CODE;
scrollbar-shadow-color: COLOR/CODE;
scrollbar-track-color: COLOR/CODE;
}
</style>

Here are some scrollbar codes you can use. A link back is not necessary but will be greatly appreciated!

















Links

This is the code that will make you change your link colors!

In the code above we have a: link; a: visited; a: hover.
a:link - all attributes contained inside it's bracket shall be the "normal" look of a link in your page;
a:visited - all attributes contained inside it's bracket shall be the look of a link that has been clicked or visited;
a:hover - all attributes contained inside it's bracket shall be the look of a link when you hover your mouse on it.

Link Attributes

  1. color - this is the color of the link you want on its normal look, visited look and hovered look
  2. text-decoration - this is the look of your link...you can place underline or strike
  3. font-weight - if you want your link to be bold put bold, if not put normal.

There are other ways you can make your links look better like adding the following:

  • font-size: - you can put the size of the text on the a:hover bracket to change the font size once a visitor hovers his mouse on it.
  • background:url(image.gif) - if you want a background on your links once a visitor hovers on it you can place this code on the a:hover bracket.
  • background-color:#color - if you do not want an image but a color put this code instead
  • border:1px solid #000000 - if you want a strong border around your links when you hover on them you can place this on your a:hover bracket, if you do not want strong, you can place dashed, or dotted and you can change the border size too if you do not want 1px you can choose any number just be sure it looks good!
  • font-family: - if you want your links to have a different font

Just try playing around with your codes to discover more!

Fonts

Sure you can use basic html for fonts but the beauty of using css is that you place a fixed font attribute for the whole page so you wouldn't have to write <font color=#000000> all the time! Plus you are able to do more with fonts with css.

Place this code inside your <style type="css/text"> tag:

Font Attributes

  1. body - this simply mean that all attributes inside its brackets shall be applied to the whole body of the html document.
  2. color - the color you want your font to be
  3. font-size - the size of your font
  4. font-family - you can place the fonts you want for your webpage. We must note that if you place a font-family that a user does not have in his computer, that user will not be able to view your webpage with the same font you use...so it is adviced that you put not just one font-family but atleast two. You can separate the font- families with a comma.
  5. line-height - this will determine the closeness of lines in your page. The smaller the number the nearer your lines are gonna be.
  6. letter-spacing - this is the space between your letters.
  7. text-align - if you want all your text to be placed on the right side of your page put "right", if you want on the left put "left", and if you want centered put "center", or if you want it to be justified you can put "justify" so the page will look better!

Labels: , ,

Apr 30, 2010

Simple CSS Pet Page Layout

1 2

Labels: , , , , , ,