Results 1 to 6 of 6

Thread: css current page

  1. #1
    Join Date
    Nov 2005
    Posts
    132
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default css current page

    good morning,
    I want to change the background colour on a block element when it is is currently being viewed.


    Can CSS style the Menu link for the current page?
    thanks

  2. #2
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by neilkw
    I want to change the background colour on a block element when it is is currently being viewed.
    If that's a separate issue to the one below, define "currently".

    Can CSS style the Menu link for the current page?
    Yes, if that element can be uniquely selected. See a previous post of mine for possible options.

    Mike

  3. #3
    Join Date
    Nov 2005
    Posts
    132
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    ok, defined:
    I have a horizontal menu consisting of 6 category links, (home, accessories, baths, suites, showers, taps) which are set as block elements with borders and bg colours, each category contains around 20 products which I plan to sell online. I wish to inform the user which section they are currently viewing by changing the background colour of the link.

  4. #4
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Then as far as I can see, the post I linked to in my previous post should apply. Did you read it? Does it help? If not, why not? (Did you spot the typo in the sample markup? ).

    Mike

  5. #5
    Join Date
    Apr 2006
    Posts
    190
    Thanks
    3
    Thanked 7 Times in 7 Posts

    Default

    Check out Setting the current menu state with CSS by 456 Berea Street. It will explain what you are trying to do.
    Ryan
    Sevierville, TN

  6. #6
    Join Date
    Nov 2005
    Posts
    132
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    cheers guys

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •