By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,442 Members | 1,311 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,442 IT Pros & Developers. It's quick & easy.

Setting alignment & css without using <table><tr><td> in <div>

100+
P: 200
Good day, RamananKalirajan helped me with a great script to do a popup div.

The problem i now have is that the popup div within the div does not like any table><tr><td>, so itried using <div> in place of tr
but not working to create nicely div, What can i use?
all the bold text are the problem areas.

Expand|Select|Wrap|Line Numbers
  1.  
  2. <div id="light" class="white_content">
  3.     <div class="bgErrorMessage">
  4.        <table>   <-- <div> -->
  5.           <xsl:for-each... (xslt)            
  6.          <tr>  <-- <div> -->
  7.             <td><-- <div> -->
  8.     <xsl:call-template name="CreateObject">
  9.          <xsl:with-param name="Object" select="." />
  10.     </xsl:call-template>            
  11.              </td><-- <div> -->
  12.          </tr><-- <div> -->
  13.       </xsl:for-each>
  14.        <input type="button" value="close" onclick="closePopUp();"></input>
  15.     </table> <-- <div> -->
  16.   </div>
  17. </div>
  18.  
Jan 23 '10 #1

✓ answered by RamananKalirajan

Hi Ismail,
Hope this would help you,
Expand|Select|Wrap|Line Numbers
  1. <div id="light" class="white_content">
  2.     <div class="bgErrorMessage">
  3.        <div style="float:left;width:100%;">
  4.           <xsl:for-each... (xslt)            
  5.             <div style="float:left;width:100%;">
  6.                 <xsl:call-template name="CreateObject">
  7.                      <xsl:with-param name="Object" select="." />
  8.                 </xsl:call-template>            
  9.             </div>
  10.           </xsl:for-each>
  11.        <input type="button" value="close" onclick="closePopUp();"></input>
  12.     </div>
  13.   </div>
  14. </div>
Thanks and Regards
Ramanan Kalirajan

Share this Question
Share on Google+
4 Replies


RamananKalirajan
100+
P: 607
Hi Ismail,
Hope this would help you,
Expand|Select|Wrap|Line Numbers
  1. <div id="light" class="white_content">
  2.     <div class="bgErrorMessage">
  3.        <div style="float:left;width:100%;">
  4.           <xsl:for-each... (xslt)            
  5.             <div style="float:left;width:100%;">
  6.                 <xsl:call-template name="CreateObject">
  7.                      <xsl:with-param name="Object" select="." />
  8.                 </xsl:call-template>            
  9.             </div>
  10.           </xsl:for-each>
  11.        <input type="button" value="close" onclick="closePopUp();"></input>
  12.     </div>
  13.   </div>
  14. </div>
Thanks and Regards
Ramanan Kalirajan
Jan 24 '10 #2

100+
P: 200
Hi, Unfortunately no luck :(
I cant seem to create new row & align the objects, everything is in one column beneath each other.

I also would like create a more stylish div, with the Div Popup having a title bar, close image in right corner etc.

Please help
Jan 24 '10 #3

100+
P: 200
Thank You - i managed to get it going, i had to insert it within a new row<tr>

Do you know of any ideas of making the div stylish to look similar to a popup window with close icon & title?

Expand|Select|Wrap|Line Numbers
  1. <tr>
  2. <td>
  3.     <div id="light" class="white_content">
  4.         <div class="bgErrorMessage">                               <table border="1">
  5.       <xsl:for-each select="Activity/ObjectGroup[@type='default']/Object">
  6.  
Jan 24 '10 #4

acoder
Expert Mod 15k+
P: 16,027
That's more an HTML/CSS question.
Jan 31 '10 #5

Post your reply

Sign in to post your reply or Sign up for a free account.