[Pro] carousel tab styling issues again

Hi All,
Having read in detail the numerous posts on this subject i am struggling to understand where the errors are on the tab styling of this example page:

http://www.fabric.eu.com/testpage.html

The Carousel functions are working but I appear to be unable to apply any styling to the tabs so that they align with the relevant larger image.
The page is a working draft and for now the tab images are all the same but eventually they will match the larger images. The tabs in the test page are transparent PNG-24 images with a hole cut in the centre.
The effect I am trying to achieve is to highlight the tab by having the background colour change, page colour when deselected, white when selected.
I have set up the tag style .controls a img. with the background colour setting applied for the deselected state and tag style .controls a img.active for the selected state.
It appears that i have missed something or built in an error somewhere but unable to resolve. Your help and advice will be appreciated.
PS: I have also deleted out all earlier Carousel actions to ensure there were no clashes.
Thanks, Stuart

http://www.fabric.eu.com/testpage.html


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

The tabs in the test page are transparent PNG-24 images with a hole cut in the centre.

Not seeing that. The only png files on that page are the 4 large images.

David


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

Have uploaded again and you should be able to see the tabs at the base of the page beneath the large images, left of centre. Although they are a little slow to load.


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

Hi Stuart,
There are a couple of things here that need to be fixed to get the effect you are after.

  1. The style you added for the active class on the tabs is incorrect. It was .controls a img.active and should be .controls a.active img because it is the anchor (a) tag that is being given the active state by the carousel code and not the image within it.
  2. You haven’t given any of your tabs (or a parent item) the class of ‘controls’. Without this the style above won’t be able to locate the item to change the style.

In the following example I added the class ‘controls’ to ‘item18’ and used the following CSS to give each active tab a background colour;

.controls a.active img {
	background-color:#A29793;
}

http://www.freewayactions.com/test/fabric/

Lastly I changed the abbots012 thumbnail images from JPGs to transparent PNGs (as Dave previously mentioned) so that the background colour defined by the newly added active class can show through.

As an alternative to changing the CSS like this you can use the Carousel Tab Button Action that ships with the Wood Slider example file and do all of this simply by specifying different images for the tab states in the Action;
http://www.freewaystyle.com/wood-slider

I hope this all helps.
Regards,
Tim.

On 16 Feb 2014, at 11:39, Stuart O wrote:

Have uploaded again and you should be able to see the tabs at the base of the page beneath the large images, left of centre. Although they are a little slow to load.


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

Tim,

Many thanks for your reply and helpful advice etc which I will work through this week.

Tks, Stuart


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