Basic CSS primer… Written entirely on my iPod!

Ok, quick CSS primer, from an amateur to you. CSS=Cascading Style Sheets. Basically, it tells your computer how to display stuff on websites. Here’s a quick example of CSS that will position a block of text (HTML code) on the right side of the page, with a nice 5 pixel margin around it. The background will be grey with a solid black outline, and the text will be a garish shade of purple (just for fun). Here goes:

(hashmark)blockoftext

{

float:right;

margin:5px;

background:grey;

outline:solid black;

color:purple;

}

/This means that this is a comment, the computer (web browser to be precise) will ignore it/ (<— not supposed to be italic… Instead, forward slash asterisk, then the opposite… Thanks Tumblr. Not.)

To style a block of text in a webpage with this CSS, simply type:

< div id=”blockoftext” > Type randome jibberish here… Lorem ipsum dolor… Mawadge is what bwings us togevah today. Mawadge that bwessed awvangement, that dveam, wivvin a dveam… You are marvelous! I’ve worked hard to become so… To infinity, and BEYOND!!!… Etc, etc. < /div >

That’s basically how it works. Now, there are more techniques, much more indepth and pretty ways to do it, but… Just a quick primer, eh? Hope you enjoyed it!!!

EDIT: Tumblr likes to mess with formatting, as well as to take my specifically formatted text and screw with it… Sorry about that folks. I think I’ve fixed things as well as I can!

I'm usually known as Jesse, or Izzy.

I laugh.
I write.
I sing.
I eat.
I love.
I act.
I geek.

Anything else you need to know, just look at my website and read my posts.

twitter.com/dreadpirate15

view archive



My Website

Ask me anything