473,698 Members | 2,102 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 3613
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
23991
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). This would allow for an elegant an well performing base for an html base treetable (but I guess...
61
24477
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
3904
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 scrolling box change on resize. Thanks in advance.
4
2356
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
5100
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. 2. If an option is selected for which results are NOT available, a
15
2254
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
14164
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(); if (xmlHttp==null)
6
2045
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
8668
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8598
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9152
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9014
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8885
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8855
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7708
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5857
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4612
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.