DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Some div elements don't display

  1. #1
    Join Date
    Dec 2008
    Posts
    2

    Unhappy Some div elements don't display

    I am loading an xml document which contains a DIV structure as follows:
    <content>
    <div class="a">
    <div class="a1"><img src="a1.jpg" /></div>
    <div class="a2"><img src="a2.jpg" /></div>
    <div class="a3"><p>Some text</p></div>
    <div class="a4"><p>More text</p><p>still more text</p></div>
    </div>
    </content>

    The xml becomes the content of a data island (id=xmldata), and I then bind the top div (class "a") to another pre-existing div (id="xmldestination"):

    <body>
    <div id="main">
    <div id="content">
    <div id="logo">[html here]</div>
    <div id="nav">[html here]</div>
    <div id="xmlholder">
    <xml id=xmldata></xml>
    <div id="xmldestination"></div>
    </div>
    </div>
    <div id="footer">[html here]</div>
    </body>

    So far, so good. If I look at the resulting dom, everything is bound properly. That is to say, the xmldata node contains the <content> node structure, and the xmldestination div contains the <div class="a"> structure.

    However, only the a4 div is visible. The others appear in the dom with the correct contents, but do not display.

    Any ideas?

  2. #2
    Join Date
    Oct 2005
    Location
    Maady
    Posts
    1,819
    r u sure there is no interaction between classes ? i.e (a, a1, a2 .. etc) ...
    can u see the <content> itself alone correctly?
    Programmer&Cracker CS
    MyBlog:Blog.Amahdy.com
    MyWebsite:www.Amahdy.com

  3. #3
    Join Date
    Dec 2008
    Posts
    2

    Talking

    Ah, that's the clue I needed. Yes, the classes were interfering with each other.

    Thanx!

Similar Threads

  1. Changing page container div with ajax
    By wtvamp in forum AJAX
    Replies: 2
    Last Post: 12-14-2007, 04:10 PM
  2. XML/XSL display issue
    By biggie_mac in forum XML
    Replies: 1
    Last Post: 05-25-2007, 04:00 AM
  3. Scrollbars in IE display in the DIV tag
    By Billkamm in forum Web
    Replies: 0
    Last Post: 04-20-2006, 01:58 PM
  4. Replies: 1
    Last Post: 07-25-2005, 09:00 AM
  5. Display XML element attributes in CSS or XSL
    By Allen Pitts in forum XML
    Replies: 0
    Last Post: 10-31-2002, 04:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center