Active State

This is a discussion on "Active State" within the Web Page Design section. This forum, and the thread "Active State are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jan 26th, 2007, 11:09
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Active State

Hi folks... I'm having a problem with my navigation. I can't seem to get the a:active to show it's styling.
Code: Select all
ul.nav {
	list-style:none;
	padding-left: 0;
	margin-left: 0;
	padding-bottom: 5px;
	padding-top: 10px;
	}
	ul.nav li {
	display:inline;
	}
	ul.nav a{
	border: 1px solid #FAEE98;
	border-bottom: none;
	padding: 5px 15px 5px 15px;
	margin-right: 10px;
	background-color:#000000;
	text-decoration: none;
	color:#FAEE98;
	font-family: Georgia, "Times New Roman", Times, serif;
	font-weight: bold;
	font-size: medium;
	}
	ul.nav a:link {
	font-family:Georgia, "Times New Roman", Times, serif;
	font-size: medium;
	font-weight: bold;
	color: #FAEE98;
	}
	ul.nav a:active {
	border: 1px solid #333333;
	color: #333333;
	background-color: #FFFFFF;
	font: bold medium Georgia, "Times New Roman", Times, serif;
	}
	ul.nav a:hover {
	text-decoration: none;
	color: #000000;
	background-color: #FAEE98;
	border: 1px solid;
I'll work on the shorthand once I get the code working.
Anyone see what the problem is?
Thanks in advance!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jan 26th, 2007, 12:52
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Active State

Order matters (see sig for latest blog entry ... I talk about that in there)

put a:active after a:hover.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jan 26th, 2007, 12:58
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Active State

Ok.. changed the order but that didn't help. Still can't see the changes on active state!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jan 26th, 2007, 13:02
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Active State

The active state is when you click on the link. You're probably thinking of a "selected" state.

Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-CA" xml:lang="EN-CA">

<head>
    <title>Some title</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    
    <style type="text/css">
    ul.nav {
        list-style:none;
        padding-left: 0;
        margin-left: 0;
        padding-bottom: 5px;
        padding-top: 10px;
    }
    
    ul.nav li {
        display:inline;
    }
    
    ul.nav a {
        border: 1px solid #FAEE98;
        border-bottom: none;
        padding: 5px 15px 5px 15px;
        margin-right: 10px;
        background-color:#000000;
        text-decoration: none;
        color:#FAEE98;
        font-family: Georgia, "Times New Roman", Times, serif;
        font-weight: bold;
        font-size: medium;
    }
    
    ul.nav a:link {
        font-family:Georgia, "Times New Roman", Times, serif;
        font-size: medium;
        font-weight: bold;
        color: #FAEE98;
    }
    
    ul.nav a:hover {
        text-decoration: none;
        color: #000000;
        background-color: #FAEE98;
        border: 1px solid;
    }
    
    ul.nav a:active, ul.nav a.selected {
        border: 1px solid #333333;
        color: #333333;
        background-color: #FFFFFF;
        font: bold medium Georgia, "Times New Roman", Times, serif;
    }
    
    </style>    
</head>

<body>

<div>
    <ul class="nav">
        <li><a href="/" class="selected">menu</a></li>
        <li><a href="/">menu</a></li>
        <li><a href="/">menu</a></li>
        <li><a href="/">menu</a></li>
        <li><a href="/">menu</a></li>
    </ul>
</div>

</body>
</html>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jan 26th, 2007, 13:03
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Active State

I was just thinking that same thing. When you are one let's call it the Homepage, I want the homepage tab to be a different color. Is that "selected state"?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jan 26th, 2007, 13:08
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Active State

Yeppers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Jan 26th, 2007, 13:10
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Active State

Cool.. thanks for clearing that up.

Ok.. can you take a look at the code you typed in... I don't think the class="selected" is correct because it's not working.

Do I need <> these?

And do I put that line of code only on the list item for the homepage if it's the homepage link I want to change?

So many questions...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Jan 26th, 2007, 13:21
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Active State

Karianne, thanks.. I got it...

I needed to fix my code...Reputation point for ya!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Jan 26th, 2007, 13:45
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Active State

Glad to see you figured it out. Thanks for the rep
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Jan 26th, 2007, 20:19
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Active State

The active state is when the mouse is actually down on the link
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Jan 27th, 2007, 01:29
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Active State

I get it now!!! Thanks Ryan!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
active state, navigation

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Movieclip button active state problem !! Help Please !! alladeen Flash & Multimedia Forum 6 Oct 25th, 2007 14:40
How do I get people active and keep them active? TheSealPortalTeam Webforumz Cafe 4 May 9th, 2007 10:17
Fixing of the chosen state on a map Flashmap Flash & Multimedia Forum 1 Apr 5th, 2007 10:48


All times are GMT. The time now is 07:52.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42