dug Posted September 5, 2006 Share Posted September 5, 2006 Hi guys,got the following css code that works fine, but i just dont seem to able to have space betweeh each sub-menu title. i.e. Main-menu Ttitle: INFOSub-menu Title: About us Job Oppertunites what i want is space between "About us" and "Job Oppertunities".[code=php:0]<style type="text/css">#nav, #nav ul { /* all lists */ padding: 0; margin:0; list-style: none; line-height: 1;}#nav a { display: block;/*display sub below main menu*/ width: 8em;}#nav li { /* all list items */ float: right; width: 6em; }#nav li ul { /* second-level lists */ position: absolute; /*hide sub content, display whem mouse over*/ background: transparant; width: 7em; font-size:12px; list-style-type: none; left: -999em; }#nav li:hover ul, #nav li.sfhover ul { /* lists nested under hovered list items */ left: auto;}#content { clear: left;}[/code]thanks Quote Link to comment Share on other sites More sharing options...
syed Posted September 6, 2006 Share Posted September 6, 2006 Try setting the padding of the li tag padding-top:0.2em; something like that Quote Link to comment Share on other sites More sharing options...
dug Posted September 6, 2006 Author Share Posted September 6, 2006 thanks for the help. had it fixed already after trial and error, it was to do with the padding.cheers Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.