I have a simple DIV with some text in it. I want to align it vertically in the DIV. How to do it?
This is my cide:
#menu
{
poistion: center;
width: 660px;
height: 40px;
background-color: #e86d1b;
}if the text is one line long use the line-height property. the vertical align property has little if any support.it's really funny that I can't vertical align the text in a simple way.what's this position:center?
can we see all the code as it stands now?the property for vertical align is vertical-align: top | middle | bottom but Dave is saying that it doesnt have much support
This is my cide:
#menu
{
poistion: center;
width: 660px;
height: 40px;
background-color: #e86d1b;
}if the text is one line long use the line-height property. the vertical align property has little if any support.it's really funny that I can't vertical align the text in a simple way.what's this position:center?
can we see all the code as it stands now?the property for vertical align is vertical-align: top | middle | bottom but Dave is saying that it doesnt have much support