Why, oh why, all this Center so well in IE, but not Safari or Firefox?

Hello, I'm pulling out my hair, please help before go me bald. I have a striped background and a div centered at the top containing a white box (#DropShadow). Everything worked well in IE, Safari and FF. Now, I've added my menu which is a div with a table and images inside, it stops being centered in Safari and FF, but works perfectly in IE! Can anyone help? Pasting all the code below as have no idea what is the cause! Thank you.

< ! 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 > sorbet Studios < /title >

< style type = "text/css" >

{body

background-image: url (.. / images/Background.gif);

background-repeat: repeat;

position: absolute;

z-index: 2;

left: 30px;

top: 10px;

}

{#DropShadow}

background-image: url (.. / images/WhiteBackground.png);

background-repeat: no-repeat;

background-position: center bottom;

margin: auto;

height: 630px;

width: 800px;

position: relative;

top: 0px;

z-index: 1;

}

{#Menu}

position: relative;

height: 490px;

width: 270px;

left: 35px;.

top: 28px;

background-color: #FC0;

margin-top: 0px;

margin-right: 0px;

margin-bottom: 0px;

margin-left: 0px;

}

< / style >

< 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 is d.MM_p.length, a = MM_preloadImages.arguments; for (i = 0; i <.) 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 = offline. MM_sr; for (i = 0; a & & I <.) 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]) & & copyrights) 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 >

< onload of the body = MM_preloadImages('..) ' Accueil/boutons/on.gif ','... '. Galerie/boutons/on.gif ','... buttons / / all on.gif ','... / buttons/touch on.gif') ">"

< div id = "Shadow" >

< div id = 'Menu' >

< table width = "270" border = "0" cellpadding = "0" cellspacing = "0" >

< b >

"< td width ="160"height ="287"> < img src ="... Accueil/boutons/off.gif' alt = 'Home' name = "HomeOff" width = "160" height = '286' id = 'HomeOff' onmouseover = "MM_swapImage ('HomeOff ',", '..) " ' Accueil/boutons/on.gif',1)"MM_swapImgRestore" / > < table >

"< td width ="110"rowspan ="2"> < img src ="... Galerie/boutons/off.gif' alt = name of the 'Gallery' = "GalleryOff" width = "110" height = "432" align = "absmiddle' id = 'GalleryOff' onmouseover ="MM_swapImage ('GalleryOff ',", '...)" ' Galerie/boutons/on.gif',1)"MM_swapImgRestore" / > < table >

< /tr >

< b >

"" < height td = "146" > < img src = "... / buttons / on off.gif ' alt = 'About' name ="AboutOff"width ="160"height ="146"align ="absmiddle' id = 'AboutOff' onmouseover = "MM_swapImage ('AboutOff ',", '... / buttons / on on.gif', 1) ' MM_swapImgRestore"/ > < table >"

< /tr >

< b >

"" < td height = "58" colspan = "2" > < img src = "... / buttons/touch off.gif ' alt = 'Contact' name ="ContactOff"width ="270"height ="58"align ="absmiddle' id = 'ContactOff' onmouseover = "MM_swapImage ('ContactOff ',", '..) " (/ boutons/Contact on.gif',1)' MM_swapImgRestore "/ > < table >

< /tr >

< /table >

< / div >

< / div >

< / body >

< / html >

Screen shot 2011-06-05 at 13.39.53.png

To add a little more to what Snakeyze said, you need not positioning at all.  Positioning CSS that is not specified or static default is all what it takes to 98% page layouts.

To Center your page, you need 3 things:

(1) a statement of type of valid document on the first line of your markup - DW performs this task for you when you create a new page,

(2) with a width of container in pixels, ems or %.

(3) a margin-left and margin to the right of "auto" (the default value of the browser).

{body

Width: 1000px; / * adjust to the REQ'd * /.

margin: 0 auto; / * with width, this Centers page * /.

Background: url (.. / images/Background.gif);

}

{#DropShadow}

Background: url (.. / images/WhiteBackground.png) Center low no-repeat;

min-height: 630px; / * height limit the height of the container, if necessary using min-height * /.

Width: 800px;

}

{#Menu}

margin: 0;

padding: 0;

Width: 270px;

background-color: #FC0;

}

Nancy O.
ALT-Web Design & Publishing
Web | Graphics | Print | Media specialists
http://ALT-Web.com/
http://Twitter.com/ALTWEB

Tags: Dreamweaver

Similar Questions

  • Why does my site display properly in Firefox but not Safari/Chrome?

    I have looked through all my code and do not understand why my previews site perfectly well in Firefox, but in Safari or Google Chrome all elements of the site work but the images that make up the background appear empty or with a blue question marks in a box on them.  I made the site by slicing layers in Photoshop then saved the HTML as a template and added the relevant divs.

    It displays a good overview on Dreamweaver as well but it is precisely these browsers on that it does not work.  It is used to preview very well on these browsers while I was doing it until I added the flash element to it, so I don't know if this has something to do with it, although all Flash elements appear and function ok.

    methumeddwl wrote:

    Thanks SnakEyes, I managed to get rid of the Alt error now.  My structure automatically becomes a tabular presentation due to the importation of the slices directly from Photoshop in a fixed layout?  All of a sudden I have all these new upcoming errors for no leftmargin, topmargin, marginWidth don't and marginheight as well as the height, so it would be ok if I just deleted all references to the latter in the code?

    Nancy Merci for these links to page layouts ready to use, they will definitely come in handy for my next site.  As I want my site to be a fixed 1024 x 700 does what a function table plan?  I want it be fixed instead of liquid that I want all the Flash animations to show in specific locations on the site.

    This is why you should not export the HTML from Photoshop.  To answer your question that exports only Photoshop like HTML 4.01, which is why he has these attributes.  In addition, everything is an image in a table cell, which leads to many problems.  Learn how to cut out pictures and use everything that CSS can offer will make better code.

  • I sent 2 SMS to the iPhone even from the same location 1 hour out. Why I was charged for the second message, but not the first?

    I sent 2 SMS on the phone even in the same place 1 hour apart. I was charged for the second message, but not the first. Why charge me? I was under the impression that the messages sent between iPhones are free?

    I was under the impression that the messages sent between iPhones are free?

    It's a little more complicated than that.

    If the message is sent as an iMessage (blue) uses the data that could be part of your cellular data allowance or WiFi depending on what you are connected to. If it is sent as SMS (green) it takes however your carrier charges you for SMS.

    For a message to be sent in an iMessage, both parties need to have a device capable of iMessage (e.g., iPhone, iPad, Mac), iMessages allowed to have (settings > Messages > iMessage > on) and be connected to the data (Wifi or cellular).

  • Why the HDR toning work with some pictures, but not for others?  I have CS6.

    I have Photoshop CS6 and when I go to HDR toning, it is only highlighted for work with some photos, but not others, why?  Thank you.

    HDR toning does not work with CMYK images. Change the RGB color mode, and then you will be able to use HDR toning. It also works with the color to grayscale mode.

  • Why doesn't Illustrator colorize some Photoshop TIFF, but not others?

    In aid of Illustrator CS5 and new analysis from digital capture of the black and white linework (RGB). Previous tiff files are placed in artificial intelligence, selected, multiplied (background left), click a color, and the work is instantly colorized (ie. black lines turns into the Blues). With these new scans, they don't change color. PS files appear all the same upward. If I is not read files, or what I'm doing wrong with these new scans? Super thanks in advance. LF

    Color of the files do not work.

    Levels of gray or color bitmap images.

  • HP 5740 all-in-one: computer recognizes the printer, but not to scan

    My computer HP Envy Phoenix 810-470pc will print and fax, but not to analyze my HP 5740, I can scan from the printer and send it to the computer, but cannot scan to the computer, I reinstalled the software and it hooked up via usb, but it still does not work. Windows 10.

    Welcome to the HP community @retiredrudy,

    I read about the problems you are having with the scanning from or to your Officejet on Windows 10 5740. See the link below and try all the steps in order and you should be able to scan in progress!

    Let me know if you encounter any questions!

    HP printers - "no Options of Scan" or "scan settings do not value" message (Windows 10)

    Best wishes to you!

    Display thanks to my answer for you help today by pressing the "thumbs up" icon below!

  • Why is media center saying my dvd, s are not this country? they were purchased in the United Kingdom.

    I keep trying to play the dvd in my media center player, but a flag goes up to to say that they play in this country. I bought them to the United Kingdom!

    DVD is encoded with a "Region DVD". To check what you responds to go into Device Manager, select the DVD drive and check in system properties. License only 4 changes, so be very careful.

  • Why all this moderation?

    Everyone finds practically everything that they post here is being moderated? The big question for me is why? It used to be if you have included a couple of external links, it came down to one, even a YouTube video seems to trigger. If you mention a product that seems to trigger sometimes, but other times not. If moderation is done in a minute or two of fine, but I have something totally innocuous posted 10 minutes ago and it has not yet been approved. It's probably Jive replay upward, but it gets irritating after a while

    Terri

    I asked the admins to add you to a group of exemption. Promise to behave

  • Why all this very slow loading on my computer lately?

    When I click on a program to open it, it is very slow to open an it.when I am online, sometimes it just freezes

    Hi dls4u2c,

    1. Did you the latest changes on the computer?
    2. You receive an error message on the computer?
    3. You have security software installed on the computer?
    4. When was the last time it was working fine?

    Method 1

    Check if the problem persists in the safe mode and after back with the results.

    A description of the options to start in Windows XP Mode

    http://support.Microsoft.com/kb/315222

    Method 2

    If the problem does not persist in safe mode, then it is possible that some third-party programs installed on the computer is causing the problem.

    I suggest that you put the computer in a clean boot state and check if it helps.

    To help resolve the error and other messages, you can start Windows XP by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    See section to learn more about how to clean boot.

    How to configure Windows XP to start in a "clean boot" State

    http://support.Microsoft.com/kb/310353

    Reset the computer to start as usual

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:

    (a) click Start, type msconfig in the search box and press ENTER.

    (b) If you are prompted for an administrator password or for confirmation, type your password or click on continue.

    (c) under the general tab, click the Normal startup option, and then click OK.

    (d) when you are prompted to restart the computer, click on restart.

    How to make a computer faster: 6 ways to speed up your PC

    http://www.Microsoft.com/atwork/maintenance/speed.aspx

  • Why all this code extra?

    Hello

    To INSERT data db2 uses my code

    < cfqueryparam

    value =' #UCASE (arguments.myData) # ' cfsqltype ="CF_SQL_CHAR" maxlength ="40">,

    However

    (#UCASEarguments.myData #)

    is just as effective and the debugger shows the final result of code instead of? where it becomes necessary to match the arguments to get the final result.

    What, if any, advantage is the provide cfqueryparam tag?

    Can someone enlighten me pleasse?

    Thank you in advance.

    Do you need more information than is already presented in the documentation?

    http://help.Adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7F 6f.html

    --

    Adam

  • Why presentations adobe (flash) play very well in chrome but not firefox on Ubuntu 10, 11, and 5.6 RHEL

    My company provides many educational resources via adobe flash essentially presentation Manager. Can I play flash in most circumstances under linux with firefox, just not these. Chrome, with exactly the same plugin dll, is able to read the presentations very well.

    Remove the part after the last slash in the URL of the page and add player/playershell.swf

    On this page, it is this link, but of course, that won't work.

    https://support.mozilla.com/en-US/questions/
    https://support.mozilla.com/en-US/questions/player/playershell.swf
    
  • Why my AS3 code working in 1 project, but not in another?

    I had a small project by working with simple buttons that worked very well. I had to restore my project and now it does not work. Ive cut all new code that I added and it did not work. I made a completely new project and copied the layers I'm testing and just the code that had the first working draft and it did not work either. any suggestions on why this might happen?

    This can be a bit of a twist when it comes to understand because this is what I consider an anomaly of the Flash.  If you have different instances of the same object in the adjacent images, then the object the latter will inherit properties of the thing seized.  Sometimes it works to your advantage and sometimes it will leave scratching you your head trying to solve a problem.

    You have shown just in case, you have an object in the frame of 30 and I guess it is the same object that is in frame 1.  Based on what I just explained as an anomaly, even if you were to remove the name of the instance of the object in the frame of 30, or call it something else, it will persist with the name of the instance assigned to it in box 1.  Try it and see - it should always work.

    However, if you interrupt (that ness adjacent) regarding placing a keyframe empty between frame 1 and 30, you will find that the button no longer works in the frame of 30.  He is most associated with the earlier proceedings.  To get back to work, you reassign Auditors properties.

  • Why is there ink (handwriting recognition) for OSX, but not for the iPad?

    I don't understand why Apple has not integrated for tablets handwriting recognition.  (After all, a Tablet is something of a slate...)

    The ink is not an Apple product.

    OS x and iOS are also 2 different operating systems.

    Write to the developer of the application to this topic.

    There are apps that can:

    1 example:

    https://iTunes.Apple.com/au/app/myscript-memo/id446368116?Mt=8

    Do a search on the iTunes App Store for other applications.

  • My local network works, but why I can't ping? LAN works but not internet. A simple quest to the Jedi.

    Hi all!

    I have weird problem and I hope some of you can enlighten us if necessary.

    The background:

    My OS is Windows Vista Home Premium SP 2.   One day, I installed an application proxy - ProxyCap - as a free trial for 30 days.  The application installed a few dll Winsock provider.  After the 30 day trial, I uninstalled the app.  Then the problems started.  Even if the application proxy has been disabled, regular internet links have been completely normal and not affected.  It was only after uninstalling the app that I have problems.

    The problem:

    • The computer is unable to connect one more to any website using the browser.
    • My local network seems to be fully functional, which involves a problem of setting the software.  I say that my LAN is functional if I am going to sign--> Network and Sharing Center--> view status and look under the "Activity" section, I see the link send and receive packets without problem.
    • If I go into control panel of--> Network and Sharing Center--> view status of--> diagnosis, I get the message: "cannot communicate with DNS Server (xxx.xx.xxx.xxx) Network Diagnostics ping to the remote host, but has not received a response."
    • Indeed, if go to start--> cmd and ping my DNS server, I get a general failure for all 4 packets sent.
    • However, I am able to ping my localhost to 127.0.0.1

    My settings:

    • My ipconfig/all output: http://pastebin.com/Ksn2k2ja
    • DHCP is enabled.
    • For the properties of connection LAN--> Internet Protocol Version 4 (TCP/IPv4)--> properties, I 'IP automatically get an address' and "Obtain DNS server address automatically" selected.
    • The same goes for--> Internet Protocol Version 6 (TCP/IPv6)--> properties.
    • The Sysinternal autoruns--> tab providers Winsock application, tells me that I have the "Hello Namespace Provider' active as a WinSock2 registry entry. It is mdnsNSP.dll and published by Apple Inc..  Who was present before installation of the proxy, and this is for iTunes.  Screenshot: http://i1300.photobucket.com/albums/ag86/applemeetworm/winsock_zpsb41ca872.jpg

    What I tried:

    • I tried to reset Winsock for Vista by clicking Start--> cmd and type netsh winsock reset , and restart the computer.
    • I tried to reset the TCP/IP stack by clicking Start--> cmd and type netsh int ip reset c:\resetlog.txt and restart the computer.
    • Restart my router.
    • Deactivation and activation then my connection to the local network.

    Thank you all for helping me with my problem.  I would be happy to provide more information as needed.  Thanks for the research and thanks offering solutions.

    See you soon!

    Hi all!

    I contacted ProxyCap and support staff has been able to solve the problem.

    Apparently, one of my entries in registry Winsock2 (Winsock2, Namespace Catalog5, 5 catalog entries) has been disabled somehow, uninstalling or in my first attempts to address issues after uninstall.

    Thanks to ProxyCap and for other people who have tried to help.

    ~ Congratulations ~.

  • E4200 why loss of huge packages to the concert but not 100 Mbps?

    Vista 64 Intel Pro 1000 with the latest driver here is a shot of the lagometer in COD Black Ops, when everything is good. I used to see this with my old WRT54GS and connected at 100 Mbps Full Duplex or half Duplex and I currently see it when it is connected through the E4200 to 100 Mbps full or half duplex AND connected via Gigabit via one of the 4 ports on the back of my cable modem, a Motorola SBG6580 [img][line] http://photos.smugmug.com/1590700194_rFrtpkV-O-LB.jpg this next screenshot It's what happens when I try to connect via Gigabit through the E4200. It either starts like this immediately or within 30 seconds to a minute, this will start to happen. I think that the red spikes indicate losses of packets. [img] http://photos.smugmug.com/1590700217_SWKtMP3-O-LB.jpg [line] .

    Looks like I have it solved.

    I got an Intel Pro 1000 PT NIC thug.

    The new Intel Pro 1000 CT works very well.  Without choking the E4200 and none seeing panic on the Gig switch 8 ports. Copies files to and from the NAS on the network are smooth and consistent transfer rate.

    And best of all... smooth gaming.

Maybe you are looking for

  • Stop the connection timeouts occur - want the page wait

    I run several tab that monitor various tools. These pages will refresh. Pages must wait each other finish before you can start. In version 28 it was beautiful. The page just wait indefinitely and kicked in a previous page after doing its thing. Now i

  • source timebase external meter in the task of separation of two edges

    Hi all I use a Board OR 6220 and want to make something very similar to what is described in the knowledge base article "how I count Digital edges between Start and Stop relaxing on a NI 6602 Council of counters/timers? Anyone know how I change the e

  • Why the execution time increases with a while loop, but not with "run continuously?

    Hi all I have a problem of severe weather that I don't know how to fix it because I don't know exactly where it comes from. I order two RF switches via a data acquisition card (NI USB-6008). One job at the same time can be selected on each switch. Ba

  • Drag-and - drop does not 2012 and Win 7

    This used to work, but somewhere along the way, I lost the ability to drag and drop access paths and excerpts from LV on a LV block diagram. Has anyone else seen elsewhere? I don't think it's a matter of windows. And it works in LV2011.

  • many bridges of cpu host pci on my laptop?

    My windows7 laptop has 8 or 9 bridge pci /cpu showing... my security system Norton says fasteners need what should I do? certain work ads pci to stop my laptop cutting, how I want to view youtube without all the interouptions as stop and start as wel