CSS stands for Cascading Style Sheet.
CSS can set the look of every page on your website.
You can control the font color, font size, background image, background color, link colors, lists, tables, borders, padding, margins, navigation bars, alignment, etc, ALL from one style sheet.
It saves a lot of work.
Below is an Example of the style sheet code.
Where it says Code Here is where you place ALL the codes
to control the look of your website from one style sheet.
CSS Style Sheet for Links
CSS Style Sheet Example for Links, change colors to whatever colors you want. Place the style code in the head section of your page, and the links in the body section of your page.
a:link {background-color:#3333CC;}
a:visited {background-color:#FFCC33;}
a:hover {background-color:#FF3300;}
a:active {background-color:#3399FF;}
Style Code
Links
Here is a great HTML Color Chart
a:link {background-color:#3333CC;}
a:visited {background-color:#FFCC33;}
a:hover {background-color:#FF3300;}
a:active {background-color:#3399FF;}
Style Code
Links
Here is a great HTML Color Chart
Scroll Box
Scroll Down for Horizontal Photo Scroll Box








Content Here, could be text, photos, etc... Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content
How to Display Raw HTML on Web Page
To display raw html code on a web page, it is best to test on different browsers.
For Internet explorer some characters need to be encoded to their HTML entities.
I use an HTML Encoder on http://www.web2generators.com/
For Internet explorer some characters need to be encoded to their HTML entities.
I use an HTML Encoder on http://www.web2generators.com/
HTML Lists
HTML Lists
(Scroll Down for more List Examples)
Below is a One Column Unordered List
<ul style="list-style: none; "> <li>Item 1</li> <li>Item 2 </li> <li>Item 3 </li> </ul>
Below is an Unordered list without using list-style: none.
If you do not use list-style: none, you will get bullets in front of each item.
<ul> <li>Item 1</li> <li>Item 2 </li> <li>Item 3 </li> </ul>
Below is a 2 Column Unordered List using Divs
Below is a One Column Ordered List using ol instead of ul, which numbers your list items
(Scroll Down for more List Examples)
Below is a One Column Unordered List
- Item 1
- Item 2
- Item 3
<ul style="list-style: none; "> <li>Item 1</li> <li>Item 2 </li> <li>Item 3 </li> </ul>
Below is an Unordered list without using list-style: none.
If you do not use list-style: none, you will get bullets in front of each item.
- Item 1
- Item 2
- Item 3
<ul> <li>Item 1</li> <li>Item 2 </li> <li>Item 3 </li> </ul>
Below is a 2 Column Unordered List using Divs
- Left Item 1
- Left Item 2
- Left Item 3
- Left Item 4
- Left Item 5
- Right Item 1
- Right Item 2
- Right Item 3
- Right Item 4
- Right Item 5
Below is a One Column Ordered List using ol instead of ul, which numbers your list items
- Item 1
- Item 2
- Item 3
Align Table Content
Align Content
To align the whole table: <table align="center">rest of table code</table>
To align content in a column cell<td align="left">text</td>
You can also align with a paragraph:<td><P align="right">text</p></td>
To align the whole table: <table align="center">rest of table code</table>
To align content in a column cell<td align="left">text</td>
You can also align with a paragraph:<td><P align="right">text</p></td>
Subscribe to:
Posts (Atom)