Problem clearing floats

Here is an interesting problem. My page has a left sidebar, which is obviously floated left. In the main part of the page, I want to float an image so the descriptive text will be next to it rather than below it. I have multiple images to do this with. So, if I try and clear the left float, the images nest to the right of the previous image, crowding up underneath the text. This is not desirable. If I clear the left float, it puts the next image at the bottom of the left sidebar, also not desirable. Only the footer should go below the left sidebar. I have checked in a css book, it gives a couple ideas, but they don't work as their examples are not for nested floats like this.
Any ideas? Here is the page: http://www.hainingfamily.com/media.php
Thanks,
Mike

Include your anchor within the <div> too. Ive renamed the <div> class 'pictureLink'
<div class="pictureLink">
<img src="images/TheHainingFamilyPromoPic.jpg" alt="color picture" width="90" height="60" />
<a href="images/thehainingfamilypromopic.jpg" target="_blank">Color Picture in jpg format (546KB)</a>
</div><!-- end pictureLink -->
<div class="pictureLink">
<img src="images/TheHainingFamilyPromoPic.jpg" alt="color picture" width="90" height="60" />
<a href="images/thehainingfamilypromopic.jpg" target="_blank">Color Picture in jpg format (546KB)</a>
</div><!-- end pictureLink -->
Then use this css to 'clear' and 'flloat' the image left.
.pictureLink {
width: 280px;
overflow: hidden;
margin: 0 0 10px 0;
.pictureLink img {
float: left;
No need then for your <br class="clrlft" />. Overflow: hidden; on the .pictureLink <div> forfills that purpose and makes the code cleaner and easier to manage.

Similar Messages

  • DW bug? Not clearing floats via overflow:hidden

    OK so I think I found a bug in Dreamweaver CS3's Design View.
    I have been using an alternative technique to clear floats using
    overflow:hidden. It's not a new technique but it is very clean. You
    can read about it here:
    http://www.quirksmode.org/css/clearing.html
    I believe the technique is valid, standards-compliant and
    rendered by all modern browsers. What happens in DW is that the
    floats are not cleared, and the containing box collapses. Here's
    some very basic code to test it:

    It's a well known flaw in CS3 and earlier Design view. It's
    fixed in CS4.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "sly one" <[email protected]> wrote in
    message
    news:g5ip1q$90r$[email protected]..
    > OK so I think I found a bug in Dreamweaver's Design
    View. I have been
    > using an
    > alternative technique to clear floats using
    overflow:hidden. It's not a
    > new
    > technique but it is very clean. You can read about it
    here:
    >
    http://www.quirksmode.org/css/clearing.html
    > I believe the technique is valid, standards-compliant
    and rendered by all
    > modern browsers. What happens in DW is that the floats
    are not cleared,
    > and the
    > containing box collapses. Here's some very basic code to
    test it:
    >
    >
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    > "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    > <html xmlns="
    http://www.w3.org/1999/xhtml">
    > <head>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=UTF-8" />
    > <title>Clear Floats with Overflow
    Hidden</title>
    > <style type="text/css">
    > <!--
    > body{
    > font-family: Arial, Helvetica, sans-serif;
    > }
    > div.container {
    > border: 1px solid #000000;
    > overflow: hidden;
    > width: 100%;
    > }
    >
    > div.left {
    > width: 45%;
    > float: left;
    > background:#FF9900;
    > }
    >
    > div.right {
    > width: 45%;
    > float: right;
    > background:#FF9900;
    > }
    >
    > -->
    > </style></head>
    >
    > <body>
    >
    > <div class="container" style="overflow: hidden;
    width: 100%">
    > <div class="left">
    > <p>The left column.</p>
    > <p>The left column.</p>
    > <p>The left column.</p>
    >
    > <p>The left column.</p>
    > </div>
    > <div class="right">
    > <p>The right column.</p>
    > <p>The right column.</p>
    > <p>The right column.</p>
    > </div>
    >
    > </div>
    >
    > </body>
    > </html>
    >

  • Dreamweaver cs3 Layout Clear Floats

    Have two sidebar divs and a maincontent div in the middle
    with a header at the top. In IE7 it displays incorrectly by moving
    the maincontent down below the clear float. Any help would be
    great.

    tfraga wrote:
    > Can anyone help me with some advise?
    Layout Mode has been removed from the Insert bar because it
    produces
    such poor quality code. The best advice to you is to learn
    the basics of
    HTML and CSS. You'll then find Dreamweaver a lot easier to
    use.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • I still have a problem clearing history and i did select time range to Everything

    I still have a problem clearing history and i did select time range to "Everything". I tested using Internet explorer and I could clear the history there so its not a problem with the Xp secondary account. I even disabled the add ons in firefox and still get the same issue

    sorry, scratch this, the first post did enable me to find a solution, it was the signon.sqlite file that had become corrupted.
    As an interesting aside, this has also fixed the problem with using Xmarksspace which was giving me an "error 3" synchronising problem.
    Apologies for the tone of my previous posting, you did provide the information that enabled me to find a solution, thank you and sorry.
    Regards
    Crashhot

  • Question about clearing floats....

    I have a three-column layout where (from left to right)
    columns 1 & 2 are
    floated left and column 3 is floated right. Works great...
    what heppens
    when, within the middle column I have the following:
    <div id='container'>
    <img ....>
    <p> blah blah blah</p>
    </div>
    I want to float the image to the right, so the text wraps
    around it but I
    also want to put the following as the last line of the
    "container" div:
    <div style='clear: right;'>&nbsp</div>
    problem is, this last line will clear the ENTIRE right column
    from the main
    page layout. Ahhhh. Can't I somehow clear things relative to
    the column
    and not the whole page?
    Alex

    From the description you have supplied to date this is what I
    am
    getting. Neither clear: right; or clear: both; result in the
    issue you
    describe, so something else on your page is causing issues.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN"
    http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    <title>Untitled Document</title>
    <style type="text/css">
    #one, #two {
    width: 250px;
    float:left;
    #three {
    float: right;
    width: 250px;
    #two img {
    float: right;
    </style>
    </head>
    <body>
    <div id="one">One</div>
    <div id="two">
    <img src="images/logo.gif" width="100" height="100">
    <p>blah blah blah blah blah blah blah blah blah blah
    blah blah blah
    blah blah blah blah blah blah blah
    blah blah blah blah blah blah blah blah blah blah blah blah
    blah blah
    blah blah blah blah blah blah blah blah blah blah</p>
    <br style="clear: both;"></div>
    <div id="three">Three</div>
    </body>
    </html>

  • Problem clearing GR/IR when PO in currency different to Company currency

    Hi Experts
    I have an issue where I have a PO in say USD where group currency for company is Aus Dollar (AUD)
    At Month end, for whatever reason there is a GR/IR balance and we maintain it with MR11 but MR11 balances the difference in group currency (AUD) where all other postings for the PO are in USD.
    When we run F.13 or F13E the account never clears as it only clears matching transactions of same currency. We seem to never be able to clear the posting created by MR11 (without introducing a large tolerance in F.13 perhaps?)
    Any ideas on a way forward?
    thanks
    AC

    Hi AC,
    Eventhough the P.O is in foreign currency, when you select the Only balances in local currency option, system stores the values only in company code currency. So while clearing you'll not face any issue.
    If not maintain this indicator, then system stores the values in local currency and that foreign currency also, then while clearing you'll face the problem.
    Only balances in local currency setting should activate to GR/IR clearing account
    Rgds
    Murali. N

  • Problem with Float.toString

    Hi,
    I have a small problem with wrapper class Float.
    For example
    float f = 99999999999999999f;
    f.toString(); returns a mentioned in the api doc: 9.9999999999999999E16
    while I wanted the original 17 times a 9,
    how can I achieve this??
    THX

    I tried to use the DecimalFormat class with the patter 17 * #, but the string it prints is no longer the same as in the original Float (17 * 9), now I get 17 chars but they are no all 9

  • Important Problem with floating toolbar !

    Hi all!
    I developed a plug-in using Acrobat 8 SDK. When I start acrobat 9.0,
    click any floating toolbar on which all tool buttons have been expanded,acrobat 9 will exist,but acrobat 8 is OK. This situation only happens when floating toolbar has some expandable tool buttons and all buttons have been expanded, and acrobat 9.0 starts without openning a PDF.
    I debuged my plug-in, stack overflow happened in acrobat.exe!
    How to solve this problem? Thanks all!

    I would start by using the debugger to try to find where the crash is taking place. I wold ensure that all of my code is properly wrapped with DURING/HANDLER blocks.
    If you are still having problems, I'll submit a formal support request to Adobe Developer Support.

  • Problem accessing float in stored procedures

    I wrote a stored procedure that updates a column in a table whose datatype is of float(126). I declared a global variable in the stored procedure. The value of this variable is computed in the stored procedure and is used to update the table. My problem is an error message denoting my variable declaration to be at fault keeps on showing up even if I tried different datatypes in my declaration. I've tried RANK NUMBER, RANK NUMBER(19),
    RANK FLOAT(126) even RANK NUMBER(2,2). Can anyone help?

    Albert,
    I don't know what you mean by a "global" variable in a stored procedure. Is this a java stored procedure, or is it a PL/SQL stored procedure? If it is PL/SQL, perhaps the PL/SQL forum would be more appropriate?
    For your information, the following (PL/SQL) stored procedure works fine for me on a Oracle 9.2.0.4 database:
    create or replace procedure avi as
    fv float(126);
    begin
    fv := 1.7;
    dbms_output.put_line(to_char(fv));
    end;Perhaps you would care to provide some more information?
    [But I'm not guaranteeing that I will be able to resolve your issue, if you do.]
    What database version are you using?
    Is this a java stored procedure?
    Please post the entire error message (and stack trace?) you are getting.
    Please post the code that is causing the error. [Enough code so that I can try and reproduce your situation on my computer.]
    Good Luck,
    Avi.

  • Problem clearing a task

    Hello,
    Thanks to a few of the members here, I am able to control the opening and closing of two digital water nozzles with DAQ hardware timing.
     The way the application works is basically a 2-D array of boolean values is created based on the desired period and high time.  The nozzle will open when the boolean value is true while it closes when the boolean value is false.
    The only problem remain is that if the application stops when the last boolean value is "true", the water nozzle will remain open indefinitely.  I believe that I am not using "clear Task" correctly.  This is the most obvious when i set the high time = period so that the duty cycle is 100%. this way the array contain only "true" values.  No matter how i stop the application, the nozzles won't turn off.
    I have attached the application here and let me know if there are something wrong with the way I am ending the tasks.
    I tried to keep this brief so if there are something I'm missing please ask.
    Thank you very much
    Attachments:
    microsecond_nozzle2.vi ‏209 KB

    With outputs, they will always retain the last value sent to them.  Clearing the task does not reset them.
    What you will need to do is write a set of all Falses to the task before you clear the task and end the program.
    By the way, your use of the select function does nothing.  (If true select true, if false select false).  You can use the wire as is and eliminate the Select function and the true and false constants.
    Message Edited by Ravens Fan on 09-09-2008 02:12 PM
    Attachments:
    microsecond_nozzle2[1]_BD.png ‏4 KB

  • Problem clearing applet's screen for different images

    I have an applet that displays several jpg-images.
    Images are photos of different sizes that are portrait
    and landscape.
    Problem is that the rest of a portrait image remains at
    the screen when a landscape image is dispayed and
    in the same way the rest of a landscape image remains
    at the screen when a portrait image is displayed.
    I thought update and repaint methods should do the
    work but something is wrong.
    Code that should do it is:
    private void runWork() {
       curFrame = 0;
       try {
            while(noStopRequested) {
         waitWhilePaused();
         curFrame = (curFrame + 1) % image.length;
         repaint();
         Thread.sleep(5000);
       } catch (InterruptedException e) {
             Thread.currentThread().interrupt();
    public void paint(Graphics g) {
        update(g);
    public void update(Graphics g) {
       g.drawImage(image[curFrame], 0, 0, this);
    }What am I doing wrong?
    Thanks in advance

    Yeah, I knew flickering would probably happen. I've never done double-buffering exactly in an applet, but I can give you an idea how it's done.private void runWork() {
       Image offScreen = createImage(appletWidth, appletHeight);
       Graphics offGraphics = offScreen.getGraphics();
       try {
          while (noStopRequested) {
             waitWhilePaused();
             curFrame = (curFrame + 1) % image.length;
             offScreen.clearRect(0, 0, appletWidth, appletHeight);
             offScreen.drawImage(image[curFrame], 0, 0, this);
             repaint();
       catch (...) {}Then in paint():public void paint(Graphics g) {
       g.drawImage(offScreen, 0, 0, this);
    public void update(Graphics g) {
       paint(g);
    }Might not be perfect, but it should give you an idea. Basically you want to draw the screen OFF the screen before drawing it to the screen. That way you don't clear the screen and draw the image. You do it all in one paint().
    Michael Bishop

  • Problem clearing visited links

    I am having a problem with clearing visited links in Win 7 / Firefox 11.o
    I can clear visited links '''''except for one site''''':
    Silicon Investor:
    http://www.siliconinvestor.com/home.aspx
    I go to:
    * Tools
    * Clear recent history
    * Time Range to clear: Everything
    * Clear Browsing and Download History
    * Clear Cache
    * Clear Active Logins
    * Clear Offline Website Data
    Again, the only site that will '''not''' clear is Silicon Investor.
    Thanks for your help!
    PS: On '''Silicon Investor''' site, the '''''History''''' clears, but the '''''Visited Links''''' do '''NOT''' clear.

    Yes, I am reloading the page and nothing changes.
    Also, several times I have reloaded the page and then shut down my PC and restarted. Nothing seems to clear the visited links.
    I tend to think the problem may be at Silicon Investor - maybe some incompatibility with Firefox 11.0 ?
    Thanks
    PS: I have done some more experimenting and discovered the following:
    1. If I am '''logged in''' to the Silicon Investor site I can clear history, but I am unable to clear the visited links.
    2. If I am '''''NOT''''' logged into the Silicon Investor site I can clear history, '''''AND''''' clear the visited links with no problem at all.
    So, I am thinking that there IS some incompatibility that occurs ONLY when logged in.
    Strange!

  • Problem clearing Cell on a TiledLayer

    Hi,
    I've got a problem with a TiledLayer in that I when I set a cell to 0 to clear it nothing happens. It works fine when I set it to anything else so it's definitely not a problem with the layer not being drawn, but if I try and clear it the last specified tile is displayed.
    I've checked whether the change was stored by calling getCell() for the cell in question and the 0 has been stored.
    Is there anything that I'm missing or a specific reason why I might be having this problem?
    Thanks in advance
    Nick

    Just figured it out myself. Came from a lacking understanding how the whole frame buffer thing works. I've now figured out that it simply copies the buffered frame over the original one, so as an empty cell will be transparent on the buffered frame you can see the original frame in that place.

  • Problem-less Floating Boxes?

    I saw the recent thread about problems with relative positioning. All of a sudden I'm insecure again. I have a page with 34 floating boxes (none nested, but many overlap) and their positions remain stable when my browser window is resized. No sleight of hand, just dragged boxes into position and filled with content (default settings in F.B. inspector). So I was feeling confident. Safari, Explorer, Aol all show the page as locked down, reacting to window re-sizing and scrolling just like any other conventional page design. Should I be worried? Is such a layout going to corrupt itself, or glitch-out, or crawl out from under my bed at night and bite my hand? I'm worried that I'm naive and missing something because of the complexity of that previous thread.

    >I saw the recent thread about problems with relative positioning
    There are no problems with relative positioning other than not understanding
    how it works. There are many *more* problems with absolute positioning,
    especially when text is placed in absolutely positioned elements.
    > just like any other conventional page design. Should I be worried?
    Yes. Resize your text in the browser and see what happens. Or better, post
    a link to your page so we can see its code and anticipate problems for you.
    Murray

  • Problem with floated elements in IE5.5

    I've apparently got a problem with a right sidebar float
    being dropped in a primitive version of IE and I can't figure out a
    remedy, as none are suggested in dwcs3's browser compatibility
    function. The site is lindafarronknapp.com... if anyone has any
    suggestions I would more than appreciate it...

    Thank you for the replies. What was happening is that the other audio files were being onverted by PPPro. This one was not. I moved the file to the desktop and once again placed it into the project. This time the yellow conversion line on the bottom right corner went to work and it works fine. It was some type of glitch with that one file. Thanks again. Roman

Maybe you are looking for

  • Additional field in 0001 info type

    Hi all, I want to add a new field in 0001 info type. i believe this is just enhancement. Could you pls suggest the ways to enhance the 0001 info type accordingly..? Thanks & Regards,

  • Realtek RTL8139 NIC

    Does the rtls RTL8139 driver work on SEDE9/07? Actually Windows tells me I have a RTL8139/810x fast ethernet family chipset but my motherboard ConRoe1333-D667 specifies Realtek PCIE x 1 LAN 8101E. If it does work and for my chipset - mine is not work

  • Why transfer order is unable to print in LT31

    Hi, This is a question about LT31 printing problem. my print code used and spool control data used are "02". Problem: I tested our system both in production and quality system on LT31 and both system behave differently though LT31 is standard SAP. Th

  • System.log trivia

    These events take place during boot. I was hoping to get some feedback (I understand these are seperate events, so there will be seperate answers to each): Apr 23 21:55:44 localhost com.apple.launchctl.System[2]: launchctl: Please convert the followi

  • System status EDEL ESTO active

    Hi A serial number of material is showing system status EDEL ESTO active even though  old delivery note has been deleted from system, due to this  i am not able to assign this serial number to new delivery note regards anupam