Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

Make entire a tag area clickable without missing a space

0 votes
27 views
added Jul 14, 2017 in CSS by Callum Sergeant (1,480 points)
recategorized Jul 18, 2018 by LC Marshal

Example case:

<a href="javascript:void(0)" class="dropdown-toggle" type="button" data-toggle="dropdown"><i class="material-icons">share</i>Share</a>

Usually, there'll be missing spot in between <i> and text. Simply apply:

display: block; 

into style properties of a tag. 

E.g 

a {  display: block; }

Please log in or register to response this reference.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...