Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
How to get the "active" part to work on this site...
Old 06-14-2011, 06:12 PM How to get the "active" part to work on this site...
Extreme Talker

Posts: 246
Name: Patric
Trades: 0
Hi,

So I'm kind of in a rush as someone handed me a laundry list of stuff and I can't figure this out right now. If you visit this page, there is an arrow on the pages when you click on the page and they are active. I need it so that the page itself is that color too, any ideas how I can do this??

Much appreciated for any potential help provided. I tried to add an "active" element to the left nav but it doesn't seem to be working.

http://www.escusa.com/partner.php

Thanks!
Reckoner is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-14-2011, 06:35 PM Re: How to get the "active" part to work on this site...
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Do you mean something like this?

Simple DHTML Tabs
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-15-2011, 12:49 AM Re: How to get the "active" part to work on this site...
Extreme Talker

Posts: 246
Name: Patric
Trades: 0
Hi Chris,

Thanks for the reply --- not quite what I want though. I just want it so that when a page is clicked on the left navigation, the text stays yellow, similar to how the yellow arrow appears when you click on a page, I just want the text to stay yellow too. Lil help?

THanks!
Reckoner is offline
Reply With Quote
View Public Profile
 
Old 06-15-2011, 07:44 AM Re: How to get the "active" part to work on this site...
lizciz's Avatar
Super Spam Talker

Posts: 807
Name: Mattias Nordahl
Location: Sweden
Trades: 0
The active links are defined by the class indicator. Open the .css document, find the row with .indicator {...} and just add any color you want, as in
Code:
.indicator {
   color: #f00;
   /* Other styles... */
}
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
lizciz is online now
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Old 06-15-2011, 07:56 AM Re: How to get the "active" part to work on this site...
lizciz's Avatar
Super Spam Talker

Posts: 807
Name: Mattias Nordahl
Location: Sweden
Trades: 0
Oh, I see you have already set a color.
The thing is, your color attribute is being overrided by the a, a:link, a:active and a:hover styles. Just move those styles up in the document, so that they are defined before the indicator class. And also, change .indicator to a.indicator

EDIT: Or, perhaps easier yet, since the indicator is only used once per page, simply change it from being a class style to an id style. Change class="indicator" to id="indicator" in the html and change .indicator to #indicator in the css. An id style will overide a class style or a tag style such as a and a:hover.
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.

Last edited by lizciz; 06-15-2011 at 08:02 AM..
lizciz is online now
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Old 06-15-2011, 11:42 AM Re: How to get the "active" part to work on this site...
Extreme Talker

Posts: 246
Name: Patric
Trades: 0
Thanks for the reply.

I've tried what you said, but still can't quite get the active text to stay yellow when "active". Not quite sure what the issue is, I've tried a few different things and it should pretty much be set to whatever the .indicator class is set to for the color. I'd rather not want to change the classes to id since I have the indicator class set up in a lot of areas of the site it would take a while to change them.
Reckoner is offline
Reply With Quote
View Public Profile
 
Old 06-16-2011, 06:06 AM Re: How to get the "active" part to work on this site...
lizciz's Avatar
Super Spam Talker

Posts: 807
Name: Mattias Nordahl
Location: Sweden
Trades: 0
Ah, my bad. Didn't see the containing div and the list. The style is being overrided by the #subnav styles. To set the indicator class explicitly, change it to this:
Code:
#subnav .mlink .indicator {
    /* styles here */
}
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
lizciz is online now
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Old 06-16-2011, 01:01 PM Re: How to get the "active" part to work on this site...
Extreme Talker

Posts: 246
Name: Patric
Trades: 0
You're a scholar and a gentleman, thanks a lot for the help, I very much so appreciate it.
Reckoner is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to How to get the "active" part to work on this site...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.40067 seconds with 12 queries