Need help with margins or padding (I’m unsure what’s causing the problem)

Forums Forums Menus Need help with margins or padding (I’m unsure what’s causing the problem)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #302
    jigordon
    Member

    UPDATE:  Well, looks like if I add a little ul css formatting to my style.css file, I can get rid of the extra padding.  Now if I can only move the menu down a bit.  <img decoding=” title=”Smiley” />

    Anyways, thanks to other folks in the forums… just reading your post(s) helped!


    Original message below



    I hope someone can help me… I’m such a CSS newbie that after 3 hours of working on this and a dozen CSS handbooks, I simply can’t figure it out.

    Anyways, I’ve got everything installed and it looks like it works:  http://www.licensinghandbook.com

    But I can’t understand why the drop-down menus are pushed right (I’ve kept the borders on so that you can see what’s happening).

    The only CSS besides the plugin that affects this division is:

    #topnavmenu { width: 600px; float: right; text-align: left;}

    And here’s the CSS for the plugin:

    #suckerfishnav {
        font-size:12px;
        font-family:verdana,sans-serif;
        font-variant: small-caps;
        width:100%;
        }
    #suckerfishnav, #suckerfishnav ul {
        float:left;
        list-style:none;
        line-height:24px;
        padding:4;
        border:0px solid #aaa;
        margin:0;
        width:100%;
        }
    #suckerfishnav a {
        display:block;
        color:#fff;
        text-decoration:none;
        padding:0px 10px;
        }
    #suckerfishnav li {
        float:left;
        padding:0;
        }
    #suckerfishnav ul {
        position:absolute;
        left:-999em;
        height:auto;
        width:151px;
        font-weight:normal;
        margin:0;
        line-height:1;
        border:0;
        border-top:1px solid #666666;
        }
    #suckerfishnav li li {
        width:149px;
        border-bottom:1px solid #666666;
        border-left:1px solid #666666;
        border-right:1px solid #666666;
        font-family:verdana,sans-serif;
        font-variant:normal;
        }
    #suckerfishnav li li a {
        padding:4px 10px;
        width:130px;
        font-size:12px;
        color:#fff;
        }
    #suckerfishnav li ul ul {
        margin:-21px 0 0 150px;
        }
    #suckerfishnav li li:hover {
        background:#630055;
        }
    #suckerfishnav li ul li:hover a, #suckerfishnav li ul li li:hover a, #suckerfishnav li ul li li li:hover a, #suckerfishnav li ul li li li:hover a {
        color:#fff;
        }
    #suckerfishnav li:hover a, #suckerfishnav li.sfhover a {
        color:#fff;
        }
    #suckerfishnav li:hover li a, #suckerfishnav li li:hover li a, #suckerfishnav li li li:hover li a, #suckerfishnav li li li li:hover li a {
        color:#fff;
        }
    #suckerfishnav li:hover ul ul, #suckerfishnav li:hover ul ul ul, #suckerfishnav li:hover ul ul ul ul, #suckerfishnav li.sfhover ul ul, #suckerfishnav li.sfhover ul ul ul, #suckerfishnav li.sfhover ul ul ul ul {
        left:-999em;
        }
    #suckerfishnav li:hover ul, #suckerfishnav li li:hover ul, #suckerfishnav li li li:hover ul, #suckerfishnav li li li li:hover ul, #suckerfishnav li.sfhover ul, #suckerfishnav li li.sfhover ul, #suckerfishnav li li li.sfhover ul, #suckerfishnav li li li li.sfhover ul {
        left:auto;
        background:#1C1C1C;
        }
    #suckerfishnav li:hover, #suckerfishnav li.sfhover {
            background:#630055;
        }

    Thank you in advance to anyone who can help!!!

    ~Jeff

    #3330

    Hi,
    Your menu is pushed right because you have set float:right in your surrounding DIV tag.

    To move the menu down, you could try applying a top margin to your containing DIV tag.
    [code:mtdxy7wh]#topnavmenu {margin-top:50px}[/code:mtdxy7wh]

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.