Results 1 to 5 of 5

Thread: How do I set up 2 different styles for links

  1. #1
    Join Date
    Sep 2008
    Posts
    11
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default How do I set up 2 different styles for links

    Can anyone help with a few problems styling the javascript menu at www.jeffcooperdesign.co.uk/slashdot. I have also posted this on the scripts forum but I think my problem is more css related.

    1) Script Title: slashdot

    2) Script URL (on DD):http://www.dynamicdrive.com/dynamicindex1/slashdot.htm

    3) Describe problem:Not all of the menus have submenu content. Home, About Us, Dates and Prices and Bookng Form need to go directly to the relevant page. How can I make these pages a link whilst keeping the style (bold, white text on Blue background) exactly as it is, while not altering the style of the submenus

    Also it is possible to make every header a link, even if it does have a submenu. For example when clicking on Adventure Sailing, as well as showing the submenu it also takes you to the Adventure Sailing page.

    My css and js files are attached


    Thanks
    Jeff

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Do you just want colors to change or not change? I don't follow exactly what you want...
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  3. #3
    Join Date
    Sep 2008
    Posts
    11
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    Hi, thanks for the reply

    I am happy with the submenus (light grey/inactive, green/hover)

    I would like to make the white text on blue background a link also (eg home). I don't actually want a visual change to these links at all, however, when I make them a link they pick up the attribute from the submenu links ie blue text on a grey background.

    Can I make 'home' a link without changing it's appearance?

    Do that make sense!? If not I can make 'home' a link so that you can see what happens.

    Thanks

  4. #4
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    sure can... Just edit the CSS a bit...

    Code:
    .buttonStay a, a:hover, a:link, a:visited{
           color: #FFF;
           background-color: #???;  /*insert hex for the blue color*/
    }
    Then in the HTML just add the class to the buttons you want to stay the same:

    HTML Code:
    <li class="buttonStay"><a href="yousite.com/index.html">Home</a></li>
    It will be slightly more involved but not too much, that should give you the idea
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  5. #5
    Join Date
    Sep 2008
    Posts
    11
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    Hi.

    Thanks for your help but I am still not understanding you. I have inserted the new style into my css and have updated the html to link to that style. jeffcooperdesign.co.uk/slashdot. As you can see the dates and prices section is still taking on the attributes of the 'div.sdmenu div a' class not the new style .buttonStay

    Any thoughts?

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
  •