I want to create span exactly like an input textbox , but inside the span, it is a href link .
Please advise.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m not sure why you would want to “deceive” a user by making an
atag look like aninput, but I will trust your reasoning is honorable. Mr Lister had a good comment that different browsers renderinputdifferently. That being so, I think your best bet at getting something that works fairly well cross-browser is something like this (the first in the example is a link, the second a real input to compare).I only tested this in FF. I set the opacity of the text in the
athrough thergbato hide it but keep it for search engine purposes (so you don’t just have an emptyatag as far as the search engines are concerned). In using a “real”inputto achieve the look, it adds non-semantic html, but it does allow for better cross-browser rendering of the box.HTML
CSS