Div tags do not align

I can't get my div tags to align correctly.  I have a DIV set to float left and the other right float.  I can get the first set of work, but as soon as I add in another series, they both float left.  I played around with the margins, borders and padding and nothing seems to work.  Here is the code:

< style type = "text/css" >
{.pageborder}
Width: 795px;
height: 1000px;
border: medium solid #008478;
do-family: Verdana, Geneva, without serif.
do-size: 10pt;
}
{.prodboxleft}
do-family: Verdana, Geneva, without serif.
do-size: 10pt;
background-color: #76c6be;
text-align: left;
Width: 369px;
float: left;
height: 150px;
border: medium dashed #008478;
top of the margin: 5px;
right margin: 5px;
margin-bottom: 5px;
left margin: 12px;
padding: 0px;
}
{.prodboxright}
do-family: Verdana, Geneva, without serif.
do-size: 10pt;
background-color: #76c6be;
text-align: left;
Width: 369px;
float: right;
height: 150px;
border: medium dashed #008478;
top of the margin: 5px;
right margin: 12px;
margin-bottom: 5px;
margin-left: 5px;
padding: 0px;
}
< / style >
< / head >

< body >
< div class = "pageborder" > < div class = "prodboxleft" > content of class "prodboxleft" goes here < / div >
< div class = "prodboxright" > content of class "prodboxright" goes here < / div >
< div class = "prodboxleft" > content of class "prodboxleft" goes here < / div >
< div class = "prodboxright" > content of class "prodboxright" goes here < / div >
< div class = "prodboxleft" > content of class "prodboxleft" goes here < / div >
< div class = "prodboxright" > content of class "prodboxright" goes here < / div >
< / div >

You are welcome.

When you get a chance, please mark "compensation float" as the correct answer.  It helps others who might find this thread in the forum search.

Nancy O.

Tags: Dreamweaver

Similar Questions

  • Div tag is not growing with content... Help please!

    Hello

    First of all, I'm pretty new to this so I'm stoopid, so it is possible that I am.

    I built a page CSS based with DIV tags What I'm trying to achieve is a html body that has a #wrapper centered on the page, then a #header, #nav, #banner, #content and #footer consecutively to the bottom of the page. Then inside I want to place a #leftColumn and a #rightColumn. What I have achieved. I have a problem with is to have the content div expand with the divs two columns it contains. I've included the main.css file I use below as well as the source code for the "content" of the page section. Any help would be greatly appreciated.

    See you soon,.

    Philamon

    @charset "UTF-8";

    {body

    color: #FFF;

    text-align: center;

    margin: 0px;

    padding: 0px;

    }

    {#wrapper}

    color: #000;

    text-align: left;

    width: 760px;

    margin-top: 0px;

    margin-right: auto;

    margin-bottom: 0px;

    margin left: auto;

    }

    #header {}

    color: #000;

    top of the margin: 12px;

    margin-bottom: 12px;

    }

    #content {}

    color: #000;

    width: auto;

    margin-top: 0px;

    padding-top: 0px;

    padding-left: 5px;

    overflow: auto;

    }

    #footer {}

    color: #000;

    top of the margin: 5px;

    margin-bottom: 0px;

    clear: both;

    text-align: center;

    bottom: 0px;

    left: 0px;

    right: 0px;

    position: relative;

    }

    #logo {}

    color: #000;

    height: 71px;

    padding-bottom: 10px;

    padding-right: 5px;

    }

    #nav {}

    color: #000;

    height: 28px;

    }

    #banner {}

    color: #000;

    height: 200px;

    text-align: center;

    }

    {#leftColumn}

    color: #000;

    float: left;

    width: 70%;

    padding-right: 5px;

    padding-bottom: 30px;

    padding-left: 5px;

    }

    {#rightColumn}

    color: #000;

    float: right;

    width: 20%;

    padding-right: 5px;

    padding-left: 5px;

    padding-bottom: 30px;

    }

    {.fltrt}

    float: right;

    }

    < div id = "content" >
    Welcome to the Division of Groundswell < h1 > < / h1 >
    < div id = "left column" >
    Mission statement < h2 > < / h2 >
    < p > The Groundswell Division aims to: < /p >
    < p > participate in mold in the future of the Australian performing arts industry by attracting new audiences, are working to find new forms and contribute to broaden the scope of the arts scene in Australia. < br / >
    Provide vital, diverse and stimulating of public art works, both locally in Melbourne, in the Australia and abroad. < br / >
    Provide a platform for practitioners of the arts of the local scene that are currently underutilized within the industry. < br / >
    Offer an umbrella for independent artists present their works within an established business support. < br / >
    All decisions regarding the control and artistic direction in an open and honest forum by members of the democratic Committee of the society. < /p >
    < / div >
    < div id = "by" rightColumn >»»
    Subheading < h2 > < / h2 >
    < p > Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut developed and pain magna aliquyam erat, sed diam voluptua. At vero eos and accusam and justo duo dolores and ea rebum. STET clita kasd gubergren, no sea takimata sanctus is Lorem ipsum dolor sit amet. < /p >
    < / div > < div id = "leftColumn2" >
    < h2 > < / h2 >
    < / div >
    < / div >

    You should be able to get #content to expand changing overflow: auto; to overflow: hidden; in the style of #content {...}.

    That may seem paradoxical, but overflow: auto; you will get scroll bars, not expansion. He might not even have you that, if you do not have a specified height. Overflow: hidden; should be #content stretch to lock up the sidebar divs.

    Beth

  • Margins/padding, I set myself on div tag are not displayed in the preview. -Help?

    Hi people! I'm trying to put some padding or margins around my div. #square1 However, padding or margins (I tried both) the high margin/padding of the page does not appear in the preview. I can't understand it. Any help is greatly appreciated!

    I enclose what I see in the preview:

    screen.jpg

    Here's my code and css:

    #wrapper {
         width: 950px;
         height: auto;
         margin-right: auto;
         margin-left: auto;
         background-color: #FFF;
    }
    #paypal {
         height: 32px;
         width: 503px;
         float: right;
         font-family: Arial, Helvetica, sans-serif;
         font-size: small;
         color: #666;
         text-align: right;
         padding-top: 10px;
         padding-right: 20px;
         padding-bottom: 10px;
         padding-left: 10px;
         display: inherit;
         background-color: #FFF;
    
    }
    #logo {
         height: 116px;
         width: 417px;
         float: left;
         font-family: Arial, Helvetica, sans-serif;
         font-size: small;
         color: #666;
    }
    #menu {
         height: 54px;
         width: 518px;
         float: right;
         font-family: Arial, Helvetica, sans-serif;
         font-size: 14px;
         font-style: normal;
         text-transform: lowercase;
         color: #8A1E06;
         font-weight: bold;
         padding: 0px;
         margin-top: 10px;
         margin-left: 15px;
         background-color: #FFF;
    }
    #menu li {
         display: inline;
         list-style-type: none;
         padding-right: 14px;
    }
    
    #hero {
         height: 404px;
         width: 950px;
         margin-top: 37px;
         margin-bottom: 0px;
         float: none;
         clear: none;
    }
    #buckets {
         height: auto;
         width: 910px;
         background-color: #FFF;
         float: left;
         padding: 20px;
         margin-top: 0px;
         margin-right: 0px;
         margin-bottom: 0px;
         margin-left: 0px;
    }
    #square1 {
         height: 145px;
         width: 225px;
         background-color: #CCC;
         padding: 10px;
         float: left;
         font-family: Arial, Helvetica, sans-serif;
         font-size: x-small;
         margin-top: 0px;
         margin-right: 0px;
         margin-bottom: 0px;
         margin-left: 0px;
    }
    
    
    <body>
    <div id="wrapper">
    <div id="logo"><a href="index.html"><img src="images/logo.gif" width="417" height="116" border="0" /></a></div>
    <div id="paypal"><a href="payfees.html">pay fees</a> <a href="https://www.paypal.com/us/cgi-bin/webscr?cmd=_flow&amp;SESSION=9zgSs6qe73-kjgVn2UL3ACF9Ot71Zg8zsBi0tNWDWKC9L-bdRSgYgHEdehC&amp;dispatch=5885d80a13c0db1f8e263663d3faee8d5fa8ff279e37c3d9d4e38bdbee0ede69" target="_blank"><img src="images/paypal.gif" alt="Paypal" width="27" height="29" border="0" align="absmiddle" /></a></div>
    <div id="menu">
           <li><a href="areas.html">about</a></li>
        <li><a href="about.html">areas of practice</a></li>
        <li><a href="consultation.html">consultation</a></li>
        <li><a href="press.html">press</a></li>
        <li><a href="resources.html">resources</a></li>
        <li><a href="contact.html">contact</a></li></div>
    <div id="hero"><img src="images/hero/appellate.jpg" width="950" height="404" alt="Appellate Practice" /></div>
    <div id="buckets">
    <div id="square1">Content for  id "square1" Goes Here</div>
    </div>
    </div>
    </body>
    </html>
    

    Remove float: none; and clear: none; and use clear: both; in the css below (as shown) selector

    {#hero}
    height: 404px;
    Width: 950px;
    top of the margin: 37px;
    margin-bottom: 0px;
    Clear: both;
    }

    Problem is your other

    s are hiding under the image.

  • div within the div element does not align properly

    When I create a div element in a div with the same effort, left size element and the width, it is necessary to add one - correction 2px for the two divs to overlay exactly.

    See the html code that illustrates this in the troubleshooting information. Run as the East once and then uncomment the line that is commented out and comment on the current line.

    A good place to ask for advice on web development is to the 'Web Standards Development/evangelism' MozillaZine forum.

    Aid to this forum are better informed on issues related to web development.

    You must register on MozillaZine forum site to post in this forum.

  • The alignment of the div tags/content

    I have a div class = "wrapLinks" (unordered list) and a div class = "slider" (image carousel), and both are within the class = "content" div  At some point, "wrapLinks" were in the top left of the content.  After you create the div class is 'slider', the 'wrapLinks' have been 'pushed' down under the "cursor" that comes from taking up space at the top left of the content.  Ideally, I want the two (aligned horizontally) inline with eachother. First, I tried to change the margin for both classes of div in the css, but that doesn't seem to work.  I then tried to add "float: left;" to the "wrapLinks" and "float: right;" for the "cursor" in the css, but that also does not work.  I also try to put a button on the cursor.  I think that's what we call a 'floating div tag", but not sure.  I feel that I write the CSS properly for each class of div.

    Any ideas on what I can / should I do?

    I have provided a reference image.

    div_tag_help.JPG

    Even with the following addition/changes, the carousel seems too wide to fit completely on the page:

    .wrapLinks UL

    {

    margin: 10px 0px 0px;

    padding: 4px 0px 0px;

    do-family: "Arial Unicode MS";

    / * + 9px placement: shift-346px; * /

    position: relative;

    left: 9px;

    top:-346px;

    }

    .float-right

    {

    float: right;

    margin: 225px 60px banner 0px 0px;

    / * + placement: Maj 51px-301px; * /

    position: relative;

    left: 51px;

    high:-301px;

    }

    /*################*/

    . Slider

    {

    / * + placement: Maj 248px 8px; * /

    position: relative;

    left: 248px.

    top: 8px;

    }

  • Web design with AP div tags

    Hello Dreamweavers

    I am currently a tutorial, and the instructor is to design an entire web site using tags DIV PA, but not only that it deploys the % adding reagent website PA divs.

    I know that this method is wrong. I saw an other tutorials of instructors who said to keep away from this type of layout. But in this case, it seems to work well.

    PA DIV tags do not all mumbo jumbo and appear as a result remain in their positions without overlapping and causing a disaster page layout.

    So my question is why does he choose DIVS PA rather than the traditional div? would it be the tutorial I'm following are for the accelerated course of an easy start "how to build your first web site.

    Thus, it is the omission of the DIV TAGS, because its more difficult to explain how they work with CSS and the driftwood and margins and padding that lights etc?

    Thank you.

    Lynda.com library grew these last few months to include videos from other video tutorial companies.  A few black sheep may have slipped into the barrel.  Honestly, I don't know if any criteria Lynda uses for the revision of the content acquired in a merger.

    This 5-part tutorial covers a lot of material.  Well worth doing.

    Create your first web site in DW-

    http://www.Adobe.com/devnet/Dreamweaver/articles/first_website_pt1.html

    Nancy O.

  • alignment with the &lt; div &gt; tags

    I am having trouble getting my 3rd < div > tag align (id = flash). It is left in line with the edge of the tag '#content' < div >. Essentially left alignment on the edge of my centered layout. Here is my code, anyone can have an idea on what I'm missing? I am new to do not use tables.

    Thank you

    < head >
    < meta http-equiv = "Content-Type" content = text/html"; Charset = UTF-8 "/ >"
    < Title > page < /title >
    < style type = "text/css" >
    {body
    do-family: Arial, Helvetica, without serif.
    background-color: #FFF;
    margin: 0px;
    padding: 0px;
    }
    #container {}
    margin: 0 auto;
    Width: 999px;
    }
    #content {}
    Width: 100%;
    }
    {#flash}
    position: absolute;
    top: 134px;
    left: 216px;
    }
    < / style >
    < / head >

    < body >
    < div id = "container" >
    < div id = "content" > < img src = "images/background.jpg" width = "997" height = "2400" / > "
    < div id = "flash" >

    This is a decision by aligning

    < / div >
    < / div >
    < / div >
    < / body >
    < / html >

    The same can be applied to the normal margins:

    {#flash}

    margin: 134px 216px 0px 0px;

    }

    Is that what you are looking for?

    Nick

  • Align 4 div tags?

    I have a total of 4 div tags, I need to align correctly. The first will at the top left of the page and is 455w x 255 h. The next, which will display in line with the first and be placed in the upper right is 327w x 214 h. (note the difference in height). The third div is 455w x 261 h will be at the bottom left of the page. The last div at the bottom right is 327w x 344 h.

    Now the delicate parts. The background div 2 must align their funds. Because they have elements that cover the two divs and need to align horizontally. I would like the right div down to expand upward into vertical space left by the height of the 2nd div (top-right).

    Please see the gif attached for a Visual.

    I can reach the bottom of the tail, but it seems that I can only do with tables. I'm looking to break up tables form and I'd appreciate any help.

    Thank you!

    -Change

    http://www.Macromedia.com/go/getflashplayer"type =" application/x-shockwave-flash"width ="327"height ="344">
           

    on this subject.

    http://www.Macromedia.com/go/getflashplayer"type =" application/x-shockwave-flash"width ="327"height ="344">

    It is whitespace gotcha!

  • IE6 and IE7 do not like my position absolute DIV tag

    I did some research on Google.  I made sure that the position of the envelope has been set at parent and I tried clearing offending left, right and two tanks of the div tag.

    This is the header which gives me headaches. I could include it as part of the mainNav div if all else fails, but I hope there is a simple solution to this bug, I've not found in Google.

    Everything I learned about web design I learned over the last month or two, so if you can keep this in mind, I would be grateful.

    Thank you.

    Web site URL: http://www.ladyhawkslair.com

    Code: http://www.ladyhawkslair.com/code.txt

    IE already gave me some problems.  I use Firefox because it's faster.  I learned that it's less buggy.  Yeesh.

    BTW, how important are IE6 and IE7?  I'm more upset by their behavior and may simply strike them if most of the people have upgraded to IE8.

    Glad it works for you... good luck.

    Brad Lawryk

    Adobe Professional Community: Dreamweaver

    The Northern British Columbia Adobe user group: Manager

    Thompson Rivers University: Dreamweaver instructor

    My Blog from Adobe: http://blog.lawryk.com

  • Div tag, align right

    Hello

    It should be easy and for some reason, I'm missing it. This is a php page and it has a navigation panel with fireworks on the left side, but I'm removing all the extranuous stuff just to let the div tags that are governed by a CSS page.


    Why is not it? And, is there a way to control with CSS?

    Thank you

    The problem was in the CSS. I had to fill for the 'content' div and nothing for the div. "nav" for a reason, it was make the div "nav" I put padding for the "nav" div and took the filling of the upper part of the div 'content', the page now appears correctly.

    Thanks for the help Osgood... !

  • Divs PA are not displayed in the window AP elements

    The AP div tags are in the doc of dreamweaver and appear under css etc but when I click in the AP elements to change behaviour, none show AP divs.

    There is a lot I don't know about Dreamweaver and am willing to learn another way to create hide them and show or drag and drop.

    Use jQuery to hide/show the divs.

    http://jsfiddle.NET/MdSTW/12/

    DW is not an application, drag & drop like Muse or Photoshop.  With DW, you need a good knowledge of HTML & CSS code. JavaScript is also very useful to know.

    APdivs are rarely if ever required. 98% of all the layouts are created with the default CSS positioning (no or static).  When you introduce APDivs, you remove content in normal document flow which, if used properly, can have disastrous consequences and even destroy the usability of your site.

    My advice is to stay away from APDivs.  Learn how to align items with CSS floats, margins, and padding.

    http://ALT-Web.com/demos/3-CSS-boxes.shtml

    http://ALT-Web.com/demos/CSS2-captions-on-floated-images.shtml

    Nancy O.

  • Problem with the text in the div tag

    Hey there,

    the question that I have is that every time that I add text to a div tag and press 'enter' to start on another paragraph, the text on the first paragraph right guard moved down to about a paragraph. It happens in Dreamweaver and the browser when available is presented as a preview. I have included a few pictures below, please advise.

    First added text, which seems fine:

    Screen shot 2013-10-09 at AM 09.27.43.png

    But when I try to type the text after pressing "enter".

    Screen shot 2013-10-09 at AM 09.28.20.png

    I want the text to align to the top instead of from a paragraph down. Something like this (made in InDesign):

    Screen shot 2013-10-09 at AM 09.28.42.png

    I will include the code as well. When I select the div tag, it's what is highlighted in the code pane:

    < div id = "about6" >

    < p > Hey there < /p >

    < p > Hey there 2 < /p >

    < p > Hey there 3 < /p >

    < p > Hey there 4 < /p >

    < / div >

    A screenshot of the of type parameters for this div:

    Screen shot 2013-10-09 at AM 09.42.39.png

    Any help would be appreciated. Thank you.

    Paragraphs, titles etc. have legacy browser style rules.

    We can remove the style by adding rules to the top of the stylesheet

    * {

    padding: 0;

    margin: 0;

    }

    Even better is to include a CSS reset set of rules such as found here http://meyerweb.com/eric/tools/css/reset/

    By the way, please note that the use of identifiers will limit your fun by using style rules. You should not use ID unless needing a single login. In your case, I would use a class.

    Heights of adjustment are also going to strangle the natural flow of your document, especially if you intend to start on the drawings of fluid

    I hope this helps.

  • Images inside div tags appear broken

    I don't have a ton of experience in the use of div tags, but I'm learning and have met a "roadblock". Search for an answer to these days, I'm not finding exactly what I live... I'm looking on the forum for help and advice.

    So I designed a layout with divs. When I preview the design of in Dreamweaver, the site appears flawelssly in Safari, Firefox and Chrome - everything seems perfect, and there is no broken images. But as soon as I download all my files on my server dev online - it's where things go wrong and I see broken images. But the broken images are not consistent. Some look perfectly while others are broken. I do not understand why an image appears while another image is not, I used the same approach on each div I built. I know that my image paths are correct, then this isn't the problem... which leads me to believe that I have something wrong in my code div itself. But being new to the div... I do not see where I was wrong. I have not used 'float' correctly? Has not used to position correctly? I am very confused and frustrated at this point and I really want to come back to the use of tables... any help will be grately appreciated.

    Here is the site on my dev server: http://studio2adv.com/dev/mignognacollision/

    Here is my css:

    @charset "UTF-8";

    / * CSS document * /.

    / * = Global properties START = * /.

    {body

    background-color: #e9cb9c;

    Width: auto;

    height: 100%;

    margin: 0 auto;

    do-family: Verdana, Geneva, without serif.

    do-size: 12px;

    line-height: 1.4em;

    Color: #000;

    }

    HTML {}

    background: #e9cb9c;

    margin: 0 auto;

    padding: 0;

    outline: 0;

    vertical-align: left top;

    do-size: 100%;

    }

    . Container {}

    margin: 0 auto;

    Width: 1000px;

    height: inherit;

    background-color: #fff;

    }

    #header {}

    Width: 956px;

    height: 125px;

    margin: 0 auto;

    vertical-align: middle;

    background-color: #fff;

    }

    {#footercontainer}

    Width: 956px;

    height: 67px;

    margin: 0 auto;

    border-top-style: solid;

    border-right-style: none;

    border-bottom-style: solid;

    border-left-style: none;

    border-color: orange;

    background-color: #fff;

    }

    {#footercontainer2}

    Width: 956px;

    height: 55px;

    margin: 0 auto;

    background-color: #005baa;

    }

    {#endtag}

    margin: 0 auto;

    Width: 956px;

    height: 70px;

    background-color: #fff;

    }

    / * = Global properties END = * /.

    /* ==================== Start header ========================== */

    {.header1}

    float: left;

    Width: 70%;

    Padding: 50px 0px 0px 0px;

    }

    {.header2}

    float: left;

    Width: 12%;

    padding: 20px 0px 0px 0px;

    }

    {.header3}

    float: left;

    Width: 18%;

    padding: 10px 0px 0px 0px;

    }

    /* ==================== END header ========================== */

    /* ==================== Text ========================== */

    {.topphone}

    do-family: Verdana, Geneva, without serif.

    do-size: 16px;

    make-weight: bold;

    color: #005baa;

    text-align: right;

    vertical-align: top of the text;

    }

    H1 {}

    do-family: Verdana, Geneva, without serif.

    do-size: 18px;

    make-style: italic;

    color: #f7931e;

    text-align: left;

    line-height: 1.5em;

    }

    H2 {}

    do-family: Verdana, Geneva, without serif.

    font-size: 15px;

    make-style: italic;

    Police-weight: normal;

    color: #005baa;

    }

    H3 {}

    do-family: Verdana, Geneva, without serif.

    do-size: 12px;

    color: #f7931e;

    }

    {#preferredtext}

    do-family: Verdana, Geneva, without serif.

    do-size: 9px;

    text-align: center;

    Color: #000;

    }

    . FooterText {}

    do-family: Verdana, Geneva, without serif.

    do-size: 10px;

    color: #fff;

    }

    {p.footerendtag}

    do-family: Verdana, Geneva, without serif.

    do-size: 10px;

    Color: #000;

    text-align: center;

    }

    {p.testimonials}

    do-family: Verdana, Geneva, without serif.

    do-size: 14px;

    make-style: italic;

    Color: #000;

    text-align: left;

    }

    . Blue {}

    do-family: Verdana, Geneva, without serif.

    do-size: 14px;

    make-style: italic;

    make-weight: bold;

    color: #005baa;

    text-align: left;

    }

    {.listorange}

    color: #f7931e;

    }

    {.listblack}

    Color: #000;

    }

    {.listboldblack}

    make-weight: bold;

    Color: #000;

    }

    /* ==================== END Text ========================== */

    /* ==================== DIVs ========================== */

    {#topphone}

    Width: 670px;

    height: 30px;

    float: right;

    padding: 0px 0px 19px 265px;

    position: top of the page.

    }

    {.homefloatleft}

    Width: 143px;

    height: 195px;

    float: left;

    padding: 0px 0px 0px 22px;

    }

    {.homefloatmiddle}

    Width: 585px;

    height: inherit;

    float: left;

    padding: 0px 15px 0px 15px;

    }

    {.homefloatright}

    Width: 198px;

    height: auto;

    float: right;

    padding: 22px 0px 0px 0px;

    }

    {.aboutfloatmain}

    Width: 752px;

    height: 195px;

    float: left;

    padding: 0px 0px 0px 22px;

    }

    {.aboutfloatleft}

    Width: 250px;

    height: 245px;

    float: left;

    padding: 0px 0px 0px 22px;

    }

    {.aboutfloatmiddle}

    Width: 442px;

    height: inherit;

    float: left;

    padding: 0px 15px 0px 15px;

    }

    {.gsfloatleft}

    Width: 228px;

    height: 245px;

    float: left;

    padding: 0px 0px 0px 22px;

    }

    {.gsfloatmiddle}

    Width: 480px;

    height: inherit;

    float: left;

    padding: 0px 15px 0px 15px;

    }

    {.adfloatleft}

    Width: 250px;

    height: 245px;

    float: left;

    padding: 0px 0px 0px 22px;

    }

    {.adfloatmiddle}

    Width: 450px;

    height: inherit;

    float: left;

    padding: 0px 15px 0px 15px;

    }

    {.formfloatleft}

    Width: 80px;

    height: 245px;

    float: left;

    padding: 0px 0px 0px 22px;

    }

    {.formfloatmiddle}

    Width: 750px;

    height: 1200px;

    float: left;

    padding: 0px 15px 15px of 20px;

    }

    {.formfloatright}

    Width: 50px;

    height: auto;

    float: right;

    padding: 22px 0px 0px 0px;

    }

    {.clearfloat}

    Clear: both;

    }

    /* ==================== END DIVs ========================== */

    /* ==================== Start main nav ========================== */

    {#navlist}

    Width: 956px;

    }

    #navcontainer ul {}

    padding-left: 0px;

    left margin: 0px;

    background-color: #005baa;

    color: white;

    float: left;

    Width: 100%;

    do-family: Verdana, Geneva, without serif.

    }

    #navcontainer ul li {display: inline ;}}

    #navcontainer ul li a {}

    Padding: .7em 3.5em;

    background-color: #005baa;

    color: white;

    text-decoration: none;

    float: left;

    border-left: 1px solid #fff;

    }

    #navcontainer ul li a: active {}

    background-color: #f7931e;

    color: #fff;

    }

    #navcontainer ul li a: hover {}

    background-color: #f7931e;

    color: #fff;

    }

    #navcontainer ul li a: selected {}

    background-color: #f7931e;

    color: #fff;

    }

    /* ==================== END main nav ========================== */

    / * = Start slideshow = * /.

    {.rslides}

    position: relative;

    list-style: none;

    overflow: hidden;

    Width: 100%;

    padding: 0;

    margin: 0;

    }

    .rslides li {}

    -webkit-backface-visibility: hidden;

    position: absolute;

    display: none;

    Width: 100%;

    left: 0;

    top: 0;

    }

    .rslides li: first - child {}

    position: relative;

    display: block;

    float: left;

    }

    .rslides img {}

    display: block;

    height: auto;

    float: left;

    Width: 100%;

    border: 0;

    }

    /* ==================== End Slideshow ========================== */

    /* ==================== Start footer ========================== */

    {#footer1}

    float: left;

    Width: 12%;

    padding: 20px 20px 0px 20px;

    }

    {#footer2}

    float: left;

    Width: 24%;

    padding: 20px 0px 0px 0px;

    }

    {#footer3}

    float: left;

    Width: 60%;

    padding: 10px 0px 0px 0px;

    }

    {#footer4}

    float: left;

    Width: 55%;

    padding: 0px 0px 0px 10px;

    }

    {#footer5}

    float: right;

    Width: 40%;

    padding: 0px 10px 0px 0px;

    }

    {a.footerendtag:Link}

    color: #005baa;

    text-decoration: underline;

    }

    {a.footerendtag: active}

    color: #f79122;

    text-decoration: underline;

    }

    {a.footerendtag:hover}

    color: #f79122;

    text-decoration: underline;

    }

    {a.footerendtag:visited}

    color: #005baa;

    text-decoration: underline;

    }

    {#footercurrentlink}

    color: #f79122;

    text-decoration: underline;

    }

    /* ==================== END footer ========================== */

    Check that the images are not damaged and were saved for web RGB and CMYK not.

    Nancy O.

  • div tag

    I have an index.cfm which uses the dic to have the browser on the left and content on the right with a header and a footer.

    The left float div tag and the right float works in index.cfm.

    I want to place a Login.cfm on header and use the tag div, but the label title and invites always vertical connection, but not float left and right.

    Here is my code

    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "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 > < /title > header form


    "" < link href = "... / Styles/MyCSS.css" rel = "stylesheet" type = "text/css" / >
    < / head >

    < body >
    < cfform >
    < div class = "container" >
    < div class = "HomeTitle >"
    < table border style = "hidden" >
    < b >
    < td border-style = "hidden" >

    "< cfinput type ="image"name ="Logo"class ="logo"id ="logo1"dir ="ltr"lang ="en"src="/GBS/Apps/Image/MyImage.png "alt ="Image ".

    align = "top" width = "50" height = "60" hspace = "50" hspace = "20" >
    < table >

    < td border-style = "hidden" >

    < label for = class "Title" = "GBStitle" > GBS America region Home Page < / label >

    < table >
    < /tr >
    < /table >
    < / div >
    < div class = "Login" >
    "< model CFINCLUDE ="... / Commmon/Login.cfm ">"
    <!-end.-> connection
    < / div >
    < / div >
    < / cfform >

    < / body >
    < / html >

    / * CSS document * /.
    {GBStitle}
    font-size: 10cm;
    do-family: Verdana, Geneva, without serif.
    background-color: #ADB96E;
    background-repeat: repeat;
    position: relative;
    visibility: inherit;
    color: #C00;
    text-decoration: underline;
    make-weight: bold;
    Width: 200px;
    }

    }
    . {HomeTitle}
    float: left;
    Width: 500px;
    background-color: #ADB96E;
    }

    . {Login
    do-family: Verdana, Geneva, without serif.
    background-color: #FFF;
    float: right;
    Width: 500px;
    }

    . Container {}
    Width: 1024px;
    background-color: #FFF;
    margin-top: 0;
    margin-right: auto;
    margin-bottom: 0;
    left margin: auto;
    }

    I use the Dreamweaver template to create this file, I think that model Dreamweaver using the.

    Certainly not. But anyway, the two elements to be floated next to each other must be in the same container.

  • Dreamweaver cs5.5 - div tags don't float next to eachother

    I'm trying to get 2 div tags to float next to each other for hours! I've been playing with the float and messing around with the margins, but what ever I don't the div is always somewhat my another div tag I want that they completely off. I tried to change the top and bottom margins, but that does not work either. How can I get them side by side? We call it "textbox" and the other "imagewrapper". The code is:

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "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 > Untitled Document < /title >

    < script src = "SpryAssets/SpryMenuBar.js" type = "text/javascript" > < / script > "

    < link href = "SpryMenuBarHorizontal.css" rel = "stylesheet" type = "text/css" / > "

    < link hand. CSS"rel ="stylesheet"type =" text/css"/ >

    < link href = "style2.css" rel = "stylesheet" type = "text/css" / > "

    <!-integrated styles for this page only-->

    < style type = "text/css" >

    {body

    margin: 0;

    padding: 0;

    font: 1em/1.5 ' Lucida without ","Lucida Sans Unicode ";

    }

    {#wrapper}

    Width: 1064px;

    margin: 0 auto; / * with width, this centers on screen page * /.

    Background: #FFF;

    text-align: center;

    }

    / * This styles image container * /.

    #thumbs p {}

    float: center;

    Width: 50px;

    height: 75px;

    / * This text caption styles * /.

    font: 14px italic/1.5 Geneva, Arial, Helvetica, without serif.

    color: #666;

    text-align: center;

    border: 1px solid silver;

    margin-top: 10px;

    right margin: 5px;

    margin-bottom: 18px;

    margin-left: 5px;

    }

    / * recommend using images of even size * /.

    #thumbs img {}

    Width: 50px; / * adjust the width to the photo * /.

    height: 75px; / * to the picture height adjustment * /.

    / * CSS3 drop shadows * /.

    -moz-box-shadow: 5px 5px 5px #666;

    -webkit-box-shadow: 5px 5px 5px #666;

    -khtml-box-shadow: 5px 5px 5px #666;

    box-shadow: 5px 5px 5px #666;

    }

    / * float clearing * /.

    #thumbs: after {}

    Display: block;

    visibility: hidden;

    height: 0;

    do-size: 0;

    content: "";

    Clear: left;

    }

    #wrapper #thumbs #imagewrapper {}

    height: 362px;

    Width: 280px;

    float: right;

    right margin: 720px;

    }

    #wrapper #thumbs #imagewrapper img {}

    height: 362px;

    Width: 280px;

    }

    {#wrapper #textbox}

    float: right;

    height: 300px;

    Width: 600px;

    right margin: 70px;

    }

    {.clearing}

    Clear: left;

    height: px;

    Width: 100%;

    }

    < / style >

    < / head >

    < body >

    < div id = 'wrapper' >

    < img src = "photos/header.png product and site" width = "1064" height = "116" alt = "header" / >

    <! - start menu - >

    < ul id = "MenuBar1" class = "MenuBarHorizontal" >

    < li > < a href = "#home.html" > home < /a > < /li >

    < li > < a href = "#" class = "MenuBarItemSubmenu" > shop < /a > < ul >

    < li > < a href = "#" class = 'MenuBarItemSubmenu' > women < /a > < ul >

    < li > < a href = "bwt.html" > top < /a > < /li > ""

    < li > < a href = "bws.html" > skirts/Shorts < /a > < /li > ""

    < li > < a href = "bwl.html" > pants/Leggings < /a > < /li >

    < li > < a href = "bwa.html" > Accessories < /a > < /li > ""

    < li > < a href = "bwd.html" > dresses < /a > < /li > < /ul > < /li > ""

    < li > < a href = "#" class = "MenuBarItemSubmenu" > < /a > men

    < ul >

    < li > < a href = "#" > Tops < /a > < /li >

    < li > < a href = "#" > money < /a > < /li >

    < li > < a href = "#" > Accessories < /a > < /li >

    < /ul >

    < /li >

    < li > < a href = "#" > semi Unique < /a > < /li >

    < /ul >

    < /li >

    < li > < a class = "MenuBarItemSubmenu" href = "#" > T-shirt Shop < /a > < ul >

    < li > < a href = "t-shirt shop.html" > men < /a > < /li >

    < li > < a href = 't-shirt shop.html' > women < /a > < /li >

    < li > < a href = "t-shirt shop.html" > single < /a > < /li >

    < /li > < /ul >

    < li > < a href = "clearance.html" > release < /a > < /li > ""

    < li > < a href = "#" > on < /a > < /li >

    < /ul >

    < h2 > < / h2 >

    < div id = "textbox" > < / div >

    < div id = "thumbs" >

    < div id = "imagewrapper" > < / div >

    < p > < / p >

    < p > < / p >

    < p > < / p >

    < p > < / p >

    <! - end wrapper - > < / div >

    < hr align = "center" size = "10" noshade = "noshade" class = "clear" color = "#999999" / >

    < div align = "left" > & copy; 2012, your footer text goes here < / div >

    < / div >

    < script type = "text/javascript" >

    var MenuBar1 = new Spry.Widget.MenuBar ("MenuBar1", {imgDown: "SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});})

    < /script >

    < / body >

    < / html >

    I made a sample for you here: http://forwardfocus.in/sandbox/leftrightfloat/

Maybe you are looking for