Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 25th, 2003, 09:04 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default Nested Img Floating and NS 7

Code:
<div style='margin-bottom: 20px; width: 100%;'>

<a href="/index.php?content=264&amp;PHPSESSID=e358834245b95f2a4e3a9f27b1622842&amp;submission=631" style="text-transform: lowercase; font-weight: bold;">Amoeba Cat Strings</a>
<div class='userdetails'>
    <div id="userdetails">Richard York (<a href="/index.php?content=335&amp;user=58&amp;PHPSESSID=e358834245b95f2a4e3a9f27b1622842">richy</a>) of Greencastle, Indiana </div>
</div>
<div style='margin-bottom: 10px; width: 100%;'>

    <img src="images/thumb.php?submission=631" style="width: 54px; height: 75px; margin: 5px; vertical-align: middle; float: left;" alt="Amoeba Cat Strings" />

    <div class='description' style='margin: 8px;'>

        <span style="font-style: italic">Click to see a full-sized image...</span><br />

    </div>
</div>
<div class='accessdetails' style='float: none; margin-top: 0px;'>
views: (8); rating: <a href="/index.php?content=243&amp;user=58&amp;PHPSESSID=e358834245b95f2a4e3a9f27b1622842">(unrated)</a> </div></div>
This mark-up works perfectly on IE 6. However when I run it on NN 7 or Moz 1, the image with the float property set to 'left' causes all following div elements to float to the right of the image regardless of nesting. One would expect that since the image is nested inside of a <div> that subsequent <div> elements would not float to the right of it. This is incredibly annoying! Anyone know how to force Navigator to stop doing this?!?

This code is used to format database output, so there is a repeating sequence of mark-up identical to the above that outputs up to ten times on a page.

Any insight would be gratefully received.

: )
Rich

:::::::::::::::::::::::::::::::::
Smiling Souls
http://www.smilingsouls.net
:::::::::::::::::::::::::::::::::





Similar Threads
Thread Thread Starter Forum Replies Last Post
Formating Floating point atoyot Visual Basic 2005 Basics 2 April 26th, 2006 08:36 PM
changing two frams at the same time in NS nightshonour Javascript How-To 1 May 3rd, 2005 07:28 PM
SQL ns won't install jimbeam36 .NET Web Services 0 November 17th, 2004 03:33 AM
Works with IE5 and IE6, but not NS vincentms Beginning PHP 8 August 14th, 2003 06:18 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.