Hello, I'm having a bit of trouble with some HTML code.
Everything looks and functions fine, except when I hover over the button.
If the cursor is over the text in the button, then the text is visible.
But, if it's not over the text, then the text is invisible.
Any tips on how keep the text visible at all times while hovering over the button?
Here's the code: https://www.w3schools.com/code/tryit.asp?filename=G594BTR3OTJK
It behaves a little differently in different browsers, but some of the styling doesn't work because of errors in HTML and CSS. If you fix the errors it should work in SOME browsers, I think.
Especially the following errors.
You have two style blocks (why?). You haven't closed the first one, there is no end tag for STYLE.
None of the links are correct. In button1 you close the link with a start tag for A instead of an end tag. In button2 there isn't even an attempt to close the link.
But even if you correct the errors you have to rethink this. Because BUTTON can't contain A. In plain English, you can't put a link in a button.
Thanks, pandy for such an excellent answer..It was helpful for me..Keep up!
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)