How Do I make a small styled hover text? like the text in the white box but it is styled I want the color of the text to be white and the background to be black and it appears 0.1 seconds on hover. The text should display Unavalible Or No Previous Page.
HTML:
<a class="previous aa nv"><strong>«</strong> Previous</a>
<a href="#" class="next aa">Next <strong>»</strong></a>
Are you talking about “titles”? You can just add a title attribute to your link as shown below…
<a class="previous aa nv" title="Unavailable"><strong>«</strong> Previous</a>
This will popup the little tooltip window when they hover over it.
If you want something more stylized, then you could always put in an element in the link, hidden of course, stylized and when you hover, then it shows. Much like how some CSS navigation menus work.
For instance you could do this…
<a class="previous aa nv"><strong>«</strong> Previous <span class="tooltip">Unavailable</span></a>
I am guessing you didn’t see the second half of my answer and check out the fiddle. Where it is styled.
As for the default tooltip, you can’t style it. It is actually drawn by the browser and not something you control. But again, check out my fiddle and you can quickly see how this can be something you can style anyway you want.
Ok thanks I read the code but did not see the fiddle because the default will the result of a CodePen or plain links have descriptions so I did not see the link.
Please remember that “hover” is not available to anyone using keyboard navigation or a touch screen, and ensure you provide the same information to them. As a general rule, anything you style for :hover should have the same or similar rules for :focus, to accommodate keyboard users.