I am in trouble i need your help

Discussion in 'CSS' started by yazuhost, Feb 24, 2010.

  1. #1
    Hi All,

    Check this page
    http://www.bhallibrothers.com/surgical.php?id=1

    I want when i click any category. it turns to bold.

    and then i click on any other category. the first link is go to their normal position and new link which i clicked is bold.

    This is my css code for links

    
    <style type="text/css">
    <!--
    a:link {
    	text-decoration: none;
    	color: #000000;
    }
    a:visited {
    	text-decoration: none;
    
    	color: #000000;
    	}
    a:hover {
    	text-decoration: underline;
    	color: #000000;
    	font-weight: bold
    }
    a:active {
    	text-decoration: none;
    	color: #000000;
    	
    }
    .style1 {color: #000000}
    .style26 {FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, sans-serif
    }
    .style30 {color: #000000}
    -->
    </style>
    
    Code (markup):
    Sorry for my english

    Thanks
     
    yazuhost, Feb 24, 2010 IP
  2. s_ruben

    s_ruben Active Member

    Messages:
    735
    Likes Received:
    26
    Best Answers:
    1
    Trophy Points:
    78
    #2
    You have to do it by php. Write here the part of php code which displays the categories.
     
    s_ruben, Feb 24, 2010 IP
  3. yazuhost

    yazuhost Well-Known Member

    Messages:
    111
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    125
    #3
    Dear i talk about subcategories
     
    yazuhost, Feb 25, 2010 IP
  4. s_ruben

    s_ruben Active Member

    Messages:
    735
    Likes Received:
    26
    Best Answers:
    1
    Trophy Points:
    78
    #4
    Dear, but there is no word "subcategory" in your first post!!! ;)
     
    s_ruben, Feb 25, 2010 IP
  5. yazuhost

    yazuhost Well-Known Member

    Messages:
    111
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    125
    #5
    Dear. Sorry.
    Please give me solution

    Thanks
     
    yazuhost, Feb 25, 2010 IP
  6. s_ruben

    s_ruben Active Member

    Messages:
    735
    Likes Received:
    26
    Best Answers:
    1
    Trophy Points:
    78
    #6
    Solution of what? Explain in details what you want. :)
     
    s_ruben, Feb 25, 2010 IP
  7. yazuhost

    yazuhost Well-Known Member

    Messages:
    111
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    125
    #7
    Dear. i want when some one click any subcategory. it look bold.

    and then click on other category. it will be normal and new category which user click. look bold
     
    yazuhost, Feb 25, 2010 IP
  8. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Maybe it's as simple as, s/he wants the word in the menu to be bold so long as the user is on that page? If so, that would be great, because right now if I click on something, I get very little feedback as to which page I'm on (note though that I don't have JS or Flash, possibly either of those are supposed to be telling me that I'm on a certain page, which is BAD Usability!).

    If that's the case (that if I click Products that the word in the menu "Products" is bold), then CSS can do it, but the method to do it depends on how the menu is made. If it's being generated by PHP then you'll need one method; if each page is hand-crafted then an easier method can be used.

    By the way, Yazo: you are writing too much code for your anchors.

    
    a {
    	text-decoration: none;
    	color: #000000;
    }
    
    a:hover, a:focus {
    	text-decoration: underline;
    	font-weight: bold;
    }
    
    
    Code (markup):
    will do the same as the very long set of anchor code you posted above.

    You will have to tell us if PHP is adding your menu to each page (using PHP includes) or if you can make the menu have different HTML on each page (because then you can add a class to the correct menu item to make it bold).
     
    Stomme poes, Feb 25, 2010 IP