Imagem de fundo!

2 respostas
joaopaulofranco

Boa tarde galera, estou tentando colocar uma imagem de fundo em uma aplicação web vou colocar abaixo como está minha página principal, ajudem-me por favor!!!

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:t="http://myfaces.apache.org/tomahawk"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:rich="http://richfaces.org/rich"
	template="/templates/template.xhtml">
	<ui:define name="barra">
		<table border="0" cellpadding="0" cellspacing="0" width="100%">
			<tr>
				<td width="100%" valign="top" align="center" nowrap="nowrap"
					style="padding: 6px 0 0 0; font-size: 12px; font-weight: bold; color: #000000; font-family: verdana;">
				</td>
			</tr>
		</table>
	</ui:define>
	<ui:define name="complemento">
        <table align="center">
            <tr align="center">
                <td height="410" align="center">
                    <h:graphicImage value="imagens/tramit.jpg"/>   
                </td>
            </tr>
        </table>
    </ui:define>
</ui:composition>
e a imagem cisma em não apareçe o template é o seguinte:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:t="http://myfaces.apache.org/tomahawk"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:rich="http://richfaces.org/rich">
	<c:set var="ctx" value="#{facesContext.externalContext.request.contextPath}" />
	
	<ui:include src="mainMenu.xhtml"/>
	
	<ui:insert name="barra">
	</ui:insert>
	
	<ui:define name="complemento">
        <table align="center">
            <tr align="center">
                <td height="410" align="center">
                    <h:graphicImage value="imagens/tramit.jpg"/>   
                </td>
            </tr>
        </table>
    </ui:define>

</ui:composition>

Obrigado!!!

2 Respostas

E

recomendo estudar um pouco css. http://www.w3schools.com/css/css_background.asp

joaopaulofranco

a página fica com os menus dentro da barra e estra tudo funcionando visualização cadastro e tudo só falta a imagem no fundo da tela.

Criado 26 de outubro de 2011
Ultima resposta 26 de out. de 2011
Respostas 2
Participantes 2