can I define border width. like .box{ width:200px; height:100px; border-bottom:1px solid #000; } box
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.
It sounds like you want half a border. Strange, but doable, I think. This is working in Firefox, Chrome, and Safari. MSIE I don’t have on hand at the moment, and may cause problems.
The way this works is to have an enclosing box with a background-color that’s half as wide, and 1 pixel taller than
div.box. I put a background of gray on the body so you can see it working.