473,563 Members | 2,709 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

200 New Member
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.

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
4 3598
RamananKalirajan
608 Contributor
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 New Member
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 New Member
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 Recognized Expert Moderator MVP
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
23972
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 <div> Hide/Show work but not the divRow version? What I'm trying to do here is simultaneously hide 1 or more rows (possibly with nested divs as well)....
61
24418
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 'stretch'</td> <td valign="top" width="300">some data that won't 'stetch'</td> </tr> </table>
1
3897
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. It used to be something like this: <table> <tr> <td><img>caption</td> <td><img>caption</td>
44
919
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 put either tag inside an HTML <TD> and have the same kind of scrolling effect. This would allow me to fill the screen and have the size of the...
4
2351
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
5093
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: 1. If an option is selected for which results are available, they should be displayed on the same page beneath the drop down list in a table....
15
2238
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 done using a table. A, B, and C were each <tdelements.
10
14142
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 able to get the response in the <div> tag in mozilla (im takingthe HTML response), <script> function confirm() { xmlHttp=GetXmlHttpObject();...
6
2042
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 &nbsp;&nbsp; </td>
0
7583
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7885
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6250
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3642
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1198
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.