<style type="text/css">
<!--
.my_style {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 10px;
	color: #000033;
}
-->
</style>

DIV vs SPAN

DIV’s cause a new line.  To change the stule of text min line use SPAN

Using Div’s Without A Style

<div style=”margin-top: 10px;”>

‘.’ or ‘#

# is for ID

You use ‘#somename’ when its an <div id=”somename”

ID’s can be useful to suround an area so that you can use this in the stylesheet:

#navlnks .page_item, #navlnks .page_item a { 

. is for Class

You use ‘.some_name’ when its <div class=”some_name”

Adding To HTML Files

<style>
.my_style1 {
	margin: 2px;
}
</style>

Multiple Class Names

Apply style to different classes:

.my_menu_rss a, .my_menu_rss a:hover {

Apply style to elements which have both classes 

.my_menu_rss a.my_menu_rss a:hover { 

(Note there is NO space between them!)

USEFUL?
We benefit hugely from resources on the web so we decided we should try and give back some of our knowledge and resources to the community by opening up many of our company’s internal notes and libraries through mini sites like this. We hope you find the site helpful.
Please feel free to comment if you can add help to this page or point out issues and solutions you have found, but please note that we do not provide support on this site. If you need help with a problem please use one of the many online forums.

Comments

Your email address will not be published.