Useful CSS Code
| Category | : CSS | Views | : 10483 | ||
| Version | : 1.0 | Rating | : | ||
| 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.
![]() |
![]() |
![]() |
![]() |
![]() |







