Home  | FAQ  | Search  | Memberlist  | Usergroups  | Register  | Profile  | Log in  | Log in for your private messages
Example of a Roll-over using CSS

 
Post new topic   Reply to topic    myWebland Forum Index -> HTML & CSS Tutorials
View previous topic :: View next topic  
Author Message
sean
Site Admin


Joined: 14 Jul 2004
Posts: 671

PostPosted: Sat Oct 09, 2004 5:40 am    Post subject: Example of a Roll-over using CSS Reply with quote

Please try this simple css roll over code ..it's simple !

Code:
<style>
a.nav {
            display: block;
            background-color:#ffcccc;
            text-align: center;
            font-weight: bold;
            text-decoration: none;
            font-family:verdana;
            font-size:12px;
            height: 18px;
            color: #000000;
           }

a.nav:hover {
background-color:#ccccff;
}

</style>

<table width=100>
<tr>
 <td><a href="" class="nav" >Test1</a></td>
</tr>
<tr>
 <td><a href="" class="nav" >Test2</a></td>
</tr>
</table>
Back to top
View user's profile Send private message Send e-mail
kodaks
Newbie


Joined: 24 Sep 2004
Posts: 5
Location: Sarnia, Ontario, Canada

PostPosted: Sun Jan 02, 2005 9:57 pm    Post subject: Reply with quote

Thanks sean! Excellent script.
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
sosuboo
Newbie


Joined: 16 Jul 2005
Posts: 23
Location: Oklahoma

PostPosted: Mon Jul 25, 2005 8:51 pm    Post subject: Reply with quote

I forget, does CSS go in the header or body tags of html?

Christine
_________________
"She's a mystery
My most beautiful regret
I will never understand her
She's a mystery"
"She's a Mystery" - Bon Jovi
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Canad1an
Developer


Joined: 11 Jun 2005
Posts: 83

PostPosted: Tue Jul 26, 2005 3:28 am    Post subject: Reply with quote

I am pretty sure they go in the header tags...?
Correct me if i'm wrong.
_________________
www.canad1an.com

P.S. This is what part of the alphabet would look like with Q and R eliminated.
---------------------------------------------------
-matt
Back to top
View user's profile Send private message Visit poster's website AIM Address
Guest






PostPosted: Thu Jul 28, 2005 3:39 pm    Post subject: Reply with quote

CSS can go in the header, inline or can be from external style sheets Smile
Back to top
Chris COllins
Newbie


Joined: 27 Jun 2005
Posts: 24

PostPosted: Thu Jul 28, 2005 3:39 pm    Post subject: Reply with quote

That was me above Smile
_________________
Fractal Universe
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    myWebland Forum Index -> HTML & CSS Tutorials All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
TNX?

Error. Page cannot be displayed. Please contact your service provider for more details. (5)




Powered by phpBB © 2001, 2005 phpBB Group
Contact Us