Centre not working in Dreamweaver Design View (CSS+HTML)- Preview OK- help!

Hi there
I am having a slight problem with DW which I have had before, and fixed, but I cant for the life of me remember how I fixed it.  So any help is much appreciated.
I am producing a proof site for a client and cannot load it to be live just yet so sorry for any inconvience but I have taken some screen shots and will paste code/html.
The site is currently sitting like this  in the design view of DW
[IMG]http://i1200.photobucket.com/albums/bb323/SKH_Design/Picture1-1.jpg[/IMG]
Which it usually doesnt.... its usually centred within the design view!!
this is how it sits in the preview
[IMG]http://i1200.photobucket.com/albums/bb323/SKH_Design/Picture2.png[/IMG]
My main page container is margin left auto and so is the margin right.
(please excuse my experiment with the drop shadow behind the main container)
please excuse me if anything is messy, im pretty new to this!!
Thanks, Sarah
Code -
<style type="text/css">
    <!--
    @import url("styles/base.css");
body {
    background-image: url(images/backgroundred.jpg);
    background-repeat: no-repeat;
    -->
</style>
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
<script type="text/javascript">
<!--
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_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_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>
</head>
<body leftmargin="float">
<div class="shadow">
<div class="pagecontainer">   
            <!-- navigationbarstart -->
            <div class="topbarcontainer"><img src="images/pb-topbanner.jpg" width="800" height="126"></div>
                    <div class="navigationbar"> <img src="images/pb-linkbar1.jpg" width="353" height="34"><img src="images/pb-linkbar2home.jpg" width="87" height="34"><img src="images/pb-linkbar3products.jpg" width="198" height="34"><img src="images/pb-linkbar4offers.jpg" width="161"                                                                                                                                                                                                 height="34"></div>
                            <!--navigationbarend-->
                            <!--flashanimation-->
                            <div class="flashcontainer">
                            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="800" height="257" id="FlashID" title="paulburtonflash">
                                <param name="movie" value="flashfiles/paulburtonflash.swf" />
                                <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" />
                                <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
                                <!--[if !IE]>-->
                                <object type="application/x-shockwave-flash" data="flashfiles/paulburtonflash.swf" width="800" height="257">
                              <!--<![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>
                            </div>
                            <!--flashanimationend-->
                   <!--mainbackground-->
                   <div class="mainbackground">
                   <!--maintext-->
                    <div class="homepagetext">
                    Established in 1980, we are a drinks wholesale business, based in the Scottish Borders which prides itself on being able to provide alcoholic and soft drinks in whatever quantity you require at outstanding prices and on time.<br><br>
We deliver 7 days a week and offer a free, prompt delivery service, by our own staff in the Borders, East Lothian and Midlothian.<br><br>
<div class="textspacer1"></div>
<div class="textsixe16">We have regular promotions - click here to view our latest special offers</div>
                    </div>
                    <!--endofmaintext-->
                    <div class="homepageimage">
                    <img src="images/pb-home-mainimage.jpg" width="328" height="219"></div>
                    </div><!--endofmainbackground-->
      <div class="bottombar">
              <div class="bottombartext">
                Paul Burton Drinks Wholesale, Pinnaclehill Industrial Estate, Kelso, Scottish Borders, TD5 8DW
            </div>
      </div>
</div>       
</div>
</body>
</html>
CSS -
@charset "UTF-8";
/* CSS Document */
.shadow{
width:840px;
margin-left:auto;
margin-right:auto;
background-image:url(../images/editableshadow.png);
background-repeat:repeat-y;
.pagecontainer{
    width:800px;
    height:auto;
    margin-right:auto;
    margin-left:auto;
.topbarcontainer{
    width:800px;
    height:126px;
.navigationbar{
    width:800px;
    height:34px;
    float:left;
.flashcontainer{
    width:800px;
    height:257px;
    float:left;
.mainbackground{
    width:800px;
    height:349px;
    float:left;
    background-image:url(../../CL%20-%20New%20Ideas/Images/pb-home-background.jpg);
    background-repeat:no-repeat;
.homepagetext{
    width:372px;
    height:275px;
    float:left;
    margin:50px 0px 0px 50px;
    font-family:Arial, Helvetica, sans-serif;
    font-size:14px;
    color:#FFF;
.textsixe16{
    font-size:16px;
    font-weight:bold;
.textspacer1{
    height:15px;
    width:5px;
    color:#d6f3fc;
.homepageimage{
    width:328px;
    height:219px;
    float:left;
    padding:50px 0px 0px 20px;
.bottombar{
    width:800px;
    height:59px;
    float:left;
    background-image:url(../../CL%20-%20New%20Ideas/Images/pb-home-bottombar.jpg);
    background-repeat:no-repeat;
.bottombartext{
    width:600px;
    height:17px;
    float:left;
    font-size:12px;
    font-family:Arial, Helvetica, sans-serif;
    color:#000;
    padding:25px 0px 0px 50px;

"<body leftmargin="float">"
Can you say what that's doing? "float" is not a legal value for the leftmargin style, which requires an integer value.  But its use is deprecated in favor of CSS anyhow.
Your pasted code is lacking a doctype or anything that would normally be above that stylesheet link.  Is that just an oversight or is it really not there?

Similar Messages

  • CSS header images not visible except in design view

    I have a recurring problem in my css designs, and it's driving me to drink. In my stylesheets I define background and header images that work beautifully in design view, but when you view it any browser the header image is gone. This is not the first time I have struggled with this and I am over it. On the example I have posted there is an image underneath (not below, actually underneath) the company name and slogan at the top of the page, but you sure can't see it can you? As a matter of fact the second line of text completely disappears because the header image is not displayed. If someone can show me where I am going wrong with this I would appreciate it. The link to the site is here:
    http://firstvirginiaservices.com/test/index.html

    This is a path issue.
    You're testing your new website in a subfolder called test. The server does not know that.
    Your header rule points to the image with a site root reference i.e. starting from the root folder
    #header {
    margin:0;
    font-family: Verdana, Geneva, sans-serif;
    background-image: url(/images/header.jpg) ;
    background-repeat:no-repeat;;
    text-align: right;
    That'll probably be OK when the site goes live but not while it lives in the "test" subfolder.
    The server is looking for
    http://firstvirginiaservices.com/images/header.jpg
    but the images folder does not exist at the root folder level yet so the file is not found and the image does not display.
    You really mean
    http://firstvirginiaservices.com/test/images/header.jpg
    The solution is to
    EITHER
    keep the root relative path and change the path temporarily in the CSS while you're working in the test folder
    #header {
    margin:0;
    font-family: Verdana, Geneva, sans-serif;
    background-image: url(/test/images/header.jpg) ;
    background-repeat:no-repeat;;
    text-align: right;
    then tweak the path (remove "/test") when the site goes live.
    OR
    use a document relative path in the #header rule (from the CSS folder location to the images folder location)
    #header {
    margin:0;
    font-family: Verdana, Geneva, sans-serif;
    background-image: url(../images/header.jpg) ;
    background-repeat:no-repeat;;
    text-align: right;

  • Page Content Won't Display in Contribute (Edit Mode) or Dreamweaver (Design View)

    I have pages on my site that have  decided they don't want to display content either in Contribute (in edit
    mode) or in DreamWeaver (in design view). They always look fine in Live view, prior to hitting the 'edit' button or when viewing in a browser. Using CS4 on Windows XP. I use Contribute for small edits and this renders that tool useless as there is no WYSIWYG. It's a pain in Dreamweaver to have to keep previewing in browser when I'm used to working in code/design view. Any help most appreciated. Here's the page I'm currently having the problem with:
    http://www.pacaero.com/products/interconnect-medical.htm

    That's odd because here's what I see ...

  • Why some times jdeveloper does not show a coreect design view ?

    Hi
    thank you for reading my post
    why jdeveloper does not show a correct design view of jsf pages sometimes?
    It does not shows labels and ... , just show tag names like : form , ... ?
    here is a picture for this :
    1-incorrect page:
    http://www.flickr.com/photos/59086726@N00/217556594/
    2-correct page :
    http://www.flickr.com/photos/59086726@N00/217556595/
    I just closed and open the IDE and page designer shows incorrect pages
    thanks

    Also try this...go to the project properties for the View project. Look at the JSF Libraries and remove the two JSF libraries and then re-add them....this sometimes helps.
    Regards
    Grant Ronald

  • Continuous scrolling not working in Calendar month view

    Scrolling does not work in Calendar month view. I have toggled System Preferences >General > Show scroll bars to "Always on." Still nothing in Calendar month view.
    BUT, wait! Now every other app (except Calendar month view) now has the scroll bar "Always on" even though I toggled back to "Automatically based on...", then restarted my computer. I don't want to see the scroll bars all the time but now I can't hide them anywhere. It seems "Always on" amd "Automatically based on..." now do the same thing. Serious bug.
    Any hints? Thanks

    This is odd,  but the calendar scrolling in Month view is working on my machine.   It's been through various reboots - and I checked the disc (SSD) and permissions.
    Seems to me that the calendar application is sensitive to the scrolling. 
    Also,  I've been suffering from Firefox vertical scrolling stopping.  The "fix" is to quit & restart Firefox.  However... this scroll-crashing behaviour goes away for a few days then comes back with a vengence.  Again,  I've a feeling that a full reboot seems to help things.
    Yet another mouse-related problem I've been having is with VMWare.  These frequently interpret a single-click as a double-cliick or even triple-click.  Some chatter in the VMWare forums about this too.
    All of this behaviour *never* ocurred prior to the Mavericks upgrade.

  • CMD+ shortcuts not working in Dreamweaver CS3

    I'm have a very strange issue with CMD+ keyboard shortcuts
    not working in Dreamweaver CS3 on OSX 10.5. These actions are
    working from the menus (i.e., copy, cut, paste, etc.). CMD+
    shortcuts work in other CS3 apps. I've searched this forum and
    googled up and down and found some references to issues like this
    with Dreamweaver 8, but nothing for CS3.
    Has anyone experienced this problem? I'm completely stumped.
    Lawrence

    My concern wasn't with the navbar, but thanks for the headsup.
    The problem is that the link in the upper left hand corner, Suzie's Story, is a rollover image but it does not reveal the other image when the cursor goes over it.
                            <div id="topTabs1">
       <div align="center"><a href="http://www.google.com" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('suzie','','Images/Suzie's Story Tab_light.jpg',1)"><img src="Images/Suzie's Story Tab_black.jpg" alt="suzie" name="suzie" width="75" height="45" border="0" id="suzie" /></a></div>
             </div>
    #topTabs1 {
    width: 75px;
    height: 45px;
    float: left;
    background-color: #ffffff;
    padding-left: 0px;
    padding-right: 0px

  • Command S not working in Dreamweaver CS6

    Command S not working in Dreamweaver CS6

    Every time I've run into an issue like this, clearing the cache file has repaired it...
    http://forums.adobe.com/thread/494811
    As long as it's not a system wide issue that is.

  • I would like an immediate reaccredit of my account after buying an app that do not work iWeb Theme Designs, v1.0, Éditeur : Vitalijus Vysniauskas (4 )

    I would like an immediate reaccredit of my account after buying an app that do not work,  iWeb Theme Designs, v1.0, Éditeur : Vitalijus Vysniauskas (4 ).. this app is not compatible with iweb french

    You will not receive direct help with this problem by posting here. Everyone here is just a fellow user, so all you'll get here is advice on how to proceed.
    You can contact Mac App Store Customer Service and ask for a refund, but there is no guarantee you'll get one. Before you ask for a refund, I'd suggest contacting the developer and asking for assistance:
    http://www.iwebthemespark.com/Support.html
    If they tell you there's no solution, that will give you a better case to present to the App Store for justifying a refund.
    Regards.

  • I absolutely CANNOT figure out how to add playlists to my ipod. i have followed directions - NOT WORKING.. frustrated!!!!!!  HELP.

    please help!  i am a fitness instructor that DEPENDS ON MY PLAYLISTS, and ever since i upgraded to itunes 11 last week, i CANNOT figure out how to add playlists to my ipod!  the tutorials were not helpful, as i followed instructions, and it DID NOT WORK.  i am VERY frustrated.  can someone help?
    thanks!

    revert the look and feel to itunes 10
    View > Show Sidebar
    View > Show Status bar.
    Now everything will work before.
    Click on your iPod in the lefthand window. Then use the music sync page to select your playlists. Or drag the playlists to your device

  • Form is not working of multiple form check boxs, source posted. HELP.

    Form is not working of multiple form check boxs, source posted. HELP.
    I'm trying to have golive form be able to check one, two or all of the options in Graphics field.
    As is it will only post results from the last checked box.
    Here's the page
    http://www.perfection-press.com/Pages/ContactForm.html
    Here's where source in golive has scanning,design,filesupplied.
    [code removed to fix forum topic display]

    Since the checkboxes all have the same name, the values are over-writing each other when being passed to the PHP script. The best way to fix that is to add a pair of empty square [] brackets after the checkbox names, so make the names "graphics[]" instead of "graphics". That tells PHP that the values are being passed as a list (an array) instead of a single value. As long as your processing script knows what to do from there (and it does), should solve the problem.
    By the way, I noticed that two of the checkboxes were named "graphics" and the other was "graphic" (singular). You'll want to fix that too so they're all the same.

  • New Itunes is not working because my imac is 10.6.8 need help ?

    New Itunes is not working because my imac is 10.6.8 need help ....

    Because you require Lion to run it. You should not have installed it.
    Upgrading to Lion
    If your computer does not meet the requirements to install Mavericks, it may still meet the requirements to install Lion.
    You can purchase Lion at the Online Apple Store. The cost is $19.99 (as it was before) plus tax.  It's a download. You will get an email containing a redemption code that you then use at the Mac App Store to download Lion. Save a copy of that installer to your Downloads folder because the installer deletes itself at the end of the installation.
         Lion System Requirements
           1. Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7,
               or Xeon processor
           2. 2GB of memory
           3. OS X v10.6.6 or later (v10.6.8 recommended)
           4. 7GB of available space
           5. Some features require an Apple ID; terms apply.
    Upgrading to Mountain Lion
    To upgrade to Mountain Lion you must have Snow Leopard 10.6.8 or Lion installed. Purchase a redemption code at the Online Apple Store: OS X Mountain Lion. Mountain Lion is $19.99 plus tax. Use the code to redeem a download of Mountain Lion from the App Store. The file is quite large, over 4 GBs, so allow some time to download. It would be preferable to use Ethernet because it is nearly four times faster than wireless.
         OS X Mountain Lion - System Requirements
           Macs that can be upgraded to OS X Mountain Lion
             1. iMac (Mid 2007 or newer) - Model Identifier 7,1 or later.
             2. MacBook (Late 2008 Aluminum, or Early 2009 or newer) - Model
                 Identifier 5,1 or later.
             3. MacBook Pro (Mid/Late 2007 or newer) - Model Identifier 3,1 or later.
             4. MacBook Air (Late 2008 or newer) - Model Identifier 2,1 or later.
             5. Mac mini (Early 2009 or newer) - Model Identifier 3,1 or later.
             6. Mac Pro (Early 2008 or newer) - Model Identifier 3,1 or later.
             7. Xserve (Early 2009) - Model Identifier 3,1 or later.
    To find the model identifier open System Profiler in the Utilities folder. It's displayed in the panel on the right.
         Are my applications compatible?
             See App Compatibility Table - RoaringApps.
    Upgrading to Yosemite
    You can upgrade to Yosemite from Lion or directly from Snow Leopard. Yosemite can be downloaded from the Mac App Store for FREE.
    Upgrading to Yosemite
    To upgrade to Yosemite you must have Snow Leopard 10.6.8 or Lion installed. Download Yosemite from the App Store. Sign in using your Apple ID. Yosemite is free. The file is quite large, over 5 GBs, so allow some time to download. It would be preferable to use Ethernet because it is nearly four times faster than wireless.
        OS X Mavericks/Yosemite- System Requirements
          Macs that can be upgraded to OS X Yosemite
             1. iMac (Mid 2007 or newer) - Model Identifier 7,1 or later
             2. MacBook (Late 2008 Aluminum, or Early 2009 or newer) - Model Identifier 5,1 or later
             3. MacBook Pro (Mid/Late 2007 or newer) - Model Identifier 3,1 or later
             4. MacBook Air (Late 2008 or newer) - Model Identifier 2,1 or later
             5. Mac mini (Early 2009 or newer) - Model Identifier 3,1 or later
             6. Mac Pro (Early 2008 or newer) - Model Identifier 3,1 or later
             7. Xserve (Early 2009) - Model Identifier 3,1 or later
    To find the model identifier open System Profiler in the Utilities folder. It's displayed in the panel on the right.
         Are my applications compatible?
             See App Compatibility Table - RoaringApps.

  • My computer iTools not working.how to this fix ?!!.plz help me

    My computer iTools not working.how to this fix ?!!.plz help me

    Hi We don't have a crytral ball more infomation about your problem if you need help . Cheers Brian

  • Hi, The Airport Express does not work with iOS 7.0.4, I appreciate your help to resolve this event. Thank you,

    Hi, The Airport Express does not work with iOS 7.0.4, I appreciate your help to resolve this event. Thank you,

    Please locate the model number of the AirPort Express and post back that information.
    The model number is located on the side of the AirPort Express. It begins with an "A" followed by four numbers.
    We are not sure what you mean by "does not work".  Does this mean that the AirPort Express worked at one time and has just recently stopped working?
    Have you installed a newer operating system on your iOS device recently?
    Or, is this a new AirPort Express that you are trying to configure for the first time?
    If yes, what service will the AirPort Express perform on your network?
    Please remember that we cannot see your network, so we only know as much about your problem as you can tell us.

  • Keep receiving "USB Over Current Notices" since updating to OSX 10.6.8. I have no devices plugged into my Imac and running everything wireless. SMB/PRAM resetting did not work. Does anyone have some advice or can help?

    Keep receiving "USB Over Current Notices" since updating to OSX 10.6.8. I have no devices plugged into my Imac and running everything wireless. SMC/PRAM resetting did not work. Does anyone have some advice or can help?

    Hi Melissa,
    Pretty strange, but...
    Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, does it happen in Safe Mode? Reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)

  • I have some problem .i update my iphone3gs software .software downloaded now its not working .warning select network connect to itunes ..please help me

    I have some problem .i update my iphone3gs software .software downloaded now its not working .warning select network connect to itunes ..please help me

    please help me ?

Maybe you are looking for

  • Itunes wont stop backing up, need to update, where's my music?

    This is the first time i have used itunes on the computer.  The only reason i did is because my Iphone 4 needs the last 2 updates.  Some of my apps stopped working because of it.  So i downloaded Itunes & loaded my music on to the computer, which for

  • Web Dynpro ABAP with workflow in EP

    Hi friends.. I wants my web dynpro application in EP workflow (its a form which needs to be field by multiple users).. can u suggest how to do this , i am new to EP as well webdynpro ABAP.. please suggest how to proceed.. regards siddharth

  • How do i disable the startup splash screen in elements 9

    How do i disable the startup splash screen in elements 9

  • Security-violation error in 3750

    We Have a strange behavior with the computer of a user who connects with his laptop to the network through port replicator or docking station,Where we have a acs.When he goes to another place of the company in another City, Where we have other acs, h

  • My ipod Touch 5th is locked how can I back up to my computer and then restore?

    Well I changed my passcode and totally forgot it, I just got it for Christmas so I purchased some stuff and also have pictures I would hate to loose!! Please hlep me I dont know how to back up to itunes because the left bar that says back up does not