Jump to content

blank space at top header menu


Recommended Posts

Hi,

 

Hope u guys can help me with this issue; header menu shows a 'blank' space after last category and im in the search of a solution to fix this.

 

I was thinking about 'centering' the header menu, moving it to the right, but dont know where to start.

 

Under this text is the snapshot, and heres the link of the beta website: http://teinvitoaunaweb.es/asturhobby-es/index.php

 

Thanks to all ;)

 

Qlsy1WJ.png

post-743295-0-66397400-1388434567_thumb.png

Edited by electronly (see edit history)
Link to comment
Share on other sites

I think the best way would be to change menu generation from list to table. Especially if you have 2+ languages and menu has different width on each language. This way menu links always cover whole width. Partially it can be done by making this changes in superfish-modified.css:

 

.sf-menu {
        display: table;
}
.sf-menu li {
       display: table-cell;
       float: left;
}
.sf-menu a {
       text-align: center;
}

 

That's just the start. Next you'll have to set style for dropdown menu...

Edited by Sharak (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 1 year later...

Thank you Sharak. Great solution. Much better then the original one. But I had to comment out css rules:

/*#header .sf-menu > li {
  border-right: 1px solid #dfd8ca;
}
#header .sf-menu > li > a {
  border-bottom: 3px solid #dfd8ca;
}*/

in file 0:/web/modules/themeconfigurator/css/theme5.css because of word wrap in cells. Smaller cells have bottom border not on the same line like larger cells.

 

(sorry for my bad english)

Link to comment
Share on other sites

×
×
  • Create New...