I have been trying to add an image next to my navigation menu using CSS pseudo selectors ::before or ::after.
.menu_container::before{
content: "";
background: transparent url('ISO.png') no-repeat;
position:relative;
float:right;
width: 50px;
height:100px;
}
When i use above code, the image is positioned on a line before the actual menu. When I use the ::after selector it goes to the next line.
I have tried almost all the solutions given in this forum for similar issues. But nothing worked. Really appreciate your support.
Thanks heaps.
Try this.....
/* now u can change where ever you want your before , after div */