CSS issue with +

Discussion in 'CSS' started by jawednazarali, Nov 9, 2006.

  1. #1
    I am using FreeStyle menu, and I am facing css issues in it I have tried a lot to fix the problem but couldn't find a solution.

    Problem:
    When I click on link it changes it color despite I have defined the visited links style. Probably it using the parent visited link color i.e. top level menu color.

    Following is the menu creating lists:

    <ul class='menuStyle' id='listMenuRoot' >
    <li><a href=''>Menu Item A</a>
    	<ul>
    	<li><a href=''>Submenu Item 1: Item A</a></li>
    	<li><a href=''>Submenu Item 2: </a></li>
    	<li><a href=''>Submenu Item 3: Item A</a></li>
    	</li>
    	</ul>
    </li>
    <li><a href=''>Menu Item B</a>
    	<ul>
    	<li><a href=''>Submenu Item 1: Item B</a></li>
    	<li><a href=''>Submenu Item 2: B</a></li>
    	<li><a href=''>Submenu Item 3: Item B</a></li>
    	</ul>
    </li>
    </ul>
    Code (markup):

    I am attaching all required files, so that you can find what I am doing wrong. I would be thankful if someone find me a solution for this problem.

    Regards,
     

    Attached Files:

    jawednazarali, Nov 9, 2006 IP
  2. jascele

    jascele Peon

    Messages:
    48
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try adding the class right into the link tags.

    <a class="classnamehere" href=''>Submenu Item 1: Item A</a>
     
    jascele, Nov 9, 2006 IP
  3. Claudek

    Claudek Well-Known Member

    Messages:
    1,379
    Likes Received:
    81
    Best Answers:
    0
    Trophy Points:
    165
    #3
    may want to run any css etc through the validator at www.w3c.org
    I have found it very useful in debugging small errors in css and html
     
    Claudek, Nov 9, 2006 IP
  4. varunkrish

    varunkrish Peon

    Messages:
    107
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    please upload the code to ur site or post link to the live page..
     
    varunkrish, Nov 9, 2006 IP
  5. jawednazarali

    jawednazarali Guest

    Messages:
    254
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I have uploaded it with my first post, let me know if you don't get it
     
    jawednazarali, Nov 9, 2006 IP
  6. jawednazarali

    jawednazarali Guest

    Messages:
    254
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I thought of that but I got 100+ menu Items now, and they are not dynamically created just flat file. There should be some other way, if not then I have to go with this.
     
    jawednazarali, Nov 9, 2006 IP