2 Replies Latest reply on Mar 19, 2008 6:27 PM by sergeysmirnov

    Problems with styles

    lponce

      Hi, I have a very simple problem to apply a css style in my richfaces, I follow the example but it doen't work. Please could you help me ?

      I put my example:


      World Web Demo Application

      .body1 {
      background: #FFFFFF;
      }



      <f:view contentType="text/html">
      <rich:panel bodyClass="body1" >
      <h:graphicImage id="logo" value="/img/logo.gif" style="vertical-align:middle" ></h:graphicImage> World Web Example
      </rich:panel>

      <rich:spacer width="1" height="10"/>


      In this example the css-class body1 is not aplied to the rich:panel.

      Any hint ?

      Thanks,

        • 1. Re: Problems with styles
          lponce

          Sorry I don't put well the html code in my previous post.

          Here, it is the code:

          <head>
          <title>World Web Demo Application</title>
          <style>
           .body1 {
           background: #FFFFFF;
           }
          </style>
          </head>
          <body>
           <f:view contentType="text/html">
           <rich:panel bodyClass="body1" >
           <h:graphicImage id="logo" value="/img/logo.gif" style="vertical-align:middle" ></h:graphicImage> World Web Example
           </rich:panel>
          
           <rich:spacer width="1" height="10"/>
          


          • 2. Re: Problems with styles

            Just use correct css rules.