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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ismailc
    New Member
    • Sep 2006
    • 200

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

    Good day, RamananKaliraja n 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.

    Code:
    <div id="light" class="white_content">
        <div class="bgErrorMessage">
         [B]  <table>[/B]   <-- <div> -->
              <xsl:for-each... (xslt)			
         [B]    <tr>  <-- <div> -->
                <td>[/B]<-- <div> -->
    	<xsl:call-template name="CreateObject">
    	     <xsl:with-param name="Object" select="." />
    	</xsl:call-template>			
       [B]          </td><-- <div> -->
             </tr>[/B]<-- <div> -->
          </xsl:for-each>
           <input type="button" value="close" onclick="closePopUp();"></input>
        [B]</table>[/B] <-- <div> -->
      </div>
    </div>
  • RamananKalirajan
    Contributor
    • Mar 2008
    • 608

    #2
    Hi Ismail,
    Hope this would help you,
    Code:
    <div id="light" class="white_content">
        <div class="bgErrorMessage">
           <div style="float:left;width:100%;">
              <xsl:for-each... (xslt)            
    			<div style="float:left;width:100%;">
    				<xsl:call-template name="CreateObject">
    					 <xsl:with-param name="Object" select="." />
    				</xsl:call-template>            
    			</div>
    	      </xsl:for-each>
           <input type="button" value="close" onclick="closePopUp();"></input>
        </div>
      </div>
    </div>
    Thanks and Regards
    Ramanan Kalirajan

    Comment

    • ismailc
      New Member
      • Sep 2006
      • 200

      #3
      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

      Comment

      • ismailc
        New Member
        • Sep 2006
        • 200

        #4
        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?

        Code:
        [B]<tr>
        <td>[/B]
            <div id="light" class="white_content">
                <div class="bgErrorMessage">			                   <table border="1">
              <xsl:for-each select="Activity/ObjectGroup[@type='default']/Object">

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #5
          That's more an HTML/CSS question.

          Comment

          Working...