Floating a div

Floating a <div>
I have two content areas below my logo and navigation bar, I entered this HTML,
<div id=”bodyArea”>
<div id=”left”></div>
<div id=”right”></div>
</div>
I then floated the left div to the left and the right div to the right, I never specified a height for the left div as I wanted it to auto expand with the content as it dose, the right div I did specify a height of 300 pixels, now I thought once the left div came down by the 300 pixles mark and cleared the right div I thought it would then take up the space on the  below the right div.
I thought of another idea but don't know if it's possible, to make only one area bellow my navigation bar that auto expands with the content, and place a box (div) on top is this possible, (like floating a div on top of another) I just want an area of 200x300 like a notice area to sit on top of the main content area, any help or suggestions would be greatly appreciated.

Goodness.  This is a very strange reply.
A floated <div> will never surround (or go under in the way you're saying) a non-floated <div>    
This is correct.
floated divs basically seem to have less priority than those that are not.
This is fantasy.
In that case you would want the right <div> to have the rule {float: right;} so the content in the left one would essentially surround it.
That's incorrect.  If you have this -
<div id="left"></div>
<div id="right" style="float:right;"></div>
then the right div will be BELOW the left div, not to its right.  To make it appear to the right, you would have to float the left div to the left, and the right div to the left as well.
If you decide you still want the left one floated, what you can do to make that floated <div> extend beyond the content <div> is add the rule {overflow: auto;} to it and that may work, or you may have to have to set that on the #bodyArea div if that doesn't work.
Sorry, this makes no sense at all.

Similar Messages

  • Help with floating a Div tag?

    I am having difficulty properly floating a div tag in my site.  The page is http://www.planetwhistler.com/bandbs.html  The Div on the bottom of the second column with 'content for right_bandb_div' goes here will not properly float to the right of the Div to the left of it.  I have floated the 'right_bandb_' div to the left with enough of a margin to clear the div tag in the first column, I have also put the code for 'right_bandb' before the code for the div to the left of it but for some reason it won't properly place itself.  Thanks for any help provided.

    I realize my Template isn't exactly like yours, but you can learn from it.
    http://alt-web.com/TEMPLATES/CSS-centered-round-boxes.shtml
    1) apply min-height values to all your .boxes.
    2) add a float clearing between rows.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Floating 3 div tags side by side

    Hello Dreamweavers.
    Im trying ot float 3 div tags side by side. I dont have a problem floating 2. But when I add a 3dr DIV the 2nd DIVS margin is making me confused
    how to get them floatin next to each other. Here is what I have so far.
    Thank you.
    #box_one {
              background-color: #9C9;
              width: 400px;
              height: 400px;
              float: left;
    #box_two {
              background-color: #99F;
              height: 400px;
              width: 400px;
              float: right;
              margin-right: 450px;
    #box_three {
              background-color: #06F;
              height: 400px;
              width: 400px;
              margin-left: 1000px;
              float: right;
    <body>
    <div id="box_one">Content for  id &quot;box_one</div>
    <div id="box_two">Content for  id &quot;box_two</div>
    <div id="box_three">Content for  id "box_three" Goes Here</div>
    </body>
    </html>

    No need to get complex, just float all of the <divs> left and give 'box_two' and 'box_three' a margin-left: 50px;  (see below)
    #box_one {
    float: left;
    background-color: #9C9;
    width: 400px;
    height: 400px;
    #box_two {
    float: left;
    background-color: #99F;
    height: 400px;
    width: 400px;
    margin-left: 50px;
    #box_three {
    float: left;
    background-color: #06F;
    height: 400px;
    width: 400px;
    margin-left: 50px;

  • Designing repetitive floating boxes (divs)

    I am designing a page that is essentially 2 columns(not equal
    in size) and 6 rows (equal in size) and am doing it with CSS (not
    using a table). I am doing it by making a series of floating divs.
    so I actually will end up with 12 boxes on the page. Since a
    specific div can only be used once on a page, do I have to make
    each box separately and name it something different. Seems like a
    long way to do things so I am wondering if I am missing as easier
    method of duplicating boxes. Thanks.
    Here are the first two boxes:
    http://www.new.oceangetaways.com/Pages/Destination.html

    To clarify - define ONE class, and use it for EACH box that
    has the same
    properties.
    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
    ==================
    "Walt F. Schaefer" <[email protected]> wrote in
    message
    news:gp6hd2$6m$[email protected]..
    >>>Since a specific div can only be used once on a
    page
    >
    > Not exactly true. What is true is that you can use an id
    (#somename) only
    > once on a page. But you can use multiple classes
    (.somename). So define a
    > class for each box (div) that has the same properties.
    >
    > --
    >
    > Walt
    >
    >
    > "oceanget" <[email protected]> wrote in
    message
    > news:gp6fpf$rmn$[email protected]..
    >>I am designing a page that is essentially 2
    columns(not equal in size) and
    >>6
    >> rows (equal in size) and am doing it with CSS (not
    using a table). I am
    >> doing
    >> it by making a series of floating divs. so I
    actually will end up with 12
    >> boxes
    >> on the page. Since a specific div can only be used
    once on a page, do I
    >> have
    >> to make each box separately and name it something
    different. Seems like
    >> a long
    >> way to do things so I am wondering if I am missing
    as easier method of
    >> duplicating boxes. Thanks.
    >>
    >> Here are the first two boxes:
    >>
    http://www.new.oceangetaways.com/Pages/Destination.html
    >>
    >>
    >
    >

  • Floating sidebar divs in DW6

    I'm trying to totally remake my antiquated FP website using DW.  I'm a goat herder and DIY'er and NOT a coder.  Using fluid grids in DW6 I'd like to use three divs stacked on the left to be my side bar (#logo, #mainNav, #sidebar) and then three divs stacked on the right for #header, #content,# footer.  I can't get the 3 sidebar divs to stay together vertically once the content div is longer .  I know it's a float issue but can't figure out how to deal with it.  I want separate divs on the side bar so that i can make the bottom one hidden for mobile devices.
    Is there a way to do what I'm trying to do?

    The way you're describing it, no.  For better help, we need to see a link to your page. 
    Always build Mobile first because everything else is based on that primary structure.  Then build Tablet, followed by Desktop.
    Basically, you  need a very basic HTML5 structure inside your body tag.
    <div class"gridContainer clearfix">
    <header>
         Logo, SiteName & Slogan
    </header>
    <nav>Menu</nav>
    <aside>
         Sidebar1
    </aside>
    <article>
         Main content
    </article>
    <aside>
         Sidebar2
    </aside>
    <footer>
         Footer
    </footer>
    <!--end gridContainer-->
    </div>
    In mobile devices, all these divisions should be full width and stacked on top of each other.
    In Tablets & Desktops, you might float:left the <aside>, <article>, <aside> divisions.
    Does that help?
    Nancy O.

  • Float with Div throwing out background

    Hi
    This is driving me round the twist.  http://www.moodymoo.net the background appears to have been pushed down the page I am sure this has something to do with the float elements within the div can anyone tell me how to sort this please.
    Thanks in advance
    G

    You have an error in your code and I am wondering if it could be causing the issue.  Your header div is never actually closed ("</div>") before the maincontent div begins.
    Also with your CSS, your first declaration to reset the list of elements, font-style: none is not a valid attribute, normal is the standard attribute ( http://www.w3schools.com/css/pr_font_font-style.asp ).  And for the body tag, font-color does not exist.  Just replace that with "color" and you will be fine.

  • Divs being removed from parent div when a float style is applied

    Divs being removed from parent div when a float style is applied
    Hi All,
    I hope someone is able to help me with the below issue.
    I apologise if the questions I have been asking lately are really basic, I’m just teaching myself web design.
    I really do appreciate the help you guys offer, so a big thank you in advance.
    I am confused as to why I am not getting my desired effect for the below code. I am creating a website for someone and have structured the website in the following way:
    <body>
    <div id="wrap">
    <div id="title"></div><!-- end #title -->
    <div id="shopping_cart"></div><!-- end #shopping_cart -->
    <div id="content_wrap">
    <h2 class="header">Header goes here</span></h2>
    <div id="nav_bar">
    <table>table goes here</table>
    </div><!-- end #nav_bar -->
    <div id="side_bar">
    <h1>text here</h1>
    <table>table goes here</table>
    </div><!-- end #side_bar -->
    <div id="content">
    <p>text here</p>
    <div id="content_image"></div>
    </div><!-- end #content -->
    <div id="footer">
    <div id="logo"></div>
    <div id="flags"></div>
    <div id="v_wd"></div>
    </div><!-- end #footer -->
    </div><!-- end #content_wrap -->
    </div><!-- end #wrap -->
    </body>
    Now I don't know if I am structuring my website the right way this is just the way that makes sense to me. It might not even be the source code that’s the issue and may be the CSS so I have also pasted that in below.
    Now the problems I am having are as follows:
    I want to have my whole site wrapped in one big div #wrap so I can centre the whole site. Within that div I want all my other divs (which some have divs inside those as well).
    To start #title seems to fit inside #wrap without a problem but #shopping_cart gets push outside of #wrap even though it is inside the opening and closing #wrap tag.
    My next div #content_wrap, it seems to be inside #wrap however the margin-top I have applied to #content_wrap pushes it down from #title not #shopping_cart even though #content_wrap is below #shopping_cart not #title.
    The second problems seem to be with the divs that are or supposed to be inside #content_wrap.
    h2 .header seems to fit inside #content_wrap without any problems. Now it gets really confusing, for me anyway. Any div I put below h2 .header which is inside #content_wrap doesn’t seem to actually go inside #content_wrap or #wrap they get pushed below #wrap even though in the source code they are inside the opening and closing div tags.
    Also #side_bar and #content together equal 860px which is the width of their surrounding div #content_wrap so they should fit perfectly side by side. This I know ties into a previous discussion I raised in discussion (http://forums.adobe.com/message/4501038#4501038). I have taken Murry’s advice on board from this discussion and tried floating just #side bar to the left and left enough margin for #content to clear, I also tried floating both to the left. Nothing worked.
    As I have been writing this I’ve gone through my code, all the above issues only occur if I float a div. If I float a div for some reason it removes that div from any div surrounding it and pushes it below every single div. I don’t know how to position my divs in the exact place I want without floating them but if I float they get moved out of their parent div and therefore aren’t in the position I want them in either.
    If you are able to help me resolve this issue it will help me with all future projects. I really do appreciate any help you can give.
    Kind Regards
    Elliot
    CSS
    I have marked out where I would float a particular div */style*/ which I know would cancel that style. Therefore the problems I am having are with divs #shopping_cart, #side_bar and #content.
    body {
    background:url(images/body_bg.png) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;}
    #wrap {
    height:auto;
    width:895px;
    margin:0 auto;}
    #title {
    Background-image:url(images/title.png);
    height:67px;
    width:895px;
    margin-top:50px;
    margin-left:auto;
    margin-right:auto;}
    #shopping_cart {
    background: url(images/shopping_cart.jpg);
    height:46px;
    width:142px;
    margin-top:15px;
    margin-right:25px;
    /*float:right;*/}
    #content_wrap {
    background:url(images/content_bg.png) repeat;
    border:2px solid #666;
    height: auto;
    width:862px;
    margin-top:15px;
    margin-left:auto;
    margin-right:auto;}
    #nav_bar {
    width:809px;
    height:59px;
    margin-left:26px;}
    #side_bar {
    height:auto;
    width:285px;
    margin-top:20px;
    border-right:1px solid #666;
    /*float:left;*/}
    #content {
    height:auto;
    width:575px;
    margin-top:20px;
    /*float:left;*/}
    #content_image {
    background-image:url(images/couple.jpg);
    height:184px;
    width:271px;
    margin:0 auto;}
    #footer {
    background-color:#0F0;
    width:860px;
    height:200px;}
    #kejo_logo {
    background-image:url(images/kejo.png);
    height:100px;
    width:227px;}
    #flags {}
    #viscari_wd {}
    #copyright {}
    #pp_tu {}
    .header {
    color: #FFF;
    font-size:44px;
    font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
    margin-left:10px;}
    .header_small {
    color: #FFF;
    font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
    font-size: 25px;
    margin-left:10px;}
    #content_wrap #side_bar h1 {
    font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
    color: #4b4a4a;
    font-size:20px;
    padding-left:15px;}
    #content_wrap #content p {
    color: #484747;
    text-align:center;
    font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
    font-size:20px;
    padding-right:15px;}

    Hi guys,
    Thanks for your help but still having a few problems;
    In design view the code you advised I should add seems to have placed #shopping_cart back into #wrap under #title and above #content_wrap but hasn't when previewed in browser as there is no margin between #content_wrap & #shopping_cart.
    #side_bar and #content now seem to sit side by side each other fine in design view and in the browser, however #footer which is in #content_wrap but under #side_bar and #content is behind #side_bar and #content. How do I get #footer to position under #side_bar and #content?
    I have added a green background to #footer to make it stand out. I have also added two images one of the site in design view and one previewed in the browser so you can see the difference. I've also pasted the amended code.
    Again thanks for your continued help and advice.
    <body>
    <div id="wrap">
    <div id="title"></div><!-- end #title -->
    <div id="shopping_cart"></div><!-- end #shopping_cart -->
    <div id="content_wrap">
    <h2 class="header">Header goes here</span></h2>
    <div id="nav_bar">
    <table>table goes here</table>
    </div><!-- end #nav_bar -->
    <div id="side_bar">
    <h1>text here</h1>
    <table>table goes here</table>
    </div><!-- end #side_bar -->
    <div id="content">
    <p>text here</p>
    <div id="content_image"></div>
    </div><!-- end #content -->
    <div id="footer">
    <div id="logo"></div>
    <div id="flags"></div>
    <div id="v_wd"></div>
    </div><!-- end #footer -->
    </div><!-- end #content_wrap -->
    </div><!-- end #wrap -->
    </body>
    CSS
    body {
    background:url(images/body_bg.png) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;}
    #wrap {
    width:895px;
    margin:0 auto;
    overflow:hidden;}
    #title {
    background:url(images/title.png);
    height:67px;
    width:895px;
    margin-top:50px;
    margin-left:auto;
    margin-right:auto;}
    #shopping_cart {
    background: url(images/shopping_cart.jpg);
    height:46px;
    width:142px;
    margin-top:15px;
    margin-right:25px;
    float:right;}
    #content_wrap {
    background:url(images/content_bg.png) repeat;
    border:2px solid #666;
    width:862px;
    margin-top:15px;
    margin-left:auto;
    margin-right:auto;
    overflow: hidden;
    clear: both;}
    #nav_bar {
    width:809px;
    height:59px;
    margin-left:26px;}
    #side_bar {
    height:auto;
    width:285px;
    margin-top:20px;
    border-right:1px solid #666;
    float:left;}
    #content {
    height:auto;
    width:575px;
    margin-top:20px;
    float:right;}
    #content_image {
    background-image:url(images/couple.jpg);
    height:184px;
    width:271px;
    margin:0 auto;}
    #footer {
    background-color:#0F0;
    width:860px;
    height:200px;}
    #kejo_logo {
    background-image:url(images/kejo.png);
    height:100px;
    width:227px;}
    #flags {}
    #viscari_wd {}
    #copyright {}
    #pp_tu {}
    .header {
    color: #FFF;
    font-size:44px;
    font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
    margin-left:10px;}
    .header_small {
    color: #FFF;
    font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
    font-size: 25px;
    margin-left:10px;}
    #content_wrap #side_bar h1 {
    font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
    color: #4b4a4a;
    font-size:20px;
    padding-left:15px;}
    #content_wrap #content p {
    color: #484747;
    text-align:center;
    font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
    font-size:20px;
    padding-right:15px;}

  • Need help with overlapping divs!

    Hey everyone,
    I'm working on another website and I have come up against a common problem for newbie designers from what I hear, the dreaded overlapping div problem!  I have a 2 column fixed layout with a floating left div.  My left div has my nav bar and various images.  When my main content div has more content than the left floating div, the left div border does not reach the footer!  Until now, I have gotten by with just hitting return in my left column div until it reaches the footer.  I am sure it is not the right way to do it but it has worked so far.  The problem is, now one of the pages has the left column div overlapping onto the footer!  I did some reading and I am guessing it involves either the box properties or clear float which I am not too familiar with.
    Any advice would be stellar!  I know this is just another stumbling block to get over but I would feel so much better if I was doing it the right way. 
    Here are screens of my issue,
    And here is my code for the page in question.
    <!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" />
    <link rel="shortcut icon" href="http://www.xldesignsonline.com/fchi/favicon.ico">
    <title>Full Circle Home Inspections</title>
    <link href="_css/main.css" rel="stylesheet" type="text/css" /><!--[if IE 5]>
    <style type="text/css">
    /* place css box model fixes for IE 5* in this conditional comment */
    .twoColFixLtHdr #sidebar1 { width: 230px; }
    </style>
    <![endif]--><!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional comment */
    .twoColFixLtHdr #sidebar1 { padding-top: 30px; }
    .twoColFixLtHdr #mainContent { zoom: 1; }
    /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
    </style>
    <![endif]-->
    <style type="text/css">
    <!--
    body {
         background-color: #FFF;
    .paragraphLead {
         font-size: 110%;
         font-weight: bold;
    a:link {
         text-decoration: none;
         color: #CF0;
    a:visited {
         text-decoration: none;
    a:hover {
         text-decoration: none;
    a:active {
         text-decoration: none;
    #apDiv1 {
         position:absolute;
         width:236px;
         height:157px;
         z-index:1;
         left: 692px;
         top: 372px;
    #apDiv2 {
         position:absolute;
         width:200px;
         height:192px;
         z-index:2;
         left: 697px;
         top: 1443px;
    #apDiv3 {
         position:absolute;
         width:158px;
         height:204px;
         z-index:2;
         left: 643px;
         top: 1502px;
    -->
    </style>
    <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
    </head>
    <body class="twoColFixLtHdr">
    <div id="container">
      <div id="header">
        <h1><!-- end #header -->
      </h1></div>
      <div id="sidebar1">
        <h3 align="center">
          <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="200" height="620">
            <param name="movie" value="_assets/menu.swf" />
            <param name="quality" value="high" />
            <param name="wmode" value="opaque" />
            <param name="swfversion" value="6.0.65.0" />
            <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
            <param name="expressinstall" value="Scripts/expressInstall.swf" />
            <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
            <!--[if !IE]>-->
            <object type="application/x-shockwave-flash" data="_assets/menu.swf" width="200" height="620">
              <!--<![endif]-->
              <param name="quality" value="high" />
              <param name="wmode" value="opaque" />
              <param name="swfversion" value="6.0.65.0" />
              <param name="expressinstall" value="Scripts/expressInstall.swf" />
              <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
              <div>
                <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
                <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
              </div>
              <!--[if !IE]>-->
            </object>
            <!--<![endif]-->
          </object>
        </h3>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"><a href="http://www.nachi.org/"><img src="_images/interNACHI.png" alt="InterNACHI" width="190" height="164" border="0" /></a></p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"><a href="http://www.nachi.org/education.htm"><img src="_images/education-seal-small.gif" alt="education seal" width="150" height="150" border="0" /></a></p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"><a href="http://www.iac2.org/"><img src="_images/iac2-all.gif" width="174" height="126" alt="IAC" /></a></p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"><a href="http://www.inspectopia.com/profile.b.507.r.16181.u.03bcfb.html"><img src="_images/logo_top.png" alt="Inspectopedia" width="190" height="45" border="0" /></a></p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"><a href="http://www.energystar.gov/"><img src="_images/img_energy_star_partner.jpg" width="160" height="191" alt="Energy Star Partner" /></a></p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"><a href="http://cjenterprises.myshaklee.com/us/en/welcome.html#"><img src="_images/Shaklee.gif" alt="Shaklee" width="119" height="160" border="0" /></a></p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"><a href="http://activerain.com/"><img src="_images/ARLogoSmall.gif" alt="Active Rain" width="135" height="36" border="0" /></a></p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"><a href="http://www.insiderpages.com/b/15246780294"><img src="_images/insider_pages.gif" alt="Insider Pages" width="89" height="37" border="0" /></a></p>
    <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
        <p align="center"> </p>
      </div>
      <div id="mainContent">
        <h2>Radon Gas Inspection</h2>
        <div id="paragraphFloat">
          <h5>What Is Radon?</h5>
          <p> Radon is a cancer causing radioactive gas. You cannot see, smell or taste radon, but it may be a problem in your home. The Surgeon General has warned that radon is the second leading cause of lung cancer in the United States today. </p>
          <div id="apDiv1">
        <div align="center"><a href="http://www.epa.gov/radon/video/epa-epu.wmv"><img src="_images/psa_revised.jpg" alt="What Is Radon?" width="200" height="172" border="0" /></a></div></div></div>
        <p>If you smoke and your home has high radon levels, you're at high risk for developing lung cancer. Some scientific studies of radon exposure indicate that children may be more sensitive to radon. This may be due to their higher respiration rate and their rapidly dividing cells, which may be more vulnerable to radiation damage. </p>
    <p> </p>
        <h5>Why Is It Dangerous?</h5>
    <p> The U.S. Environmental Protection Agency (US EPA) and the Surgeon General's Office have estimated that as many as 20,000 lung cancer deaths are caused each year by radon. Radon is the second leading cause of lung cancer. Radon-induced lung cancer costs the United States over $2 billion dollars per year in both direct and indirect health care costs.</p>
    <p>According to the US EPA, nearly 1 in 3 homes checked in seven states and on three Indian lands had screening levels over 4 pCi/L, the EPA's recommended action level for radon exposure.</p>
    <p>The alpha radiation emitted by radon is the same alpha radiation emitted by other alpha generating radiation sources such as plutonium.</p>
    <p>A family whose home has radon levels of 4 pCi/l is exposed to approximately 35 times as much radiation as the Nuclear Regulatory Commission would allow if that family was standing next to the fence of a radioactive waste site. (25 mrem limit, 800 mrem exposure)</p>
    <p> At the 4 pCi/l EPA action guideline level, radon carries approximately 1000 times the risk of death as any other EPA carcinogen. It is important to note that the action level is not a safe level, as there are no &quot;safe&quot; levels of radon gas.</p>
    <p> </p>
    <h5>How Does It Get Into My Home?</h5>
    <p> Radon is a radioactive gas. It comes from the natural decay of uranium that is found in nearly all soils. It typically moves up through the ground to the air above and into your home through cracks and other holes in the foundation. Your home traps radon inside, where it can build up. Any home may have a radon problem. This means new and old homes, well-sealed and drafty homes, and homes with or without basements.</p>
    <p> Radon from soil gas is the main cause of radon problems. Sometimes radon enters the home through well water. In a small number of homes, the building materials can give off radon, too. However, building materials rarely cause radon problems by themselves.</p>
    <p><strong>Radon gets in through:</strong></p>
    <ul>
      <li>Cracks in solid floors
        <div id="apDiv3">
          <div align="center"><a href="http://www.fullcirclehomeinspections.com/_assets/CitizensGuideRadon.pdf"><img src="_images/citguidecoverradon.jpg" alt="Guide To Radon" width="154" height="200" border="0" /></a></div>
        </div>
      </li>
      <li>Construction joints</li>
      <li>Cracks in walls</li>
      <li>Gaps in suspended floors</li>
      <li>Gaps around service pipes</li>
      <li>Cavities inside walls</li>
      <li>Surrounding water supply</li>
    </ul>
    <p> </p>
    <h5>What Can I Do?</h5>
    <p> Radon is a national environmental health problem. Elevated radon levels have been discovered in every state. The US EPA estimates that as many as 8 million homes throughout the country have elevated levels of radon. Current state surveys show that 1 home in 5 has elevated radon levels.</p>
    <p> Testing is the only way to know your home's radon levels. There are no immediate symptoms that will alert you to the presence of radon. It typically takes years of exposure before any problems surface. </p>
    <p>Let <strong>Full Circle Home Inspections</strong> ensure your family and your home are protected and safe from radon exposure!</p>
    <p> </p>
    <h5>Radon Myths</h5>
    <p><strong><em>MYTH:</em> Scientists are not sure that radon really is a problem.</strong></p>
    <blockquote>
      <p><strong><em>FACT:</em></strong> Although some scientists dispute the precise number of deaths due to radon, all the major health organizations (like the Centers for Disease Control and Prevention, the American Lung Association and the American Medical Association) agree with estimates that radon causes thousands of preventable lung cancer deaths every year. This is especially true among smokers, since the risk to smokers is much greater than to non-smokers.</p>
    </blockquote>
    <p><strong><em>MYTH:</em> Radon testing is difficult, time-consuming and expensive.</strong></p>
    <blockquote>
      <p><strong><em>FACT:</em></strong> Radon testing is easy. You can test your home yourself or hire a qualified radon test company. Either approach takes only a small amount of time and effort.</p>
    </blockquote>
    <p><strong><em>MYTH:</em> Homes with radon problems can't be fixed.</strong></p>
    <blockquote>
      <p><strong><em>FACT:</em></strong> There are simple solutions to radon problems in homes. Hundreds of thousands of homeowners have already fixed radon problems in their homes. Most homes can be fixed for about the same cost as other common home repairs; check with one or more qualified mitigators. Call your <a href="http://www.epa.gov/radon/whereyoulive.html">state radon office</a> for help in identifying qualified mitigation contractors.</p>
    </blockquote>
    <p><strong><em>MYTH:</em> Radon affects only certain kinds of homes.</strong></p>
    <blockquote>
      <p><strong><em>FACT: </em></strong>House construction can affect radon levels. However, radon can be a problem in homes of all types: old homes, new homes, drafty homes, insulated homes, homes with basements, and homes without basements. Local geology, construction materials, and how the home was built are among the factors that can affect radon levels in homes.</p>
    </blockquote>
    <p><strong><em>MYTH:</em> Radon is only a problem in certain parts of the country.</strong></p>
    <blockquote>
      <p><strong><em>FACT:</em></strong> High radon levels have been found in every state. Radon problems do vary from area to area, but the only way to know your radon level is to test.</p>
    </blockquote>
    <p><strong><em>MYTH:</em> A neighbor's test result is a good indication of whether your home has a problem.</strong></p>
    <blockquote>
      <p><strong><em>FACT:</em></strong> It's not. Radon levels can vary greatly from home to home. The only way to know if your home has a radon problem is to test it.</p>
    </blockquote>
    <p><strong><em>MYTH:</em> Everyone should test their water for radon.</strong></p>
    <blockquote>
      <p><strong><em>FACT:</em></strong> Although radon gets into some homes through water, it is important to first test the air in the home for radon. If your water comes from a public water supply that uses ground water, call your water supplier. If high radon levels are found and the home has a private well, call the Safe Drinking Water Hotline at 1-800-426-4791 for information on testing your water.</p>
    </blockquote>
    <p><strong><em>MYTH:</em> It's difficult to sell homes where radon problems have been discovered.</strong></p>
    <blockquote>
      <p><strong><em>FACT:</em></strong> Where radon problems have been fixed, home sales have not been blocked or frustrated. The added protection is some times a good selling point.</p>
    </blockquote>
    <p><strong><em>MYTH:</em> I've lived in my home for so long, it doesn't make sense to take action now.</strong></p>
    <blockquote>
      <p><strong><em>FACT: </em></strong>You will reduce your risk of lung cancer when you reduce radon levels, even if you've lived with a radon problem for a long time.</p>
    </blockquote>
    <p><strong><em>MYTH:</em> Short-term tests can't be used for making a decision about whether to fix your home.</strong></p>
    <blockquote>
      <p><strong><em>FACT:</em> </strong>A short-term test, followed by a second short-term test* can be used to decide whether to fix your home. However, the closer the average of your two short-term tests is to 4 pCi/L, the less certain you can be about whether your year-round average is above or below that level. Keep in mind that radon levels below 4 pCi/L still pose some risk. Radon levels can be reduced in most homes to 2 pCi/L or below.</p>
      <p> </p>
      <p> </p>
      <p> </p>
      <p align="center"><img src="_images/CA-3.jpg" width="520" height="207" /></p>
    </blockquote>
      </div>
      <div id="footer">
        <p align="center"><strong>© 2009 XL Designs Online - All Rights Reserved </strong></p>
      </div>
    <!-- end #container --></div>
    <script type="text/javascript">
    <!--
    swfobject.registerObject("FlashID");
    //-->
    </script>
    </body>
    </html>
    And here is my CSS if needed,
    @charset "utf-8";
    body  {
         font: 100% Verdana, Arial, Helvetica, sans-serif;
         background: #666666;
         margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
         padding: 0;
         text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
         color: #000000;
    .twoColFixLtHdr #container {
         width: 950px; /* the auto margins (in conjunction with a width) center the page */
         border: 1px solid #000000;
         text-align: left; /* this overrides the text-align: center on the body element. */
         margin-top: 20px;
         margin-right: auto;
         margin-bottom: 20px;
         margin-left: auto;
         background-color: #557050;
    .twoColFixLtHdr #header {
         border-bottom: 1px solid #000000;
         height: 250px;
         background-color: #DDDDDD;
         padding-top: 0;
         padding-right: 10px;
         padding-bottom: 0;
         padding-left: 20px;
         background-image: url(../_images/homebanner1.png);
    .twoColFixLtHdr #header h1 {
         margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
         padding: 20px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
         text-align: center;
         font-size: 48px;
         font-family: Tahoma, Geneva, sans-serif;
         color: #000;
    .twoColFixLtHdr #sidebar1 {
         float: left; /* since this element is floated, a width must be given */
         width: 200px;
         border-right: 1px solid #000000;
         background-color: #557050;
         padding-top: 0px;
         padding-right: 10px;
         padding-bottom: 15px;
         padding-left: 10px;
    .twoColFixLtHdr #mainContent {
         margin-top: 0;
         margin-right: 0;
         margin-bottom: 0;
         margin-left: 250px;
         padding-top: 0;
         padding-right: 20px;
         padding-bottom: 0;
         padding-left: 20px;
         text-align: left;
    .twoColFixLtHdr #mainContent h1 {
         font-size: 48px;
         font-family: "Arial Rounded MT Bold";
         font-weight: bold;
    .twoColFixLtHdr #mainContent h2 {
         font-family: "Arial Rounded MT Bold";
         font-size: 32px;
    .twoColFixLtHdr #mainContent h3 {
         font-family: Georgia, "Times New Roman", Times, serif;
         font-style: italic;
         color: #CF0;
         font-size: 125%;
    .twoColFixLtHdr #mainContent h5 {
         font-size: 120%;
    .twoColFixLtHdr #footer {
         padding: 20px 10px 20px 20px;
         border-top: 1px solid #000000;
         background-color: #A3A3A3;
         font-family: Arial, Helvetica, sans-serif;
    .twoColFixLtHdr #footer p {
         margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
         padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
    .fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
         float: right;
         margin-left: 8px;
    .fltlft { /* this class can be used to float an element left in your page */
         float: left;
         margin-right: 8px;
    .clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
         clear:both;
        height:0;
        font-size: 1px;
        line-height: 0px;
    #paragraphFloat {
         width: 350px;
    #paragraphFloat2 {
         width: 350px;
    Please if anyone knows what I'm doing wrong please please let me know!  Since I am learning, I really want to get main concepts like this down so I am not constantly doing things the hard way!  Thank you! 
    Jayson

    1) Regarding validation, what does it do?
    It validates by telling you where your code isn't er... valid.  Sometimes the results are a bit jumbled but if you work through them one at a time and revalidate, it's a good way to learn.  If you fix all of the errors shown up through the validator you should end up with standards compliant code.  Not necessarily the best, most efficient code you can write but at least it will be valid and it helps you spot errors that hours of code-staring never seems to find.
    I don't use the DW validation tool because I find the W3c one easier.
    The W3c validator has a check box of HTML Tidy which can tidy up your code but it's not always as easy to see what changes.
    2) I know the <p> tag for spacing is wrong, I could just feel it in my bones.  I just didn't know what else to do.  If I <br> all the way down won't the code be just as cluttered?
    You're obviously a born web coder!
    <br> will bloat your page if you use them to position elements.
    Here you need to get used to a) the Block Model and b) CSS positioning.  Once you crack these, CSS opens up for you and becomes a little more intuitive.
    if you have two elements on top of each other rather than push them apart with other elements you do it with padding and/or margin.  There are things to watch out for here namely, collapsing margins but if you start to read up on the above, you'll get it.
    I just thought of something.  If I add a div in main content, align it to the bottom center with CSS, use a line break between it and the text above, and add the image in question in the new div, will the spacing between the text and image work itself out?  I just really want to get out of the <p> bad habit.
    Keep thinking!  Web design is not like desktop publishing or print.  Elements on a HTML page don't behave like paragraphs on a page.  Once you begin to figure out why not it all gets a little easier.
    If you want an image at the bottom an element you put that at the end of the content in that element.  Then you need to ensure there is no margin, padding or border between the img element and the next element (your footer).  HTML elements come with some styling that is applied by default in the browser.  Many web developers include a rule like this:
    body {
    margin: 0;
    padding:0;
    This sets the margin and padding to zero of course and it's purpose is to override the defaults.  Some people advocate applying similar rules to all elements and if your interested try googling Eric Meyer who has written about it online.
    One of the key purposes of CSS is to take styling out of the page.  It's leaner, more efficient for the viewer and the coder and helps with site management.
    3) AP divs are weird, and I did only use as a last resort.
    See? You're a natural!
    The reason is I am confused by the float and clear float classes.  My left column is floated left and that element is what I was having problems understanding.  I tried to make new divs and float right but I screwed it all up.  I am sure I am just not applying the clear float in the right places.
    Getting the hang of floating is key to CSS positioning.  You use a float if you want two elements to sit side by side on the page.  It disrupts the "document flow."  Ordinarily HTML elements are rendered one after the other, on top of each other.  Floating an element takes it out of the document flow and allows other elements to occupy its space.  When you float an element it should always have a width.  If the element below it also has a width, that width has to be sufficiently narrow to allow it to occupy the space.  In short, floated elements can't be wider than their containing element.
    The clear property is used after a float to stop an element occupying the space left by a floated element.  It works but confuses the heck out of me!
    So that leads me to my final point.  I am a novice too!  I might have fluffed a few of the technical points above but it's pretty much there.
    Regards
    Martin

  • Quick question about div tags

    How do you make a div tag only as wide as the content that is
    inside of it, rather than the width of the cell that surrounds
    it?

    <div style="width:200px; float:left">
    Would give you a div 200px wide and floated to the left. You
    can similarly
    float another div to the right of this div etc. When you are
    done with a row
    of divs, you would want to clear the float so that the next
    set of divs
    starts with the extreme left as the reference point. To clear
    a float you
    would use style="clear:both;" or style="clear:left;" etc.
    Please do some
    reading on all this before you start experimenting else
    you'll run into a
    multitude of issues.
    You cannot lose until you give up !!!
    "AngryCloud" <[email protected]> wrote in
    message
    news:f133f2$jk4$[email protected]..
    > How do you make a div tag only as wide as the content
    that is inside of
    > it, rather than the width of the cell that surrounds it?

  • Can I replace my table with divs, in this context?

    Hi,
    I'm trying to accomplish something without the use of tables. Maybe someone can tell me how.
    - The skeleton is basically made up of 3 newspaper-style columns.
    - Their widths aren't very likely to change -- their widths will be fixed -- so this eliminates one problem right off the bat, right?
    - The first column (left) is a sidebar menu, and it has its own distinct background image pattern.
    - The other two columns (mid and right) share a flat background. Right now, I'm just calling the same 1k JPG twice (once in each of those two columns/cells). I find this simpler than creating an unnecessary container just for the common background.
    - All 3 columns begin at the same line (0).
    So far so good, the fixed widths and the fact that they all begin at y=0 makes this easier than it otherwise could have been.
    Now here's the tricky part :
    - The amount of content is different from page to page (some pages are longer than others), and the amount of content per column will also vary individually (so the sidebar might be the longest column in one file, the mid column could be the longest element in the next, and so on...)
    - The layout is horizontally centered.
    - All 3 columns need to end at the same spot, which will be dynamic from page to page (in other words, the backgrounds of these columns need to stretch/repeat until the end of the column with the most content, whichever of the 3 columns that may be on any given page).
    - There is a page-end image to display that is as wide as the combined 3 column widths.
    As you can imagine, using a table with 3 columns makes this easy as pie. But I was told to avoid tables whenever possible, so if there's an easy way to justapose 3 divs and have them behave like 3 cells of the same table -- without too much markup -- I'd give it a try, and potentially leave tables behind for good.
    It would be easy enough to create a large container div, horizontally center it, and left-float 3 divs inside it... but this doesn't address the problem of having to have those backgrounds repeat all the way to the end of the site. The way I just described, the backgrounds would vertically end wherever the content of that individual column ends.
    And since we know divs don't like height=100%, well...
    Any help would be appreciated.
    Thanks!

    Have you tried using Faux Columns?
    http://www.alistapart.com/articles/fauxcolumns/
    or Project Seven's Equal Height Columns script?
    http://www.projectseven.com/tutorials/css/pvii_columns

  • Div tag issue

    Hi all,
    Still fairly green. I have a question about float and divs. I
    have 2 divs next to each other, both float left. Both filled with
    different colors. As the Div on the left expands VERTICALLY with
    copy... I want the one on the right to ALSO expand vertically
    WITHOUT adding copy.
    I have a footer Div that clears the float but...
    Any help would be great.

    Position relative is unnecessary in this scenario.
    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
    ==================
    "trymycode" <[email protected]> wrote in
    message
    news:gmc191$h5$[email protected]..
    > Better make a main wrapper div to wrap your left and
    right column div, and
    > keep
    > one background image on main wrapper that is exactly
    matching color of
    > your
    > left and right column ( vertical repeat).
    >
    > Make a position relative to the inner div ( left and
    right column), so
    > whenever either left or right column increase main
    wrapper height will
    > increase, when main wrapper increase you can feel both
    side color
    > background
    > also will grow.
    >

  • How to align 3 divs side-by-side

    Hello.
    I need to get out of the habit of using tables and starting
    using div's.
    I need to align 3 divs in a row the main site layout. One on
    the left, one on the right and one in the middle, I have been
    trying to make it work for quite a while now and have given up. So,
    how would I go about aligning 3 divs side by side?
    Thanks in advance,
    Perry

    Use floats (CSS). There is no one best way but here's a
    starting point.
    First create a containing wrapper div & give it a width
    of say 600 px
    (width:600px;)
    Create 3 divs, 200 px wide each inside the wrapper div, one
    after the other.
    Float each div left (float:left;).
    Create a 4th div, or just a paragraph (<p></p>)
    and make it clear:left.
    Place it after the 3rd div and inside the wrapper div. Again
    this is just a
    start. Once you get this working you can experiment with the
    code until you
    thoroughly understand what is happening.
    If any of these terms/jargon makes you say, "Huh?" you are in
    over your head
    and should return to Go. Once back at go study CSS and how it
    interacts with
    HTML before going further.
    Walt
    "Perry|" <[email protected]> wrote in
    message
    news:g39q32$fcj$[email protected]..
    > Hello.
    >
    > I need to get out of the habit of using tables and
    starting using div's.
    > I need to align 3 divs in a row the main site layout.
    One on the left, one
    > on
    > the right and one in the middle, I have been trying to
    make it work for
    > quite a
    > while now and have given up. So, how would I go about
    aligning 3 divs side
    > by
    > side?
    >
    > Thanks in advance,
    >
    > Perry
    >

  • Main div is not containing interior divs

    My interior divs are floating beyond the height of my main div, instead of my main div lengthening to accommodate interior divs. I've examined coding from another site I did and it looks to me to be the same code. I need a second pair of eyes.
    http://12caliboguecay.com
    Thank you!
    Samantha

    chameleonhhi wrote:
    I gave it a try...and "yes" it did extend the height, however only when I look at it in preview mode, which makes it a bit awkward to work with in design mode. Is it not okay practice to do the br class=clearfloat code?
    Thank you for hanging in there with me on this.
    Samantha
    You can use any number of clearing methods - overflow: hidden; is the cleanest. However if you can't see it in design view use the <br> style method
    inserted between your last floated closing </div> tag and its parent closing </div> tag as below:
    </div>
    <br style="clear: both;">
    </div>

  • Fluid layout wont float

    Dear all, I know there will be a simple solution and i've read lots of tutorials but i cant find my mistake. Im using a fluid layout and trying to simply float two div tags next to eachother. Below is my code please help.
    HTML
    <body>
      <div class="gridContainer clearfix">
       <div class="fluid  container" id="one">This is the content for Layout Div Tag "one"</div>
          <div class="fluid  container" id="two">This is the content for Layout Div Tag "two"</div>
      </div>
    </body>
    CSS
    /* Mobile Layout: 480px and below. */
    .gridContainer {
      margin-left: auto;
      margin-right: auto;
      width: 86.45%;
      padding-left: 2.275%;
      padding-right: 2.275%;
      clear: none;
      float: none;
    #one {
      background-color: #F8080C;
      width: 168px;
      float: left;
      height: 80px;
    #two {
      background-color: #0250ED;
      width: 188px;
      float: left;
      height: 106px;
    .zeroMargin_mobile {
    margin-left: 0;
    .hide_mobile {
    display: none;
    Thanks

    Some advice.  Play away but it took me 9 re-tries to get an acceptable mobile/tablet/desktop layout  the first time I used this tool.   It's not exactly intuitive.
    Build mobile first. That's what everything else is based on.  Don't fuss with any content, just focus on getting divisions all inserted and stacked on top of each other.
    Then build Tablet.  Use the pull handles to resize divs and move them up or down rows.
    Finally build desktop.  If you examine the code as you go along, you'll see that DW does a pretty fair job of generating the necessary floats, widths and margins for you.  Don't tamper with Fluid Grid CSS code.  It's very temperamental and breaks easily.  When you're ready to style content, use a separate external stylesheet for that.
    Have fun!
    Nancy O.

  • Float behavior confusion

    I always thought that setting a float property resulted in non-floated objects acting as if the floated object was not there
    however look at this code
    <div style="width:100px; height:100px; background-color:#03C;"></div>
    <div style="width:100px; height:100px; background-color:#F36;"></div>
    <div style="width:100px; height:100px; background-color:#F36; float:left;"></div>
    <div style="width:100px; height:100px; background-color:#F36; float:left;"></div>
    some divs are floated some are not
    if i place the non floated ones on top the floated ones appear bellow where they would if there was no floating at all.
    but if i place the floated ones on top the non floated ones position themselves where the floated ones are as if the floated ones do not exist.
    so why is it that floated/non floated elements ignore each other if the non-floated element comes first but not if its the other way arround

    when applying clear which block do i apply it to?
    if i apply it to the final block before the block which i intend to change the behavior of will it changhe the behavior of the block that i applied it to
    if i apply it to the first block that should ignore the float then what happens if this block itself must also be floated in order to effect the behavior of blocks which come after it.
    is there any reason why float/clear cannot be unused and simply use display:block and display:inline instead?
    frankly the confusion caused by css float/clear, espcially when combined with different display properties really annoys me
    Basic css, mysql and javascript did not cause me this sort of headache, basic AS3 did but only because i tried to run before i could walk.
    css is far more basic than any of these technologies and yet it causes me more grief than any of them.

Maybe you are looking for

  • Solaris 10 Active Directory problem

    I've been battling through the integration of Active Directory on our Solaris 10 systems, and have reached another brick wall. I am able to getent passwd <user> and kinit <user> without any problems, but any attempt to su or login via SSH shows the f

  • Having 2 or more users on the same computer point to one itunes account

    I recently purchased a new computer. When I opened itunes for the first time on each user account it created different libraries and playlists for each user. We only use one Ipod. Now when I purchase a song in one account the other account does not s

  • No Skype Video Calls on the N8

    Can anybody give me one good reason why a Video Call cannot be made using Skype on the N8?  Surely the N8 is built for such applications with its forward facing camera and excellent specifications... Is somebody not paying somebody royalties somewher

  • Memory Leak in JMF 2-1-1e  ( Windows2000) ?

    I worte a java application that is playing MP3 songs from a file. The memory is constantly growing, although I call player.close(); player.deallocate(); after playing every song. Does anybody know what possibly could be wrong ? Thanks for any kind of

  • Sent Mail Disappearing

    Today I happily worked through hundreds of e-mails, sending replies. When I went later to my Sent Box the last two hours or so of mail sent was not there, in either Sent Account I was using (I use two accounts). My HD is not full, it has 20GB free Th