|
CSS in Webpages
There are 3 ways to add CSS into your web pages:
- External Style Sheets
- Internet Style Sheets
- Style Tags
External Style Sheets
These are style sheets saved as .css (or sometimes .htm).
You then link these into your site by:
<LINK href="global.css" type=text/css
rel=stylesheet>
This style sheet is then included in your page when its in
the browser.
Internet Style Sheets
This used a style tag, as you may have seen in serveral tutorials.
Here is one we have for image rollovers:
<Style>
<!-- A {text-decoration: none}
A:hover {text-decoration: underline; color: #0DC450} -->
</Style>
They are seperate from everything else but are included in
your webpage.
Style Tags
These are included inside your actual element. For instance
if you wanted to change the border, of just one table, you
could use the following code:
style='BORDER-BOTTOM: #84B953 1px solid'
This would just be included in the actual tag of your HTML
element. Eg:
<table style='BORDER-BOTTOM: #84B953 1px
solid'>...</table>
|