473,394 Members | 1,787 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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

200 100+
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

4 3590
RamananKalirajan
608 512MB
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
ismailc
200 100+
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
ismailc
200 100+
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
16,027 Expert Mod 8TB
That's more an HTML/CSS question.
Jan 31 '10 #5

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

Similar topics

8
by: F. Da Costa | last post by:
Following is a snippet of html in which I hide a whole table and try to hide a single row. Here is my question (plz don't chew my head off if its css related instead): Why does the divTable...
61
by: Toby Austin | last post by:
I'm trying to replace <table>s with <div>s as much as possible. However, I can't figure out how to do the following… <table> <tr> <td valign="top" width="100%">some data that will...
1
by: Alan Hoyle | last post by:
I was using a <table border> to generate borders around some info/images, and decided to follow the w3c guidelines and convert it to CSS boxes with borders since it wasn't really tabular data. ...
44
by: Jim M | last post by:
I have had great success with using <iframe> with overflow-y set to auto. I can get a similar look with the <iframe> tag. BUT... In all cases I need to have fixed heights. Is there a way to...
4
by: David | last post by:
I attempted the following <div id="div" runat="server"> <tr><td></td></tr> <tr><td></td></tr> </div> This is to hide a group of rows depending on some business rules in my code behind.
6
by: cargo303 | last post by:
I have a php page with a drop down list, and the default selected option is "Select a location" (without quotes). Using the drop down initiates a database query. One of (3) things should happen: ...
15
by: scott | last post by:
Hello, I'm working on updating some of my table-based sites to use CSS instead of tables. One of my sites has a header that is composed of three elements: A B C In my prior design, this was...
10
by: neverquit | last post by:
hi , Iam Nagesh,Begineer in using Ajax,well i have been using ajax in application, i have faced a problem while placing the responseTEXT into the <div> tag positioned inside the <form> tag iam...
6
by: Phper | last post by:
How to convert the common html table code below <table align="center"> <tr> <td 1.1 &nbsp;&nbsp; </td> <td 1.2 &nbsp; &nbsp; </td> <td 1.3 &nbsp;&nbsp; </td> </tr> <tr> <td 2.1 ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.