Consult the CSS wrong?

Ask how to internal highly ineffective, but why not centered?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style>
.commart {
width:752px;
border:1px solid rgb(225,231,245);
font-size:14px;
line-height:28px;


}
.commart ptitle {
text-align:center;
height:1000px;

font-size:18px;
font-weight:bold;
width:750px;


}
</style>
</head>

<body>
<div class="commart">
<div class="ptitle">
fsdgahdwhsh
</div>
</div>
</body>
</html>

Started by Abraham at November 15, 2013 - 8:01 PM

Note that one less.

.commart .ptitle {

Posted by Jeff at November 26, 2013 - 8:10 PM

The internal height and middle levels are normal, DIV vertically centered a bit of trouble

Posted by Sean at December 07, 2013 - 8:57 PM