CSS Tutorial 1, About Mouseover links... - HTML / Javascript Tutorials
 
  Buy Ebooks, Video Games, DVDs, Electronics and more !
Home | Help Forums | Web Design Tutorials | Free Swishmax Downloads Make Money Online Blog . Free Image and Photo Sharing and Hosting

 

 

Company

Home

Nework Details

Tutorials

SWiSH 2

SWiSHMax

Flash MX

PHP & MySQL

HTML / JScript

Adobe Photoshop

Corel Draw

Gimp

Miscellaneous

Downloads

Templates

Plugins

Fonts

Wallpapers

Free Images

Scripts and Codes

Products

E-Books

SWiSH BB

SWiSH Templates

SWiSH-DB Newsletter
Subscribe to our newsletter : GO
  Partners / Affiliates

   Free image hosting
   Web Design Pakistan
   Swish Templates
   SWiSH Climax
   Talkfreelance Community
   Template Desire
   Lite boards
   Script Sector
   GimpTalk
   13dots
   Idea Designs
   PHP Cafe
   Sposatoettore
   Free swishmax templates
   Swishzone

Manage your site with Flax Article Content Management System
CSS Tutorial 1, About Mouseover links...
Category : HTML / Javascript | Level : Intermediate | Language : English
Ask Question | Read Comments | Post tutorial | Previous | Next

Web www.swish-db.com

Level: Beginner
Need a little know about HTML

I am making some tutorials about CSS, because I like the CSS the most of all scripts, and I know much about it. In this tutorial I explain how you can make stylish mouseover links.

I have some samples between the steps.

STEP 1:
Open Notepad (or another HTML editor)
Save your document as css1.txt

user posted image

---------------------------------------------------------------------

STEP 2:
CODE

<HTML>

<head>
<title>Css Tutorial 1</title>

</head>

<body>

<a href=“#”>This is gonna be your Mouseover text link</a>

</body>
</HTML>


Search this code:
QUOTE

<a href=“#”>


On the place where is the “#” fill in your link.

user posted image

---------------------------------------------------------------------

STEP 3:
Now we gonna work with the ‘style’ tags.

Search the head tags:
QUOTE

<head>
<title>Css Tutorial 1</title>

</head>


And place a style tag between:

QUOTE

<head>
<title>Css Tutorial 1</title>

<STYLE>
</STYLE>

</head>


---------------------------------------------------------------------

STEP 4

Now place this code between the ‘style’ tags.

CODE

A {
color: #990000;
font-family: Arial, Helvetica;
text-decoration: none;
}


Explaination:

color: #990000; THIS means wich color the link is,
font-family: Arial, Helvetica; THIS is the tag for the font for the link
text-decoration: none: AND this means there is no decoration. Decoration tags that can be used: underline, bold, italic, overline, line-through, blink(only in Netscape).

This is what I have so far:
user posted image

---------------------------------------------------------------------

STEP 5

Now copy and paste this code beneath the code above:

CODE

A:Hover {
color: #FF0000;
font-family: Arial, Helvetica, sans-serif;
text-decoration: none;
cursor: hand;
}
A:Active {
color: #990000;

font-family: Arial, Helvetica, sans-serif;
text-decoration: none;
}


Explaination:

‘A:Hover’ means how the link look like when the visitor Mouseovers the link.
‘A:Active’ means how the link act if it is Active (when clicked).

---------------------------------------------------------------------

STEP 6

Search the code:

CODE

cursor: hand;


This means what cursor you have while doing a link action (A, A:Hover, A:Active, A:Visited)
You can choose from this cursors:

hand
crosshair
text
wait
default
help
e-resize
ne-resize
n-resize
nw-resize
w-resize
sw-resize
s-resize
se-resize
auto

Try by youself what the effect is!

The last thing you have to do is going to Save As, and save it as css.htm

Here you go! You have a nice rollover link, in this tutorial you have learned INLINE CSS. In the next tutorial I will tell how OUTLINE CSS works…

Dennis wink.gif

P.s. Here is what I got, My CSS 1
P.p.s If you have questions, ask them!


© 2002-2005 Flaxweb Network | Article Manager | Gimp Tutorials Library | RAD C++ Library | Free C/C++ Sourcecode |
Sites of interest : Web Design Blog | Swish Templates | Swishmax Ebook | Photoshop Templates | Gimp Tutorials | Text Forum | Make Money Online