Image de fond d'une page JSF
Bonjour,
Je veux mettre une image au fond d'une page JSF.
Je procède comme suit:
fichier fond.css:
Code:
1 2 3 4
|
.fond {
background-image: url(fond.jpg);
} |
Page xhtml
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
<h:head>
<link rel='stylesheet'
media='screen'
type='text/css'
title='Design'
href='resources/css/fond.css' />
</h:head>
</h:head>
<h:body>
<p:layout fullPage="true">
<p:layoutUnit position="north" styleClass="fond" size="120">
<center>
Titre
</center>
</p:layoutUnit> |
Mais ça ne marche pas, Ou est le problème?
Merci beaucoup en avance.