Forum Moderators: not2easy
.midhead {
margin-left: 0 auto;
margin-left: 0 auto;
position: relative ;
padding: 10px;
}
.centrecolumn {
padding-left:50px;
padding-top: 40px;
font-family: georgia;
font-size: 12px;
color: #C0C0C0;
text-decoration: none;
text-align: justify;
border: hidden;
margin-left: 3in;
margin-right: 3in;
position:relative top;
}
</head>
<body>
<div class="centrecolumn">
<div class="midhead">{featuredListings}</div>
</div>
</div>
</body
Your code is invalid which won't help. The margins in .minhead should only contain one value. You can have either:
margin: 0 auto;
or
margin-left:0
Also the postion element in .centrecolumn should not contain the "top".
Now onto your problem. If you just want the text to centre than add:
text-align:center; to midhead
If you want the whole midhead to centre then add a width to it and set a margin like this:
margin: 0 auto;
That will then centre the box.