Inserting a tooltip marker in the primary menu dropdown
by Tobias | 23. August 2021 |

Inserting a small triangular marker to the dropdown menu at the top left, pointing to the parent link in the main menu.
/* Insert a tooltip marker in the primary menu dropdown */
.sub-menu:before {
content: "";
background: #fff;
width: 10px; height: 10px;
margin-top:-5px;
position: absolute;
top:0px; left: 20px;
transform: rotate(45deg);
}
Discover more useful code snippets:
Tobias is a WordPress and Divi expert and the founder of Divitorials.com. As a passionate web designer, he helps small and medium-sized businesses as well as self-employed people and freelancers to be more successful online. In his free time he loves to play the guitar, to travel or to cook delicious dishes.