Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    I'm usually fairly good at CSS - I enjoy it and love to play with it in Firebug, but...

    Will someone PLEASE go to my Wordpress based site at http://www.stablefriends.ca and take a look at the dropdown menu under "Videos" and tell me where to find the code to edit on the HTML side in Firebug when you put the cursor over the line:
    Code:
     <ul class="sub-menu" style="top: 85px; visibility: visible; left: 0px; width: 141px; display: none;">
    This comes up in the CSS side of Firebug as being
    Code:
    element.style="top: 85px; visibility: visible; left: 0px; width: 141px; display: none;">
    which to me indicates that it is being styled inline somewhere, but I have looked at every single CSS and PHP file and cannot find it. Logically it should be in the ddsmoothmenu.css file, or at least the header.php file, but I can't find where it is being called from...

    I know I need to change the "top: 85px;" to "top: 60 px;" to make it space the way i want it - but I can't find where to make the change!

    This is making me a little crazy -
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!

  2.  

  3. #2
    Member surfbouy's Avatar
    Join Date
    Dec 2010
    Location
    Noosa, Sunshine Coast, Queensland, Australia
    Posts
    46
    Member #
    25747
    Liked
    3 times
    Hi Alphamare,
    it looks like this is all taking place in the java script for ddsmoothmenu.js
    in the
    buildmenu:function area of script about 50 lines down
    it looks like it creates the class and gives it style.... I am no java wizz

    There could be a work around in the ddsmoothmenu.css
    /*Sub level menu list items (undo style from Top level List Items)*/
    #mainMenu.ddsmoothmenu ul li ul li{
    float: none;
    [COLOR=rgb(255, 0, 0)]position:absolute;[/COLOR]
    [COLOR=rgb(255, 0, 0)]top:-25px;[/COLOR]
    display: list-item;
    background:#091011;
    padding:0;
    font-weight: bold;
    }
    It appears to do the trick..
    I don't know if this helps
    Craig

  4. #3
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    surfbouy - Thanks - that does work - but i stil want to know where the "top:85" comes from!
    I think you're right about the ddsmoothmenu.js - about line 85 or so, there is what looks like a formula for calculating the sub-menu offset from the parent, but i want to know where it gets the actual numbers from!

    Thanks again for the workaround - I've put it up and it's working - a "like" for you!
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!


Remove Ads

Posting Permissions

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

Search tags for this page

edit offset css

Click on a term to search for related topics.
All times are GMT -6. The time now is 05:46 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com