simon5968 Posted September 6, 2014 Share Posted September 6, 2014 (edited) Hi I need some help with css on my main menu. I will supply a link to site by PM as site is not live yet (I will also need to add your IP so you can see the site). Can anyone help me plase. I had to add top: -13px; to the menu to line it up with the menu background that is an background inage in the header so we get a full width look with a content wide menu. But know the submenus li's are not lining up right. Thanks Simon Edited September 6, 2014 by simon5968 (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted September 6, 2014 Share Posted September 6, 2014 You mean blouses should have the red background? Link to comment Share on other sites More sharing options...
simon5968 Posted September 6, 2014 Author Share Posted September 6, 2014 (edited) yes. if it help here is the css file: /*** ESSENTIAL STYLES ***/ .sf-contener { clear: both; float: left; width: 100%; } .sf-menu, .sf-menu * { margin: 0; padding: 0; list-style: none; top: -13px; } .sf-menu { position: relative; padding: 0; width: 100%; } @media (max-width: 767px) { .sf-menu { display: none; } } .sf-menu ul { position: absolute; top: -999em; background: #333333; } @media (max-width: 767px) { .sf-menu ul { position: relative; } } .sf-menu ul li { width: 100%; } .sf-menu li:hover { visibility: inherit; /* fixes IE7 'sticky bug' */ } .sf-menu > li { float: left; border-right: 2px solid white; margin-bottom: -3px; } @media (max-width: 767px) { .sf-menu > li { float: none; position: relative; border-right: none; } .sf-menu > li span { position: absolute; right: 6px; top: 20px; width: 30px; height: 30px; z-index: 2; } .sf-menu > li span:after { font-family: "FontAwesome"; content: "\f067"; font-size: 26px; } .sf-menu > li span.active:after { content: "\f068"; } } .sf-menu > li > a { font: 600 18px/22px "Open Sans", sans-serif; text-transform: uppercase; color: #484848; display: block; padding: 17px 20px; } .sf-menu > li.sfHover > a, .sf-menu > li > a:hover, .sf-menu > li.sfHoverForce > a { background: #333333; color: white; } .sf-menu li li li a { display: inline-block; position: relative; color: #777777; font-size: 13px; line-height: 16px; font-weight: bold; padding-bottom: 10px; } .sf-menu li li li a:before { content: "\f105"; display: inline-block; font-family: "FontAwesome"; padding-right: 10px; } .sf-menu li li li:hover > a { color: #ffffff; display: block; } .sf-menu li li li:hover { background-color: #cc4c2f; background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; background-clip: border-box; background-origin: padding-box; background-size: auto auto; } .sf-menu li ul { display: none; left: 0; top: 56px; /* match top ul list item height */ z-index: 99; padding: 12px 0px 18px 0px; -webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 13px; -moz-box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 13px; box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 13px; } @media (max-width: 767px) { .sf-menu li ul { top: 0; } } .sf-menu li li ul { position: static; display: block !important; opacity: 1 !important; background: none; -webkit-box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px; -moz-box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px; box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px; } .sf-menu li li li ul { padding: 0 0 0 20px; } .sf-menu li li li ul { width: 220px; } ul.sf-menu li:hover li ul, ul.sf-menu li.sfHover li ul { top: -999em; } ul.sf-menu li li:hover ul, ul.sf-menu li li.sfHover ul { left: 200px; /* match ul width */ top: 0; } ul.sf-menu li li:hover li ul, ul.sf-menu li li.sfHover li ul { top: -999em; } ul.sf-menu li li li:hover ul, ul.sf-menu li li li.sfHover ul { left: 200px; /* match ul width */ top: 0; } .sf-menu > li > ul { padding: 26px 30px 31px; width: 100%; } .sf-menu > li > ul > li > a { text-transform: uppercase; font: 600 16px/20px "Open Sans", sans-serif; color: #515151; display: block; } .sf-menu > li > ul > li > a:hover { color: white; background-color: #cc4c2f; background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; background-clip: border-box; background-origin: padding-box; background-size: auto auto; } .sf-menu > li > ul > li { float: left; width: 20%; padding-right: 15px; } @media (max-width: 767px) { .sf-menu > li > ul > li { width: 50%; } } @media (max-width: 479px) { .sf-menu > li > ul > li { width: 100%; padding-bottom: 20px; } } @media (min-width: 768px) { .sf-menu > li > ul > li.first-in-line-lg { clear: left; } } @media (min-width: 480px) and (max-width: 767px) { .sf-menu > li > ul > li.first-in-line-xs { clear: left; } } .sf-menu > li > ul > li#category-thumbnail { width: 100% !important; float: none; clear: both; overflow: hidden; padding-right: 0; } .sf-menu > li > ul > li#category-thumbnail > div { float: left; padding-left: 10px; width: 33.333%; } @media (max-width: 479px) { .sf-menu > li > ul > li#category-thumbnail > div { width: 100%; padding-left: 0; padding-top: 10px; text-align: center; } } .sf-menu > li > ul > li#category-thumbnail > div:first-child { padding-left: 0; } .sf-menu > li > ul > li#category-thumbnail > div img { max-width: 100%; display: block; } .cat-title { display: none; } @media (max-width: 767px) { .cat-title { display: block; font: 600 18px/22px "Open Sans", sans-serif; text-transform: uppercase; color: #484848; display: block; padding: 17px 20px; border-bottom: 3px solid #e9e9e9; background: #f6f6f6; position: relative; } .cat-title:hover { background: #333333; border-bottom-color: #666666; color: white; } .cat-title:after { display: block; font-family: "FontAwesome"; content: "\f067"; position: absolute; right: 15px; top: 18px; font-size: 26px; } .cat-title.active:after { content: "\f068"; } } .sf-menu li.sf-search { border: none; } .sf-menu li.sf-search input { display: inline; padding: 0 13px; height: 30px; line-height: 30px; background: white; margin: 13px 10px 0 0; font-size: 13px; color: #9c9b9b; border: 1px solid #d6d4d4; } I have added line #12 Edited September 6, 2014 by simon5968 (see edit history) Link to comment Share on other sites More sharing options...
simon5968 Posted September 6, 2014 Author Share Posted September 6, 2014 the red background is in the currect place it is the blouses link that needs moving down and I am thinking down by 13 px but where do I need that? Link to comment Share on other sites More sharing options...
simon5968 Posted September 6, 2014 Author Share Posted September 6, 2014 OK thanks for all the help I have sorted it out. all I need to do is add: top: 4px; to block on line #70 (.sf-menu li li li a). now it is all working fine. Link to comment Share on other sites More sharing options...
antwake Posted September 6, 2014 Share Posted September 6, 2014 You mean blouses should have the red background? Hey Nemo, since you don't answer your website's customer service, I thought I'd ask for your attention here. could you look at the message #ct216 #tctN5YkgW ? grazie Link to comment Share on other sites More sharing options...
NemoPS Posted September 6, 2014 Share Posted September 6, 2014 Hey Nemo, since you don't answer your website's customer service, I thought I'd ask for your attention here. could you look at the message #ct216 #tctN5YkgW ? grazie Hi, Sorry but what are you referring to exactly? I always answer all messages, no idea what you are referring to with those # Where did you send the email? Link to comment Share on other sites More sharing options...
antwake Posted September 6, 2014 Share Posted September 6, 2014 Thanks for your reply And sorry to the OP to hijack his/her post :/ here's the subject of the conirmation mail I got from your website: [Prestashop Modules Store - Nemo's PostScriptum] Your message has been correctly sent #ct216 #tctN5YkgWXEaBm and here's a screenshot of the message: Link to comment Share on other sites More sharing options...
NemoPS Posted September 8, 2014 Share Posted September 8, 2014 Weird! Never got that as far as I can see, but in any case not to continue crowding the forums with private questions you can write me at [email protected] so we can continue the discussion by email Anyway yes it won't remove any default functionality from presta and will have keyword check for the rewritten url as well 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now