hi i have a problem with absolute positioning , i want max/min-width/height and centering for page that has background; this is my css code but doesent work for centering ... i need align body to center with this coditions
css code :
body
{
position:absolute;
font-family: "b nazanin","b roya", times new roman;
font-size:16px;
min-width:948px;
min-height:550px;
width:1280px;
height:700px;
}
html
{
background: fixed -webkit-linear-gradient(red, blue); /* For Safari */
background: fixed -o-linear-gradient(red, blue); /* For Opera 11.1 to 12.0 */
background: fixed -moz-linear-gradient(red, blue); /* For Firefox 3.6 to 15 */
background: fixed -webkit-linear-gradient(red, blue); /* For Firefox 3.6 to 15 */
background: fixed linear-gradient(red, blue);
}