CSS!
learn * it
Introduction
For most people, css is a foreign language and is quite a challenge to understand. And just when you almost understand it, a whole new set of filters appears! What to do, what to do? Here is a guide to help you better understand css, especially with all these new filters.
What is CSS?
CSS is an abreviation for Cascading Style Sheets. These Cascading Style Sheets are tools for decorating & customizing the look of your webpage. It is much more convenient than HTML (hypertext markup language). At first this may not seem true, but once you start getting the hang of CSS it will become more apparent.
The Basics
style tags
It is neccesary to include a style tag at the beggining of your css or else it will not work! You will place this at the beggining and end of your document:
Body Text
Now i will teach you to customize the look of your normal body text. The body text is the text that you are reading right now.Inside of the style tags, first you insert the base of your body text css:
Edit the "FONT FAMILY HERE", "FONT SIZE HERE" and "FONT COLOR HERE" as you wish. For example, if i wanted my font to be Times New Roman, Red, and size 24 then it would look like this:
Hyperlinks, Bold, Underline, etc
This works exactly like the Body Text but the selectors at the beggining change. If you want to customize hyperlinks then you the code above but replace:with:
And you can customize bold, underline and italic fonts by doing the exact same thing only replace the selectors! For Bold fonts the selector is b. For Underlined fonts the selector is u. And for italicized fonts the selector is i.
All together now
Lets put together all the css you have learned so far. It should look something like this:Divs/Tables
Some people prefer tables and some prefer div's. For the most part I prefer div's but I will be teaching you a bit of each. Inside the style tags you must place the following code:Then, in the main body of your document, where you want your div to be, you must place:
your text will go here
your text will go here
your text will go here
your text will go here
your text will go here
your text will go here
your text will go here
your text will go here
your text will go here
Decorations
Decoration pretty much speaks for itself. Here is a list of codes you may use to decorate your text, tables, div's, whatever! These will go inside the {}'s for each selector. You can use these for just about anything!
Borders:
Backgrounds:
One Color:
Non-repeated Image:
Repeated Image:
Text Properties
Transformation:Alignment:
Letter Spacing:
Filters
These filters will help get rid of things on pages that you don't want. These are really helpful for neopets lookups, guilds, and petpages.How do they work?
Filters can be very hard to understand and manipulate. First, you start with the base code, i'll use "header" as an example selector:Then you change the selector depending on what you want to filter out. For example, these are the filters that i used for my current userlookup:
If you view source your own userlookup and look at the class of the tables or divs that will tell you what to make the selector in order to filter it out. For instance, when i view sourced my userlookup one part of the code looked like this:
I didnt want that div to show up on my userlookup so i added #usercollections to the filter selectors in order to filter it out. Make sense?
List of Filters/Removal Codes
I know how hard filters/removal codes can be to understand so here is a list of filters.Petpage Top-banner:
Petpage Copyright:
In Action
Sometimes its a lot easier to learn css if you start with a base code and manipulate it from there. That is why i am willing to give you the basic coding that i used on my current userlookup. If you use this base code you MUST leave credit.Base code:
Credit
what belongs to who?
css by Kendall
NEOPETS, characters, logos, names and all related indicia
are trademarks of Neopets, Inc., © 1999-2009.
® denotes Reg. US Pat. & TM Office.
All rights reserved.
PRIVACY POLICY | Safety Tips | Contact Us | About Us | Press Kit
Use of this site signifies your acceptance of the Terms and Conditions