Home page » Web help » Myspace code help » CCS, CSS classes

CCS, CSS classes

CSS, CSS classesGive it some nice background images to things you never thought you could give a background image to. Customize the colors of everything, and make your websites look like they are everything and more. There are some differences in how Internet Explorers views webpages verus Firefox, Opera, and Safari. Internet Explorer tends to slack on most of the updated CSS standards.

On a site like myspace, you have toen code all of you style sheet into one page rather then a different page. Most websites (including this one) use a tag to import a style sheet into the design. Since Myspace has blocked the tag, you will have to use your style tags to do this.

The style sheets that you need to create for any website are based on a "Selector {property: value;}" technique. Theres no ifs ands or buts forthat, thats just how it is. The Selector is what you're going to be modifing, the html tag you will be modifing if I must say. So if you would like to change something that deals with an element that is bolded, you would put b for the Selector. Then the Property is what you're applying to it, so if you want to change the color of your bolded text you would have b {color:;] so far. And finally the value is exactly what you want to happen to that, so to change the color of your bolded text completely to red, you would put b {color:red;}. Now theres a HUGE list of what you could put for your properties and values, and you can see some of them located on the CSS Elements below.

Classes are what we have to use for customzing a myspace profile, theres already a bunch of class's within a regular myspace page, and thats how we're able to customize so much of it without any extra html within your page. Heres a few of myspace's class's that they've used.
For your display name on your page, they put it in a span tag with a class set to it like so - Your Namethe class="nametext" within that line is the class that is set to it, so since they put a class there you're able to totally change how your name would look on your page by using the selector {property:value;} code as mentioned above. One thing to remember about classes though, isyou always need a period before the name of the class (otherwise knownas the selector), so to make your display name red you would put thisin your style sheet .nametext {color:red;} easy enough huh?



Comments

No comments yet. Be first!

Your comment:
Name*:
Comment*:
(refresh this page if you can't read exact code above)
Security code*:
* - compulsory fields !


Friends