I have this CSS:
#center{
display:table-row;
border:solid #55A 1px;
background-color:#AAF;
height:100%;
}
Actually, the border property is just ignored. Why? How can I Fix it?
DEMO
Thanks
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.
If you add a ‘cell’ to the table-row, for example:
Then the following CSS works:
JS Fiddle demo.
It’s important to remember that the browser will render an element as you tell it to; so if you tell a
divtodisplay: table-rowit will display that way; and atable-rowdoes not have aborder.table-cells do, though, which is why I added the childdivand assigned it thatdisplayproperty.