I have a following html code
<a href="www.example.com" title="example">Link</a>
what i want is to change the size background color and other properties of title. is it possible?
I don't think you can style the title, but you can emulate its functionality by using a data attribute with a CSS :after
pseudo-element on hover:
a {
position: relative;
}
a:hover:after {
content: attr(data-title);
position: absolute;
font: 10px verdana;
top: -110%;
left: 0;
background: #ace;
color: black;
box-sizing: border-box;
border: 1px solid gray;
border-radius: 20%;
padding: 3px;
}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
<a href="www.example.com" data-title="example">Link</a>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With