Matej Posted August 16, 2014 Share Posted August 16, 2014 Hello , im building drop down menu here http://jsfiddle.net/f0b2tu1x/24/ if you :hover on products , the menu appears but its not exactly "under" the products , its width its smaller , i was trying to fix it with padding or margin but nothing works , can somebode please help me? Link to comment Share on other sites More sharing options...
dsonesuk Posted August 17, 2014 Share Posted August 17, 2014 (edited) http://jsfiddle.net/f0b2tu1x/25/ you can min-width: 145px; if you think the sub menu text won't be any wider, or min-width: 100%; which will make it the same width as parent using position: relative; but will grow to accommodate wider text. Edited August 17, 2014 by dsonesuk 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