Floating div tags - won't align

Hi there,
I am trying to align 2 div tags next to one another in the latest version of dreamweaver cc. At the moment I have one floating to the left 60% wide and on the the right 40% wide. The second div tag sits on the next line down to the right but I can't seem to get them the sit directly next to one another. Please help Thank you

Copy & paste this code into a new, blank document.  SaveAs test.html and preview in browsers.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>HTML5 Document</title>
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<style>
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
body {
    padding: 0;
    width: 90%; /**adjust width as required**/
    margin: 0 auto; /**this is centered**/
    background: #F5DD83;
    color: #2294AE;
    font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, sans-serif;
    font-size: 100%;
    box-shadow: 2px 2px 4px #333;
header {
    margin: 0;
    padding: 0 1%;
    width: 100%;
    background: #B00202;
    color: #FFF;
header h1, header h2 {
    display: inline;
    color: #F5DD83;
    padding: 0 3%;
section {
    margin: 0;
    padding: 0;
    background: #FFF;
    overflow: hidden; /**float containment**/
article {
    margin: 0;
    padding: 0 2%;
    float: left;
article.left { width: 60%; }
article.right {
    border-left: 1px solid #366;
    width: 40%;
footer {
    background: #B00202;
    clear: left;
    display: block;
    padding: 2%;
    color: #FFF;
</style>
</head>
<body>
<!--begin header-->
<header>
<h1>Sitename</h1>
<h2>Some pithy slogan...</h2>
<nav>Horizontal menu  goes here...</nav>
</header>
<!--begin main content-->
<section>
<article class="left"> <h3>Article Left 60% wide</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris vitae libero lacus, vel hendrerit nisi!
Maecenas quis velit nisl, volutpat viverra felis.  Vestibulum luctus mauris sed sem dapibus luctus. </p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris vitae libero lacus, vel hendrerit nisi!
Maecenas quis velit nisl, volutpat viverra felis. Vestibulum luctus mauris sed sem dapibus luctus. </p>
<!--end left article-->
</article>
<!--begin right article-->
<article class="right"> <h3>Article Right 40% wide</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris vitae libero lacus, vel hendrerit nisi!
Maecenas quis velit nisl, volutpat viverra felis.  Vestibulum luctus mauris sed sem dapibus luctus. </p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris vitae libero lacus, vel hendrerit nisi!
Maecenas quis velit nisl, volutpat viverra felis. Vestibulum luctus mauris sed sem dapibus luctus. </p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris vitae libero lacus, vel hendrerit nisi! Maecenas quis velit nisl, volutpat viverra felis. Vestibulum luctus mauris sed sem dapibus luctus. </p>
</article>
<!--begin footer-->
<footer> <small>© 2014 Your Site Name. All rights reserved</small> </footer>
</section>
</body>
</html>
Nancy O.

Similar Messages

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

    I have being trying to get 2 div tags to float next to eachother for hours! I've been messing with the float and messing with margins, but what ever i do the div is always somewhat under my other div tag. I want them completely side by side. I have tried changing the top and bottom margins but that doesn't work either. how can i get them side by side? One is called 'textbox' and the other 'imagewrapper'. The code is:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <link href="main.css" rel="stylesheet" type="text/css" />
    <link href="style2.css" rel="stylesheet" type="text/css" />
    <!--embedded styles for this page only-->
    <style type="text/css">
    body {
    margin:0;
    padding:0;
    font: 1em/1.5 "Lucida Sans", "Lucida Sans Unicode";
    #wrapper {
    width: 1064px;
    margin: 0 auto; /**with width, this centers page on screen**/
    background: #FFF;
    text-align:center;
    /**this styles image container**/
    #thumbs p {
              float:center;
              width: 50px;
              height: 75px;
              /**this styles caption text**/
    font: italic 14px/1.5 Geneva, Arial, Helvetica, sans-serif;
              color: #666;
              text-align:center;
              border: 1px solid silver;
              margin-top: 10px;
              margin-right: 5px;
              margin-bottom: 18px;
              margin-left: 5px;
    /**recommend using same size images**/
    #thumbs img {
              width:  50px; /**adjust width to photo**/
              height: 75px; /**adjust height to photo**/
              /**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;
              font-size:0;
              content: " ";
              clear: left;
    #wrapper #thumbs #imagewrapper {
              height: 362px;
              width: 280px;
              float: right;
              margin-right: 720px;
    #wrapper #thumbs #imagewrapper img {
              height: 362px;
              width: 280px;
    #wrapper #textbox {
              float: right;
              height: 300px;
              width: 600px;
              margin-right: 70px;
    .clearing {
    clear:left;
    height:px;
    width: 100%;
    </style>
    </head>
    <body>
    <div id="wrapper">
    <img src="product and website photos/header.png" width="1064" height="116" alt="header" />
    <!--begin menu -->
    <ul id="MenuBar1" class="MenuBarHorizontal">
    <li><a href="#home.html">Home</a></li>
    <li><a href="#" class="MenuBarItemSubmenu">Boutique</a><ul>
    <li><a href="#" class="MenuBarItemSubmenu">Women</a><ul>
    <li><a href="bwt.html">Tops</a></li>
    <li><a href="bws.html">Skirts/Shorts</a></li>
    <li><a href="bwl.html">Trousers/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">Men</a>
    <ul>
    <li><a href="#">Tops</a></li>
    <li><a href="#">Bottoms</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">Unique</a></li>
    </ul></li>
    <li><a href="clearance.html">Clearance</a></li>
    <li><a href="#">About</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="clearing" 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>

    If you want to position 2 divs - one on left and other on right, the float for your left div should say float: left; and for the one on the right the CSS should say float:right;
    In your code, I see you want imagewrapper to come on right and textbox to come on left. But your float for BOTH these say right. This is where the issue lies.
    You can combine float:left and float:right to achieve side by side divs provided the overall width (container width+padding+margin) of both divs is less than or equal to the width of the wrapper div.
    In the OP's example:
    #wrapper = 1064+0+0 = 1064px
    #textbox + #imagewrapper = 600+70+280+720 = 1670px = float drop

  • When floating DIV tags, I am unable to center the tags? help..

    I am relatively new to dreamweaver, and have only used CS4 prior to CS5.5.
    I am creating a website that has three columns, the header and the links bar to all other pages centers fine. But when i try and align the DIV tags it acts as if it is glued to the left or right hand side of the screen.
    I am just wondering if there is a way to align the most left of the tags to directly underneath the most left of the header and the same for the right hand side?
    If anybody could help it wouyld be much appreciated.
    Thanks.

    First, the way you have to handle multiple columns is to wrap them in a larger div.
    So you'll have a container with three divs, name them left, center, right.
    So here are your styles in CSS:
    #container {
              width: 780px;  /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */
              background: #FFFFFF;
              margin: 0 auto; /* 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. */
    .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;
    #left {
              float: left; /* since this element is floated, a width must be given */
              width: 180px; /* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */
              background: #EBEBEB; /* the background color will be displayed for the length of the content in the column, but no further */
              padding: 5px; /* padding keeps the content of the div away from the edges */
              margin-top:15px;
    #right {
              float: right; /* since this element is floated, a width must be given */
              width: 280px; /* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */
              background: #FFFFFF; /* the background color will be displayed for the length of the content in the column, but no further */
              padding: 5px 5px 5px 5px; /* padding keeps the content of the div away from the edges */
    #center {
              margin: 0 290px 0 190px; /* the right and left margins on this div element creates the two outer columns on the sides of the page. No matter how much content the sidebar divs contain, the column space will remain. You can remove this margin if you want the #mainContent div's text to fill the sidebar spaces when the content in each sidebar ends. */
              padding: 0 10px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
    Now, when you put together your HTML, you'll do this:
    <!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>
    <title>Page Title goes here</title>
    <link href="path/style.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="container">
      <div id="header">
        header goes here
        </div>
      <!-- end #header --></div>
    <div id="left">
    Left Content Here
    </div>
    <div id="right">
    Rightmost Content goes here. Please note the middle section comes after the right section.
    </div>
    <div id="center">
    This is the center stuff and you will note that it has margins that keep it to the center.
    </div>
    <!-- This clearing element should immediately follow the #center div in order to force the #container div to contain all child floats --><br class="clearfloat" />
    <div id="footer">
    Footer stuff goes here and is as wide as the main container
    </div>
    </div>
    </body>
    </html>

  • Alignment with div tags

    I am having trouble to get my 3rd <div> tag to properly align (id=flash). It is left aligning to the edge of the "#content" <div> tag. Basically left aligning to the edge of my centered layout. Below is my code, can anyone shed some insight on what I am missing? I am new to not using tables.
    thanks
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Page Title</title>
    <style type="text/css">
         body {
             font-family: Arial, Helvetica, sans-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 left aligning
                        </div>
                   </div>
              </div>
    </body>
    </html>

    You are using an absolute positioned div, which is positioned based on the page, not the div around it.
    My recommendation would be to use margins to center it within the other div.  Should look something like this:
    #flash {
         margin:0px auto;
    That will set a 0 pixel range above and below, and an automatic range to the left and right.
    Nick

  • Please help! IE6 won't display my div tags!

    My page looks fine in the other Mac browsers but the divs won't show up in Internet Explorer.  Please tell me what I am doing wrong and how to fix it so that my div tags display correctly.  Here is my source and CSS code:
    <!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" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Untitled Document</title>
    <!-- TemplateEndEditable -->
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    <style type="text/css">
    <!--
    body {
         background-color: #06F;
    -->
    </style>
    <link href="../navmenu.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="wrapper">
    <div id="logo"></div>
    <div id="nav"></div>
    <div id="buffer">this is a buffer</div>
    </div>
    </body>
    </html>
         margin: 0px;
         padding: 0px;
    #wrapper {
         width: 909px;
         background-color: #999;
         margin-right: auto;
         margin-left: auto;
         height: 54px;
         overflow: auto;
    #wrapper #logo {
         width: 208px;
         float: left;
         background-color: #33F;
         height: 39px;
    #wrapper #nav {
         background-color: #933;
         float: right;
         width: 701px;
         height: 39px;
    #wrapper #buffer {
         width: 909px;
         clear: both;
         background-color: #0F6;
         height: 15px;

    Because IE 6 is 5+ years old and hasn't been updated in a long while and the only reason it's still kicking in somewhat decent numbers is because some large companys utilized IE-only type features for internal applications and intranets and thus forced Microsoft to conitnue to support it beyond the original end-of-support date. :-)
    By the way, potentially you could just give IE 6 a really bare-bones layout - but you'll need to make sure that that's acceptable for the project. Also it's good for your sanity if you stop trying to make the site look exactly the same in every browser. It's much easier to make it look "good enough" and make sure that the content is accessible and the site usable.

  • 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

  • Div tags not aligning properly

    I can not get my div tags to align properly.  I have one div tag set to float left, and the other to float right.  I can get the first set to work, but as soon as I add in another set, they both float left.  I have played around with margins, borders, and padding and nothing seems to be working.  Here is the code:
    <style type="text/css">
    .pageborder {
    width: 795px;
    height: 1000px;
    border: medium solid #008478;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 10pt;
    .prodboxleft {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 10pt;
    background-color: #76c6be;
    text-align: left;
    width: 369px;
    float: left;
    height: 150px;
    border: medium dashed #008478;
    margin-top: 5px;
    margin-right: 5px;
    margin-bottom: 5px;
    margin-left: 12px;
    padding: 0px;
    .prodboxright {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 10pt;
    background-color: #76c6be;
    text-align: left;
    width: 369px;
    float: right;
    height: 150px;
    border: medium dashed #008478;
    margin-top: 5px;
    margin-right: 12px;
    margin-bottom: 5px;
    margin-left: 5px;
    padding: 0px;
    </style>
    </head>
    <body>
    <div class="pageborder"><div class="prodboxleft">Content for  class "prodboxleft" Goes Here</div>
    <div class="prodboxright">Content for  class "prodboxright" Goes Here</div>
    <div class="prodboxleft">Content for  class "prodboxleft" Goes Here</div>
    <div class="prodboxright">Content for  class "prodboxright" Goes Here</div>
    <div class="prodboxleft">Content for  class "prodboxleft" Goes Here</div>
    <div class="prodboxright">Content for  class "prodboxright" Goes Here</div>
    </div>

    Thank you, unfortunately that is not the issue.  The border is set in pixels and it is wide enough to accommodate the floated containers.  As I mentioned in my first post, the first set of containers work perfectly, then the second set does not, and yet a third set does.  It is almost as if there is something in the middle of the space that is not allowing the containers to behave properly.  I have attached a screen shot to show what I am talking about.

  • What's wrong with my div tag / site won't center....

    Hi,
    I am re-designing a website and I cannot get it to center.  I created a div tag and id it "wrapper" and created a css rule.  I am sure its a simple mistake, but I cannot figure it out.....
    Here is the CSS rules...
    @charset "UTF-8";
    /* CSS Document */
    div, h1, h2, h3, h4, h5, h6, p, pre, address, blockquote, span, ul, ol, li, dl, dd, dt, ing {
              margin: 0px;
              padding: 0px;
    #wrapper{
              margin: 0, auto;
              background-color: #9B9E6B;
    ul {
              list-style: none;
    table#content1{
              background-color: #00C;
              background-image: url(_images/content_bgrnd.png);
              background-repeat: no-repeat;
              font-family: "Arial Black", Gadget, sans-serif;
              font-size: 20px;
              text-align: center;
              padding: 8px;
    Here is the code for the site......
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Kiahuna 104</title>
    <script type="text/javascript">
    <!--
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    //-->
    </script>
    <link href="104.css" rel="stylesheet" type="text/css" />
    </head>
    <body onload="MM_preloadImages('_images/buttinside1.jpg','_images/buttproperty1.jpg','_images/b uttactivities1.jpg','_images/buttdining1.jpg','_images/buttcontacts1.jpg','_images/home_lg 1.png','_images/home_lg2.png','_images/home_lg3.png','_images/home_lg4.png','_images/home_ lg5.png','_images/home_lg6.png','_images/home_lg7.png','_images/home_lg8.png')">
    <div id="wrapper">
    <!--Header-->
    <table id="header">
      <div class="header"><img src="_images/newLOGO.jpg" alt="Kiahuna 104" width="1000"/>
    </div>
    <!--Navigation table-->
    <table width="1000" bgcolor="000">
      <tr>
        <td width="40"> </td>
        <td width="150"><a href="inside.htm"><img src="_images/butthome1.jpg" alt="home1" name="home1"  id="home1" /></a></td>
        <td width="150"><img src="_images/buttinside2.jpg" alt="inside2" name="inside2" id="inside2" onmouseover="MM_swapImage('inside2','','_images/buttinside1.jpg',1)" onmouseout="MM_swapImgRestore()" /></a></td>
        <td width="150"><a href="property.htm"><img src="_images/buttproperty2.jpg" alt="property2" name="property2" id="property2" onmouseover="MM_swapImage('property2','','_images/buttproperty1.jpg',1)" onmouseout="MM_swapImgRestore()" /></a></td>
        <td width="150"><a href="activities.htm"><img src="_images/buttactivities2.jpg" alt="activities2" name="act2" id="act2" onmouseover="MM_swapImage('act2','','_images/buttactivities1.jpg',1)" onmouseout="MM_swapImgRestore()" /></a></td>
        <td width="150"><a href="dining.htm"><img src="_images/buttdining2.jpg" alt="dining2" name="dining2" id="dining2" onmouseover="MM_swapImage('dining2','','_images/buttdining1.jpg',1)" onmouseout="MM_swapImgRestore()" /></a></td>
        <td width="150"><a href="contact.htm"><img src="_images/buttcontacts2.jpg" alt="contact2" name="contact2" id="contact2" onmouseover="MM_swapImage('contact2','','_images/buttcontacts1.jpg',1)" onmouseout="MM_swapImgRestore()" /></a></td>
      </tr>
    </table>
    <!--Start of content1 table- height = 371-->
    <table id="content1" table width="1000" height="371">
      <tr>
        <td width="34"> </td>
        <td width="897"><p>blah blah blah.</p>
          <p class="center2">NEW: IN-CONDO WASHER & DRYER - COMPLETELY NEW FURNITURE</p></td>
        <td width="53"> </td>
      </tr>
    </table>
    </body>
    </html>

    I tried to assign a width in both the page and CSS and it still doesn't center.  Here is a link to the site and the CSS....
    http://taffyproductions.com/test/
    @charset "UTF-8";
    /* CSS Document */
    div, h1, h2, h3, h4, h5, h6, p, pre, address, blockquote, span, ul, ol, li, dl, dd, dt, ing {
              margin: 0px;
              padding: 0px;
    #wrapper{
              margin: 0, auto;
              background-color: #000;
    ul {
              list-style: none;
    table#content1{
              background-color: #00C;
              background-image: url(_images/content_bgrnd.png);
              background-repeat: no-repeat;
    font-size: 16px;
              font-family: Papyrus, Arial, "Helvetica Bold", serif;
              font-size: 22px;
              text-align: center;
              padding: 8px;
    table#imagegallery{
              background-image: url(_images/imageGallery_bckgrnd.png);
              background-repeat: no-repeat;
    #imagegallery a img{
        padding: 0px;
        margin: 2px;
        border: 2px solid #000;
    #imagegallery a:hover img {
              border: 2px solid #C00;
    table#footer{
              background-image: url(_images/footer_bckgrnd.png);
              background-repeat: no-repeat;

  • Picture alignment in a div tag

    Hi everyone,
    I'm trying to put two pictures side by side in a div tag. I
    have one picture in the div tag already, but when I try to put a
    second one next it.... It goes under the first one. It acts like I
    hit enter...or carriage return when I didnt. How can I fix this so
    that I can put the second picture next to the first one?
    thank
    J>M

    make a class in css with float left and apply it to the first
    picture.
    .images {
    float:left;
    }

  • Floated DIV alignment woes

    I have created 9 left-floated DIV 3 a row with the last div of the first row taller than the first two, how can i make the first two div of the second row occupy the space on top of them instead of aligning to the bottom of the 3rd div in the first row.

    It's difficult to envision your layout, considering a float left on 9 divs should have the effect of aligning them next to one another, from left to right, like so: http://www.webmagi.com/Tests/Floating-Divs.htm
    Dreamweaver leaves much to be desired with regards to visually working with CSS based layouts. You might look into Stylizer 5 for this: http://www.stylizerapp.com/ (Great video intros)

  • 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;

  • {module_cataloguelistdump} won't fit inside sidebar div tag

    How to make {module_cataloguelistdump}
    fit inside sidebar div tag
    Module does not move to left margin inside the div tag.
    see html below - see screen shot below.
    <!— SIDE BAR -->                           
        <div class="col-xs-12 col-sm-4 col-lg-3 pull-left sidebar">       
    <!-- CATEGORIES LIST -->
        <div class="section  module-list-items">
        <h4 class="section-title">Categories</h4>
    {module_cataloguelistdump,-1,1,_self,Weight}
    </div>
    <!-- /CATEGORIES LIST -->
    </div>

    Hey there,
    View the CSS on it and view the html on it. It is pretty straight forward if you inspect markup and then change the CSS to suit.
    With those catalog names though your space does not look big enough for them so most of them will instantly be on two lines no matter what you do. So consider that as well.

  • Newbie Div tag frustration

    hi,
    I'm working on a music website (
    http://moronica.net) and first
    created a flash header and animated menu which I then imported into
    a draw AP div tag situated on the top of the page in dw (aligns
    perfectly with all the graphics below - A COMPLETE MIRACLE).
    I can center all the html images below so when you widen the
    browser window the page continues to center but I can't seem to
    figure out how to make the div that the flash menu is sitting in do
    the same thing.
    Currently my solution is just to keep everything flush left
    but that's sorta lame...
    any assistance would be most appreciated. I'm pretty decent
    with flash but DW...ouch.
    thanks!

    > isn't the flash plugin installed on 97% of all
    computers?
    If you believe the Adobe hype it would be, but there are many
    companies and
    private individuals who do not have it, and either will not
    have it or can
    not have it. What is that number? It's more than zero.
    > I don't mind about those users as well as those with
    disabilities
    Really? So you will turn those people away? How about search
    engine
    spiders?
    It's simple to center anything. Put it in a fixed width
    container with
    margin:0 auto. In other words
    <div style="width 800px; margin:0 auto;">
    <p>this content will be exactly centered in its
    container</p>
    </div>
    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
    ==================
    "superbooty" <[email protected]> wrote in
    message
    news:gm24nt$bi4$[email protected]..
    > thanks murray for your advice -
    >
    > isn't the flash plugin installed on 97% of all
    computers? since this
    > is a
    > music site, nothing corporate, I don't mind about those
    users as well as
    > those
    > with disabilities. and there are only going to be about
    10 links total on
    > my
    > site so I mind if I have to manually fix a broken
    link...
    >
    > I just want to center the page and i can do that now but
    the flash menu
    > won't.
    > I know it's because i'm using an AP div tag which allows
    me to float the
    > area
    > over the page and position the flash file perfectly over
    the graphics
    > below but
    > when I use an insert DV tag it only allows me to place
    the area above or
    > below
    > the graphics on the page so it moves everything down or
    up.
    >
    > I'll probably just hire someone but thanks anyway for
    your comments - duly
    > noted.
    >

  • Why aren't my CSS and div tag boxes displaying the background images I'm plugging in?

    I'm using the CSS dialog boxes to places images via the background image option into my dreamweaver site. Everything looks fine in dreamweaver but when I view it any of the browsers, two of the images I've place as div tag background images don't work....the overal background image of the site works, but these don't show up ....
    here's my code if it helps to answer
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Main</title>
    <style type="text/css">
    body {
    background-image: url(images/realgrade.jpg);
    background-repeat: repeat-x;
    text-align: center;
    html, body {
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    margin-top: 0px;
    padding-top: 25px;
    #wrapper {
    width: 930px;
    text-align: left;
    margin-top: 0px;
    margin-right: auto;
    margin-bottom: 0px;
    margin-left: auto;
    position: relative;
    background-image: url(file:///Macintosh%20HD/Users/jimmymoreira/Unnamed%20Site%204/images/possible%20image. jpg);
    background-repeat: no-repeat;
    #header {
    height: 192px;
    width: 237px;
    background-image: url(images/logo_fill.jpg);
    background-repeat: no-repeat;
    position: absolute;
    left: 35px;
    top: -25px;
    #mainNav {
    background-color: #33F;
    height: 200px;
    width: 272px;
    float: left;
    margin-top: 233px;
    #maincontent {
    height: 600px;
    width: 608px;
    float: right;
    margin-bottom: 45px;
    padding-right: 25px;
    background-repeat: no-repeat;
    background-position: center 270px;
    background-image: url(file:///Macintosh%20HD/Users/jimmymoreira/Unnamed%20Site%204/images/opaqueMaincontent .png);
    #sidebar {
    background-color: #F36;
    height: 250px;
    width: 272px;
    clear: left;
    float: left;
    #footer {
    height: 525px;
    width: 870px;
    clear: both;
    padding-top: 45px;
    padding-right: 30px;
    padding-bottom: 30px;
    padding-left: 30px;
    background-image: url(images/footer_image.jpg);
    background-repeat: no-repeat;
    margin-top: 45px;
    </style>
    </head>
    <body>
    <div id="wrapper">
      <div id="header">
        <p> </p>
        <p> </p>
        <p> </p>
      </div>
      <div id="mainNav">
    <p> </p>
    </div>
      <div id="maincontent"></div>
      <div id="sidebar"></div>
      <div id="footer"></div>
    </div>
    </body>
    </html>
    here's what I'm going for
    here's what I'm getting in the browser
    Please help!

    Your image files are pointing to your hard drive, not your server.  You have this
    background-image: url(file:///Macintosh%20HD/Users/jimmymoreira/Unnamed%20Site%204/imag es/opaqueMaincontent.png);
    and you should have this
    background-image: url(imag es/opaqueMaincontent.png);
    Also, is your images file named imag es?
    Gary

  • Ap Div Tag Problem

    OK so this is my first wbesite in dreamweaver so and i ran into a problem....i made a AP div tag but i can get it where i want it.....my backrground is center in the website and i put my nav links in a AP div tag so i could then put them in a certain area where i wanted.(i think is the only way i know hjow to do this)  Well how can i get them centered left and right in the website but the top and bottom i want to place by hand???? they are where they need to be when i preview it in the browser but in the dreamweaver file they are down and to the right......i had to keep messing with it and previewin it until it showed up where i wanted it to in the browser. Im sure i have a setting worng either in my CSS or html.... Please help!

    First rule of web design is to stop thinking like a graphic or print designer.  Web pages need to be flexible to perform well on different devices, browsers, user settings, screen and text sizes.  And web designers have almost no control over these user-centric variables.
    The second rule of web design, you cannot precisely position text or other elements on top of big background image and expect it to stick.  It just doesn't work.
    http://alt-web.com/Backgrounds.shtml
    If your navigation bar requires a background, it should be separate from the page background. You'll need to use solid colors or create image slices for your nav bar in your graphics editor.
    Third rule, use default CSS positioning (which is no positioning at all).  Align objects with CSS margins, padding and floats.
    Basic CSS Layout.  (No APDivs used, no animals were harmed)
    http://alt-web.com/TEMPLATES/Basic-1-col-fixed.html
    Also read this tutorial:
    Taking  a Fireworks (or Photoshop) comp to a CSS based layout in DW
    http://www.adobe.com/devnet/fireworks/articles/web_standards_layouts_pt1.html
    Good luck with your project!
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

Maybe you are looking for

  • IPhoto opens even when the iPod Touch is not connected

    I came across discussions on the iPod Touch and issues with iPhoto and am hoping that a solution can be found for my problem. My 13 year old step-son visited over the Christmas/New Year and was plugging his iPod Touch into and out of our Mac laptop.

  • Day by Months report

    Hello Gurus. I want to develop a query in Bex Query Designer and I`m not having success. What I want to do is develop a query where in the lines I have the 0PLANT and 0CALDAY objects, and in the columns I want 0CALMONTH and one key figure for Quantit

  • Using different OS (Unix) in same SAP Landscape

    Hi, Bcause of some business reason, we need to use AIX for Developement system and Sun Solaris for QA and Prod environment. I know technically it is possible, except some problems related to SAP kernel and SAP notes for OS level fix. Does anybody has

  • How to rollback from patch upgrade?

    If I installed a new patch for DS or DPS, how can I rollback? Is there any tool to auto this job? Thanks!

  • HD export question

    I am using FCE 4. I have brought in footage that in the item properties shows: 960 x 720 DVCPRO 720p60 I assembled it how I wanted and did a "export to quicktime" and it came out as a SD footage. I'm used to regular FCP where it will export it at the