Home > Technology > Internet > Internet: Useful Tips

Beginner's Guide To CSS

Subject to Terms, Conditions & Disclaimer  |  Viewing problems?  |  Report problem
Upload a film & win a cash prize!
Related
Internet forums are either a brilliant community where you can meet and chat with new, interesting people, or full of scornful idiots who deserve to be banned from The Net in its entirety. This film explains some of the common mistakes people mak...
Behave On An Internet Forum
Views: 227,124
If your computer is crammed with porn, xxx material and pictures of naked women, youll probably want to get rid of them in case your other half stumbles on them and gets angry. This film will show you how.
Remove All Evidence Of Porn From Your Computer
Views: 35,782
Your IP address or Internet Protocol address is your computers unique identifier. Here is our quick guide on how to change your IP address when using Windows.
Change Your IP Address In Windows
Views: 4,206
In a free chatroom, whos really lurking behind that handle? What sort of depraved people are hiding behind the anonymity of The Internet? This film takes a look at some common screen names, and exposes whos really there (clue: its a man)
Free Chatrooms: How To Spot Freaks, Geeks And Dirty Old Men
Views: 12,124
If you want to take your Playstation 3 online, do a little online gaming against people in other countries and take full advantage of the Playstation Network, youll need to get your PS3 online. This video shows you how to do it wirelessly, so you...
Get Online Wirelessly On A PlayStation 3
NEW!
Stephen Fry (Author and Broadcaster) gives expert video advice on: Could you live without the internet? | What are your favourite sites? | What do you avoid on the internet? | How important is it that the knowledge on the web is free? and more...
Stephen Fry: The Internet
Views: 40,299
VideoJug user LeeLefever presents a video describing, in simple terms and format, the power of RSS and the RSS Reader.  Learn all you need to know about RSS and news feeds by watching this simple yet informative video.
RSS In Plain English
Views: 8,692
How to get more out of your internet, speed up your internet.
Juice Your Internet For More Speed
Views: 1,061
Stephen Fry (Author and Broadcaster) gives expert video advice on: What excites you about the way technology is evolving? and more...
Stephen Fry: Web 2.0
Views: 12,636
If you want to know what your Apple Macs IP or MAC addreess is -- thats the Internet Protocol or Physical Address -- this little film shows you how to find out.
Find Your IP And MAC Address On An Apple Mac
Views: 654
Tags:  
Internet: Useful Tips (34)
,
Create A Website (20)
Downloads: IPod IPod PSP PSP Mobile Cell Mobile/Cell 

Bookmark with:
Delicious Delicious Digg Digg Reddit Reddit Facebook Facebook Stumble Upon Stumble Upon

Print these details

Beginner's Guide To CSS

Learn what CSS is, and how it's used in web design. This film teaches you the very basics to give you a firm foundation to work from

CSS stands for “Cascading Style Sheets”. It's a way of ordering web files nicely so everything looks pretty. VideoJug.com uses css, so when you're watching “VideoJug's How to Make your Breasts look Bigger”, that's css doing all the clever organising in your peripheries.
If you've got a ‘style.css' file, you can set up ‘rules' for your other website documents.
For example you could, if you wanted, say “Everything with the tag <videojugisbrill></videojugisbrill> around it should be in big blue letters, underlined and with an image behind it”. And voila!
A .css file tends to go in the same directory as your other website files. In order for your other files to know it's there, and that they should be paying attention to it, you add this code into the <head> section:
<link rel="stylesheet" type="text/css" href="style.css" />

Your webpages will now pick up on all the info in your css file and use it accordingly.
Where hmtl has tags to define behaviour, your .css file has ‘selectors'.
body{
}
‘Body' therefore is a selector, and any style settings we define within those two curly braces will apply throughout the site.
Each of these bits of code needs a semi colon at the end to mark the end of the line... Let's look at some of the things we could use.
Font-family: Verdana;
This sets the font to Verdana, the classiest of all fonts. It's better to have a list, here, in case people don't have Verdana --the classiest of all fonts—installed. You can do that with commas:
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
That way if it can't find Verdana, it'll move on to the next one, and the next one, and so on, until it finds something it knows.
font-size: 12px;
Sets the font size. The bigger the number, the bigger the font.
You can also use .em, which is a bit more complicated. Instead of picking the size by pixels, it's done by space, so depending on the resolution your viewer's viewing your site in, it'll look right.
Font-weight: bold;
Makes it bold. ‘None' makes it normal. You could also use numbers between 100 and 900, which set relative thickness of the font.
Color: navy;
Sets the colour. You could use text for simple colours, like white or black or fuchsia. You can also use Hex codes, here. Hex is a string of numbers and letters which represent a colour. #000000 is black, and #FFFFFF is white. All the colours inbetween are represented by some sort of similar code – VideoJug yellow, for example, is #FFE502.
You can also set the background colour with:
Background-color: yellow;
or use Hex, as discussed before.
There's more to put in there, here's some for starters:
Letter-spacing: is the distance in pixels between your letters
Word-spacing: is the distance in pixels between your words
Text-align: which can be left, right, center or justify
Padding: how much of a buffer there is around your stuff
Margin: what the margins are like.
Those are the absolute basics. Here's how it's all put together:
In style.css

body {
font-family: arial, helvetica, sans-serif;
font-size: 80%;
color: black;
background-color: #ffffff; margin: 1em;
padding: 0;
}


h1 {
color: #ffc;
background-color: #900;
font-size: 2em;
margin: 0;
margin-bottom: 0.5em;
padding: 0.25em;
font-style: italic;
text-align: center;
letter-spacing: 0.5em;
border-bottom-style: solid;
border-bottom-width: 0.5em;
border-bottom-color: #c00;
}

h2 {
color: white;
background-color: #090;
font-size: 1.5em;
margin: 0;
padding: 0.1em;
padding-left: 1em;
}

li {
color: #900;
font-style: italic;
}


Then in your .html file:
<html>

<head>
<link rel="stylesheet" type="text/css" href="style.css" />


<title>VideoJug: Life Explained. On Film.</title>


</head>

<body>

<h1>VideoJug version 1.138</h1>

<h2>Hello, and welcome to VideoJug.</h2>
<p>We make brilliant, brilliant films.</p>

<h2>Especially the ones about code!</h2>
<ul>

<li>Just because the guys up the other end of the office are working on “How to make your Breasts look Bigger” is no reason to be jealous.</li>
</ul>

<h2>Code can be fun too!</h2>
<p>Exactly! I mean, can they do this? (.)(.)</p>

<h2>Oh man, look at those puppies!</h2>
<p>Precisely. ASCII porn is the best porn.</p>


</body>

</html>
Done!

Print these details

Also known as:

Suggest other titles for this film
Email a friend Email a friend
Add to favorites Add to favorites
Rate this Film:
Click stars to rate this film
Views: 2287
8 ratings

Subscribe to RSS feed Comments:

Order by: 
Vote for Vote against Report this
Anonymous  (129 days ago)

good introduction to css!

Previous 1 Next
Page 1 of 1
 
Add your comment Add your comment in the box:
Please keep your comments relevant and respect other users.
Ask me to sign up or log in (so my username appears next to my comment)
Submit

All Related Content:

Internet:
All About Emailing
Fantasy Sports
Podcasting
VoIP: Voice Over Internet Protocol
Create A Website
Internet: Get Connected
Shopping Online
Downloading
Internet: Useful Tips
Social Networking
Technology:
All About Emailing
Downloading
Mac OS: Programs & Tips
Video Games
Cell Phones, PDAs & iPhones
Gadgets & Home Entertainment
Make Your Own Movie
Viruses, Hackers & Spam
Computers
Internet
PC: Programs & Tips
Create A Website
Inventions
Social Networking
Digital Photography
iPods, Zunes & MP3 Players
Text Messaging
All Channels:
Beauty & Style
Health
Modern Manners
Self-Help
Cars
Jobs & Careers
Money & Wealth
Sports & Fitness
DIY & Home
Legal
Parenting
Technology
Education
Leisure & Hobbies
Pets
Travel
Environment
Love & Sex
Real Estate
Food & Drink
Made By You
Safety & Survival
Home
  • Most Viewed in Technology & Gadgets

    • 1
      Behave On An Internet Forum
    • 2
      Photograph A Nude Woman
    • 3
      The Top 5 Laziest Inventions
    • 4
      Get Video Onto Your iPod
    • 5
      Make A Burning Laser Flashlight!
    • 6
      Save YouTube Videos
    • 7
      Halo 3: Tips And Tricks
    • 8
      Hack A 12 Volt Battery!
    • 9
      Photography: The Rules Of Composition
    • 10
      Outplay Your Kids In Video Games
  • Other Stuff

    • 1
      Exercise Your Shoulders Without Using Weights
    • 2
      Give A Goodnight Kiss
    • 3
      Be A Good Neighbour
    • 4
      Make Triple-Cooked French Fries
    • 5
      Reduce Cellulite
    • 6
      Yoga: Bharadvaja's Twist
    • 7
      Read A Wine Label
    • 8
      Make Roast Vegetable Salad
    • 9
      Cure Bad Breath
    • 10
      How To Eat Sushi
 
Discussion Forums
Start a Discussion   
 
About the forums   
Recent Discussions
  • 1
    Chicken Kebabs I Make Them Alot But Only Tend 2 Use Cajun Or Jaimacan Jerk.any1 Got Any Better Wider 22 days ago    0 Response
  • 2
    I Think Someone May Of Used My Name 23 days ago    2 Responses
  • 3
    Different Between Using A Server And ISDN 95 days ago    1 Response
  • 4
    Stephen Fry: The Thinking Woman's Christopher Biggins? 157 days ago    0 Response
  • 5
    Stephen Fry Appeared In Which Harry Potter Film? As What Role? 293 days ago    2 Responses
Made by You
Juice Your Internet For More Speed
Juice Your Internet For More Speed
Made By: brianup123456
Rating:
Views: 1,061
RSS In Plain English
RSS In Plain English
Made By: leelefever
Rating:
Views: 8,692
Popular Tags
All About Emailing Digital Cameras: Buyer's Guide Digital Cameras: User's Guide Gadgets Halo 3 Internet: Useful Tips Inventions iPhones iPods: Photo and Video Microsoft Outlook Photographer Skype, MSN & More Social Networking Video Game Consoles Video Games
VideoJug
Help | About Us | Widgets | Advertise | Corporate video production | Terms & Disclaimer | Privacy Policy | Contact Us
Copyright © 2006-2008 VideoJug Corporation Limited
home
Edition: US
My Jug | Upload | Login | Sign Up!
Home  |  Discussions  |  Help
Food & Drink Love & Sex Beauty & Style Sports & Fitness   Health   Leisure & Hobbies Technology DIY & Home   Pets   Parenting Made By You
 More
  • Cars
  • Education
  • Environment
  • Jobs & Careers
  • Legal
  • Modern Manners
  • Money & Wealth
  • Real Estate
  • Safety & Survival
  • Self-Help
  • Travel
cached: 17/05/2008 09:41:25