Useful CSS Code
| Category | : CSS | Views | : 5429 | ||
| 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.
![]() |
![]() |
![]() |
![]() |
![]() |
Supporters
Reseller Web HostingDo you need barcode printers for your home or office? If you are in need of symbol scanner or zebra label printer for all of your barcode needs, where are you going to turn? To us, of course! Our website has the biggest selection of barcode scanners and printers at the most afforadable prices. No matter what barcode scanner or printer you need, we are sure to have it in stock!




