Page 1 of 2 12 LastLast
Results 1 to 10 of 357

Hybrid View

  1. #1
    Join Date
    Jul 2007
    Location
    Eugene, OR
    Posts
    16
    Plugin Contributions
    0

    Default Re: Pure CSS Mega Menu

    Can the menu items be centered easily? I can move them around with margins in the appropriate line of css, but would like to have them automatically center so that if/when I add other items I don't have to go back and change the margin settings.

    Thanks, JT

  2. #2
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,928
    Plugin Contributions
    45

    Default Re: Pure CSS Mega Menu

    Quote Originally Posted by jt3c View Post
    Can the menu items be centered easily? I can move them around with margins in the appropriate line of css, but would like to have them automatically center so that if/when I add other items I don't have to go back and change the margin settings.

    Thanks, JT
    If you post a link to your site, I can take a look.

    Thanks,

    Anne

  3. #3
    Join Date
    Jul 2007
    Location
    Eugene, OR
    Posts
    16
    Plugin Contributions
    0

    Default Re: Pure CSS Mega Menu

    Well, I have it only on a local server at this point. Was just coming back to post that I spoke too soon and can't seem to center the menu items with margin or padding.
    Here's a screen shot if it'll help:
    Click image for larger version. 

Name:	menu1.jpg 
Views:	424 
Size:	18.3 KB 
ID:	12237
    Not sure that that came through.

    Anyway, in the css the "float: left;" in the following line is causing all links to justify to the left side of the menu bar.

    .mega-menu li {float:left;text-align:center;position:relative;margin:6px 20px 0px 0;border:none;}

    I want to center them. Can't float:center, so is there a way to do it some other way? As mentioned above I've messed with margins and padding in a variety of places but can't get the items to center on the bar with the same relative margins/padding amongst themselves. This would basically end up with roughly 300px to the left and right of the whole group of links and whatever is the default in relation to each other.

    Any help is greatly appreciated as I'm obviously still a relative noob.
    JT

  4. #4
    Join Date
    Jul 2007
    Location
    Eugene, OR
    Posts
    16
    Plugin Contributions
    0

    Default Re: Pure CSS Mega Menu

    PS. REALLY love the menu, thanks ever so!!! JT

  5. #5
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,928
    Plugin Contributions
    45

    Default Re: Pure CSS Mega Menu

    Quote Originally Posted by jt3c View Post
    Well, I have it only on a local server at this point. Was just coming back to post that I spoke too soon and can't seem to center the menu items with margin or padding.
    Here's a screen shot if it'll help:
    Click image for larger version. 

Name:	menu1.jpg 
Views:	424 
Size:	18.3 KB 
ID:	12237
    Not sure that that came through.

    Anyway, in the css the "float: left;" in the following line is causing all links to justify to the left side of the menu bar.

    .mega-menu li {float:left;text-align:center;position:relative;margin:6px 20px 0px 0;border:none;}

    I want to center them. Can't float:center, so is there a way to do it some other way? As mentioned above I've messed with margins and padding in a variety of places but can't get the items to center on the bar with the same relative margins/padding amongst themselves. This would basically end up with roughly 300px to the left and right of the whole group of links and whatever is the default in relation to each other.

    Any help is greatly appreciated as I'm obviously still a relative noob.
    JT
    I am sorry, but if I can see the site on a live server I can use firebug to help you. I can't do this on your local server ;-)

    Thanks,

    Anne

  6. #6
    Join Date
    Mar 2009
    Posts
    31
    Plugin Contributions
    0

    Default Re: Pure CSS Mega Menu

    Great module and the template 14916 I purchased last night is great! How do you adjust the number of letters that appear in the dropdowns - mainly the "Brands" Single column? I know it is in the stylesheet_mega_menu but what and where do I put in to stretch the number of characters/pixels of text that are shown? I'd really appreciate a pointer on this as I usually can figure these things out...?

  7. #7
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,928
    Plugin Contributions
    45

    Default Re: Pure CSS Mega Menu

    Quote Originally Posted by beco1979 View Post
    Great module and the template 14916 I purchased last night is great! How do you adjust the number of letters that appear in the dropdowns - mainly the "Brands" Single column? I know it is in the stylesheet_mega_menu but what and where do I put in to stretch the number of characters/pixels of text that are shown? I'd really appreciate a pointer on this as I usually can figure these things out...?
    Do you want to show more characters of the manufacturers names, or do you just want to increase the width of the drop down to show the names on one line?

    Thanks,

    Anne

  8. #8
    Join Date
    Mar 2009
    Posts
    31
    Plugin Contributions
    0

    Default Re: Pure CSS Mega Menu

    Hi Anne,
    Thanks for your reply, I want to increase the number of characters shown in the brand/manufacturers menu.
    At the moment it shows"amazing brandna.." But I would like it to be the full word " amazing brand name". Can this be easily done?
    Thanks again,
    Beco

  9. #9
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    984
    Plugin Contributions
    6

    Default Re: Pure CSS Mega Menu

    Quote Originally Posted by jt3c View Post
    Well, I have it only on a local server at this point. Was just coming back to post that I spoke too soon and can't seem to center the menu items with margin or padding.
    Here's a screen shot if it'll help:
    Click image for larger version. 

Name:	menu1.jpg 
Views:	424 
Size:	18.3 KB 
ID:	12237
    Not sure that that came through.

    Anyway, in the css the "float: left;" in the following line is causing all links to justify to the left side of the menu bar.

    .mega-menu li {float:left;text-align:center;position:relative;margin:6px 20px 0px 0;border:none;}

    I want to center them. Can't float:center, so is there a way to do it some other way? As mentioned above I've messed with margins and padding in a variety of places but can't get the items to center on the bar with the same relative margins/padding amongst themselves. This would basically end up with roughly 300px to the left and right of the whole group of links and whatever is the default in relation to each other.

    Any help is greatly appreciated as I'm obviously still a relative noob.
    JT
    If I understand you correctly, you want to centre the entire menu within the header. I share your grief. So many bells and whistles but no sweet solution for this.

    One albeit messy and approximate way to do it is by editing the menu wrapper in stylesheet_mega_menu.css.

    #mega-wrapper {
    width: 980px; /*change 980px to an em value (eg 50em) that is only a few ems wider than the greatest width of your menu at various zooms. Applying an background colour will let you see the result. Too small a value and the menu may wordwrap.*/
    margin:0 auto; /* auto must remain as it centralises menu.*/
    display:block;
    position: relative;
    z-index:9999;
    background:#ff0; /* Optional. For checking width. Can be retained if desired. */
    padding-left:2em; /* this is the trick. Adjust this value until the menu looks near enough centred at various zooms. */
    }

    There are other ways to do this, (eg changing display:block; to display:table; etc) but I have yet to get them to work as desired.

    Hope this helps.

  10. #10
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,928
    Plugin Contributions
    45

    Default Re: Pure CSS Mega Menu

    Quote Originally Posted by dw08gm View Post
    If I understand you correctly, you want to centre the entire menu within the header. I share your grief. So many bells and whistles but no sweet solution for this.

    One albeit messy and approximate way to do it is by editing the menu wrapper in stylesheet_mega_menu.css.

    #mega-wrapper {
    width: 980px; /*change 980px to an em value (eg 50em) that is only a few ems wider than the greatest width of your menu at various zooms. Applying an background colour will let you see the result. Too small a value and the menu may wordwrap.*/
    margin:0 auto; /* auto must remain as it centralises menu.*/
    display:block;
    position: relative;
    z-index:9999;
    background:#ff0; /* Optional. For checking width. Can be retained if desired. */
    padding-left:2em; /* this is the trick. Adjust this value until the menu looks near enough centred at various zooms. */
    }

    There are other ways to do this, (eg changing display:block; to display:table; etc) but I have yet to get them to work as desired.

    Hope this helps.
    One way to easily do this would be to add a margin-left to the .mega-menu li. You would need to play with the numbers until you get one that will center all of the links within the #mega-wrapper.

    Code:
    .mega-menu li {float:left;text-align:center;position:relative;margin-right:20px;margin-top:6px;margin-left:60px /*or whatever number of pixels works*/ ;border:none;}
    Thanks,

    Anne

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Help with Mega Menu css customization
    By swdynamic in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 17 Jul 2013, 01:21 AM
  2. v139h Mega Menu Mess
    By traytray in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 20 Nov 2012, 07:58 PM
  3. v150 Mega Menu assistance
    By Fancyfrills in forum Templates, Stylesheets, Page Layout
    Replies: 18
    Last Post: 24 Aug 2012, 06:16 PM
  4. Horizontal Drop Menu sort order of mega-menu
    By familynow in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 19 Oct 2011, 04:39 PM

Posting Permissions

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