Results 1 to 5 of 5

Thread: Question on spacings for Chrome CSS Drop Down Menu (v2.0)

  1. #1
    Join Date
    Aug 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Question on spacings for Chrome CSS Drop Down Menu (v2.0)

    1) Script Title: Chrome CSS Drop Down Menu (v2.0)

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...rome/index.htm

    3) Describe problem:
    I was trying to use the Chrome CSS drop down (see link above) but I wanted it to flush to the top and sides of the browser (see image below).

    I couldn't seem to figure out where to change this setting. I was wondering if someone can point me to the right direction...

    Any help is very much appreciated. Thanks, Geoff

    Link to image: http://www.nolasco.us/chromeborders.jpg

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Firstly, make sure that the BODY of your page is set to have no margins/padding, such as via the CSS code:

    Code:
    <style type="text/css">
    body{
    margin: 0;
    padding: 0;
    }
    </style>
    Then make sure the same goes for the .chromestyle class inside the .css file of the menu:

    Code:
    .chromestyle{
    width: 99%;
    font-weight: bold;
    margin:0;
    padding: 0;
    }
    This should do it, though untested.

  3. #3
    Join Date
    Aug 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi,
    THANK YOU VERY MUCH. You've saved me a whole bunch of time.

    I have another question related to the same script but I know it's more of a CSS question, I hope you don't mind if I post it

    Here's the link to what I've already done for this menu:
    http://tfish.nolasco.us/Geoff/demo.htm

    I wanted to have the drop down menus in the middle (as it is now) and move the icon (home) all the way to the left and I wantto place a couple more icons all the way to the right. Any idea how I may be able to achieve it with this script?

    Thanks again,
    Geoff

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Hmmm unfortunately it's difficult to have seperate alignment for a specific menu item within the menu- they're basically a group which can collectively be aligned left, center, or right. You'll have to play around with the CSS yourself to get the right effect.

  5. #5
    Join Date
    Aug 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    OK, thanks for the help. I'll play around with it a bit more.

    Here's the almost final setup of the menu in production:
    http://www.forpals.com

    Quote Originally Posted by ddadmin
    Hmmm unfortunately it's difficult to have seperate alignment for a specific menu item within the menu- they're basically a group which can collectively be aligned left, center, or right. You'll have to play around with the CSS yourself to get the right effect.

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
  •