• Home
  • Free Tutorials
  • Free Video Tutorials

Adobe Photoshop
Autodesk 3ds Max
CSS
Flash
Help Center Live
iPhone
Joomla
Make Money Online!
Mambo
mIRC
Outlook Express
SEO / SEM
Simple Machine Forum
Target Explorer

Useful CSS Code

Category : CSS Views : 13276
Version : 1.0 Rating : 
2.6/5 (74 votes)
  • Currently 2.64/5
  • 1
  • 2
  • 3
  • 4
  • 5
Type : Text


Users who are first starting have issues with the coding of HTML / Style Sheets.
It is simple to use, lets say you have a standard <div> tag, you would normally have (if IE coding) something like this:
<div bgcolor=”#ffffff”></div>
Or
<div background=”image.gif”></div>

Most common errors are things such as bgcolor=”#colourcode”
This will not work, no bgcolor will.
The alternate code is:
style=”background-color:#colourcode;” is the way.

Here are some other codes:
background:img.gif   - background-image:url(bg.gif);
bgcolor=”#ffffff”    - background-color:#ffffff;
bordercolor="#ffffff"   - border-color:#FFFFFF;

Now I know what you are thinking, what is going on?
All I did was take style=”” and put the css code between the commas. You can have as many different css commands as you wish. Lets say we have a cell with a background image, and a border color! I know its getting tricky.... no its not.
style=”background-image:url(bg.gif); border-color:#ffffff;"

The biggest thing you MUST remember is to separate the commands with a ; symbol.
Now this is basic CSS work.

More cool tech articles from other blogs.

Place your ad here
Loading...



How to Video Tutorials on software by Helpvids.com



Sponsors





Abbotsford Web Design
Studio | Advertisement | About Webzo | Contact Webzo | Terms of Use | Free Video Tutorials by Helpivds

Copyright © 2007 NR Concepts Ltd. All rights reserved.