Drop Down Menu / Posts /

How do I make the whole li clickable?

-1

How do I make the whole <li> clickable rather than just the text? In mobile mode, if my menu item is, say, "Home" that's only 25% of the width the menu item that is clickable.

Ballantyne

Bal de Wolf  9 years ago   viewed: 11458    

2 Answers

0

In ddmenu.css, the link anchor <a> is currently styled as: { display: table-row; }

You can change it to { display: block; } if you want the whole <li> to be clickable.

Milo   9 years ago
0

Thanks, although I should add that to keep the ul left aligned, you also have to add left:0; to the ul

Bal de Wolf   9 years ago

   

Your name*
Password
(Optional. Used to modify this post afterwords)
+ =  

Ask your Own Question

  • If your question is related to the topic of this post, you can post your question to this page by clicking the "Post a reply" button at left;

  • When you want to start a new page for your question: