Make entire a tag area clickable without missing a space

0 votes
added Jul 14, 2017 in CSS by Callum Sergeant (1,440 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. 


a {  display: block; } - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.