Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2678 connectés 

  FORUM HardWare.fr
  Programmation
  HTML/CSS

  CSS : problème d'application d'une CSS

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

CSS : problème d'application d'une CSS

n°1459962
Giz
Posté le 18-10-2006 à 18:21:01  profilanswer
 

Voici mon code HTML :
 

<html>
<f:view>
 <head>
 <title><h:outputText
  value="#{bundle_text['text.index_jsp.title']}" /></title>
  <link href="http://localhost:8080/JSF-VALIDATION/style_jsf.css" rel="stylesheet" type="text/css">
 </head>
 <body>
 <table class="titleFrame">
  <tr>
   <td class="title"><h:outputText
    value="#{bundle_text['text.index_jsp.title']}" /></td>
  </tr>
 </table>


 
Voici la stylesheet associée :
 

#index page
table.titleFrame {background-color: #FF8080; border: red}
td.title {color: black; font-weight: bold}


 
Le text de "<h:outputText
    value="#{bundle_text['text.index_jsp.title']}" />" apparaît bien en gras (le style de td est bien pris en compte) mais le fond n'est pas rouge ! (la class "titleFrame" marche pas). Or si je fais un copier coller dans un attribut "style" avec la balise <table>, ca marche ! Pourquoi ma css est à moitié linkée alors :??:
 
 

mood
Publicité
Posté le 18-10-2006 à 18:21:01  profilanswer
 

n°1459973
mIRROR
Chevreuillobolchévik
Posté le 18-10-2006 à 18:28:40  profilanswer
 

Giz a écrit :

Voici mon code HTML :
 

<html>
<f:view>
 <head>
 <title><h:outputText
  value="#{bundle_text['text.index_jsp.title']}" /></title>
  <link href="http://localhost:8080/JSF-VALIDATION/style_jsf.css" rel="stylesheet" type="text/css">
 </head>
 <body>
 <table class="titleFrame">
  <tr>
   <td class="title"><h:outputText
    value="#{bundle_text['text.index_jsp.title']}" /></td>
  </tr>
 </table>


 
Voici la stylesheet associée :
 

#index page
table.titleFrame {background-color: #FF8080; border: red}
td.title {color: black; font-weight: bold}


 
Le text de "<h:outputText
    value="#{bundle_text['text.index_jsp.title']}" />" apparaît bien en gras (le style de td est bien pris en compte) mais le fond n'est pas rouge ! (la class "titleFrame" marche pas). Or si je fais un copier coller dans un attribut "style" avec la balise <table>, ca marche ! Pourquoi ma css est à moitié linkée alors :??:


 
t as pas d id index donc toute ta ligne est ignorée :/

n°1459981
omega2
Posté le 18-10-2006 à 18:34:34  profilanswer
 

C'est quoi comme type de balise "<h>" et "<f>" ?
 
PS : Zut, mirror m'a grillé.

n°1459983
Giz
Posté le 18-10-2006 à 18:35:51  profilanswer
 

explique ! :sweat:  
 
NB : j'ai essaié de même en utilisant juste un div a la place du tableau...le résultat est le même : la stylesheet, bien que correctement linkée, est ignorée :/.

n°1459985
Giz
Posté le 18-10-2006 à 18:36:44  profilanswer
 

omega2 a écrit :

C'est quoi comme type de balise "<h>" et "<f>" ?
 
PS : Zut, mirror m'a grillé.


 
Non, c'est rien (du code dynamique c tout)

n°1459989
mIRROR
Chevreuillobolchévik
Posté le 18-10-2006 à 18:37:54  profilanswer
 

tu enleves #index page qui ne correspond a rien et tu laisse juste  
table.titleFrame {background-color: #FF8080; border: red}

n°1459991
Giz
Posté le 18-10-2006 à 18:39:21  profilanswer
 

mIRROR a écrit :

tu enleves #index page qui ne correspond a rien et tu laisse juste  
table.titleFrame {background-color: #FF8080; border: red}


 
Merci :). Mais je croyais que c'était un commentaire [:petrus75].

n°1459994
mIRROR
Chevreuillobolchévik
Posté le 18-10-2006 à 18:41:08  profilanswer
 

je m en doutais :D
/* un commentaire en css */


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  HTML/CSS

  CSS : problème d'application d'une CSS

 

Sujets relatifs
probleme avec easyphp 1.8Problème de liens entre IE et FF
MCD/Concept] Quelle solution pour mon probleme ?[JSP] problème à la compilation : bean pas trouvé.
probleme charset texte page web -> mailProblème de retour chariot dans mon css
[linux-wxwidgets] Probleme de cross compilation vers windows[CSS / HTML] Supprimer le Scrolling vertical IFRAME
problème de replaceAll avec "&"Conflits entre menu et thème CSS
Plus de sujets relatifs à : CSS : problème d'application d'une CSS


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR