How can I draw a field using css like an answer field on stackoverflow?
5 answers
CSS
.answerbox
{
height: 150px; /*Specify Height*/
width: 150px; /*Specify Width*/
border: 1px solid black; /*Add 1px solid border, use any color you want*/
background-color: green; /*Add a background color to the box*/
text-align:center; /*Align the text to the center*/
}
HTML: <div class="answerbox">4 <br /> Answers</div>
+3
source to share
this page: http://www.w3.org/TR/CSS2/box.html
was the first page found in a google search for "css box"
0
source to share
You can also use the AIS Accessibility Toolbar - http://www.visionaustralia.org.au/ais/toolbar/ - to expose the CSS used for the site among all host other things.
0
source to share