bom dia minha página está assim…
<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<!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=ISO-8859-1" />
<title>Sistema volens</title>
<link rel="stylesheet" type="text/css" href="../css/model_alpha.css" />
</head>
<body>
<f:view>
<form action="get">
<div id="divcentral">
<h:form>
<h:commandButton value="Sair"></h:commandButton>
</h:form>
</div>
</form>
</f:view>
</body>
</html>
e meu arquivo model_alpha.css está assim…
@CHARSET "ISO-8859-1";
body
{
margin: 0px;
padding: opx;
}
body #divcentral
{
position: relative;
width: 900px;
height: 780px;
background-color: red;
margin-left: auto;
margin-right: auto;
}
na verdade a página fez o daownload do css externo, mas a propriedade que define a margem para a div como auto não foi aplicada, ela só é aplicada se eu tirar
as tags do jsf e deixar só html. Como posso resolver isso, tenho que importar o arquivo css de outra forma?
obrigado
