Is it possible to set some width to the <a> tag in html ?
If yes what is the way, if no is there any work around ??
Is it possible to set some width to the <a> tag in html ?
Share
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.
You can redefine it as a block element and then set width to it:
a{display:block;width:400px}.EDIT: However, in this case it will start on a new line and the next piece of text will also be in a new line. What solves the problem, is
inline-blockdisplay mode, but this again has problems with older versions of IE and FF (see here: http://caniuse.com/#search=inline-block)