I know the heading is a bit 'you what?'. So i'll try to explain.
I have a CSS Menu, I want each <a> within the <li> to have a padding of 20px; left & right, basicaly widening the width of each menu.
I don't want to add a hardcoded width as I need each menu item to be different widths depending on its content.
giving the <a> padding:0 20px; works great, however! , the padding either side of the 'menu word' does not activate the hover effect, nor work as an onclick anchor should.
I have the <a> defined as 'block' and thought padding was something added to the inner part of an element, i.e. being part of its content, where as margin being on the outside of an element.
How do I make the padding part of the hover/anchor effect, i know I could give each menu item a separate class and hard code each width in the CSS removing the padding, but that seems long winded and excessive, or is that the only way to acheive the effect I want.
hope that makes sense, here is the current test site
regards,
1DMF
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
I have a CSS Menu, I want each <a> within the <li> to have a padding of 20px; left & right, basicaly widening the width of each menu.
I don't want to add a hardcoded width as I need each menu item to be different widths depending on its content.
giving the <a> padding:0 20px; works great, however! , the padding either side of the 'menu word' does not activate the hover effect, nor work as an onclick anchor should.
I have the <a> defined as 'block' and thought padding was something added to the inner part of an element, i.e. being part of its content, where as margin being on the outside of an element.
How do I make the padding part of the hover/anchor effect, i know I could give each menu item a separate class and hard code each width in the CSS removing the padding, but that seems long winded and excessive, or is that the only way to acheive the effect I want.
hope that makes sense, here is the current test site
regards,
1DMF
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.