Carousel 2 Tab State?

Can I use a .active class like I did in the old Carousel to set a tab background color or has this feature been eliminated in C2?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

No, it’s still there. Just subtly different – it always applies to the link, not to the image inside the link (in the case of the image tab). So any CSS you wrote for the other system might need to be adjusted a little.

img.active

might change to

.active img

See what I mean?

Walter

On Apr 11, 2013, at 4:33 PM, RavenManiac wrote:

Can I use a .active class like I did in the old Carousel to set a tab background color or has this feature been eliminated in C2?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Walter, I’m not sure I’m following you. The way I made this work with the old Carousel was to setup a Style with the following:

Tag: .active
Name: [blank]

How would I do this with the C2?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

The same, from that perspective. What goes into the body of your style rule? What attributes are you currently setting? There might not need to be any change, depending on what you are doing there.

Walter

On Apr 11, 2013, at 4:45 PM, RavenManiac wrote:

Walter, I’m not sure I’m following you. The way I made this work with the old Carousel was to setup a Style with the following:

Tag: .active
Name: [blank]

How would I do this with the C2?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

The only style attribute is Background Color. I want the color of the tab to change depending on which tab is active.

BTW, how is the .active class triggered?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

It is applied and removed with JavaScript, based on the currently-visible segment of the carousel effect. You can’t actually force it to be applied or not, the script will re-assign it every time there is a change.

Walter

On Apr 11, 2013, at 5:06 PM, RavenManiac wrote:

The only style attribute is Background Color. I want the color of the tab to change depending on which tab is active.

BTW, how is the .active class triggered?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Well the background color is working fine for the tabs using the .tab style, but I can’t get the current tab color to change using the .active style.

Here’s the site: http://rcb.idealynx.com

What am I doing wrong?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Try changing the Tag of that style from .active to .active img and see if that helps.

Walter

On Apr 11, 2013, at 5:31 PM, RavenManiac wrote:

Well the background color is working fine for the tabs using the .tab style, but I can’t get the current tab color to change using the .active style.

Here’s the site: http://rcb.idealynx.com

What am I doing wrong?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Yep, that worked, BUT only after I selected File > Publish Everything.

Thanks Walter! That’s one more problem I can check off of my list. :slight_smile:


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options