Skip to main content

Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #45606
    Attila Hajzer
    Participant

    hajzer.info/#portfolio

    when you click live sites i want the list tiem to change color and stay like that until i change it.

    #110998
    pixelgrid
    Participant

    this is a jquery approach

    $(‘.list li’).click(function(){
    $(‘.active’).removeClass(‘active’);
    $(this).addClass(‘active’);

    });

    #139177
    PicnicTutorials
    Participant

    X100 better to use css for this IMO.

    #139180
    Paulie_D
    Moderator

    >X100 better to use css for this IMO.

    How would you do this with a click?

    #139257
    pixelgrid
    Participant

    it is possible with checkboxes and the ~ selector.
    When a checkbox-category is clicked(selected)
    first its label assuming you will use labels changes style
    and then you select a div with the ~ selector and change its background to the slide you want
    as an alternative you could change the opacity of 4 absolutely positioned div s
    one on top of another.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.