title: Grid layout with css?
body: <p>I'm trying to create some kind of grid layout with css:</p>
  
  <p>Having a content div, which is devided into 2 colums: main + right.</p>
  
  <p>Now I have 2 kinds of elements. I always want these elements to align side by side.</p>
  
  <p>So I'm having something like this:</p>
  
  <pre><code>#outerPanel{
   width:100%; 
   float:right; 
   position:relative; 
    }
  
  #rightcol{
   width:35%; 
   float:right; 
   position:relative; 
   }
  
  #maincol{
   float: left; 
   position: relative; 
   width:65%; 
   }
  </code></pre>
  
  <p>and my index.xhtml:</p>
  
  <pre><code>    &lt;p:panel id="outerPanel"&gt;
  
              &lt;h:panelGroup id="maincol"&gt;
                  &lt;ui:include src="table1.xhtml" /&gt;
              &lt;/h:panelGroup&gt;
              &lt;h:panelGroup id="rightcol"&gt;
                  &lt;ui:include src="input1.xhtml" /&gt;
              &lt;/h:panelGroup&gt;
  
              &lt;h:panelGroup id="maincol"&gt;
                  &lt;ui:include src="table2.xhtml" /&gt;
              &lt;/h:panelGroup&gt;
              &lt;h:panelGroup id="rightcol"&gt;
                  &lt;ui:include src="input2.xhtml" /&gt;
              &lt;/h:panelGroup&gt;
  
  
      &lt;/p:panel&gt;
  </code></pre>
  
  <p>Of course this does only work for the first occurrence of the id's, as one is not allowed to reuse the id.
  But this shows what I'm trying to do. How can I else set it up?</p>
  
  <p>thnx</p>