Ask Your Computer Question. Computer Experts Answer You ASAP.

(Not a Computer Question?)

My div containers "move" when I test my web

Sent to Computer Experts May 13 2008 at 5:32 PM
   

My div containers "move" when I test my web pages on foxfire, opera, and safari. I have tried so many ways to ''lock'' them in place. I float them, and use margins to place them. I position them and tag them as ''absolute''. ... So frustrated with this snag. I am new to dreamweaver and know this is prob. a nubie mistake.

 

Optional Information:
Browser: Firefox

Already Tried:
I have tried CSS style sheet settings for the div locations. They seem to affect eachother and will not stay in location when tested... I have used margins, floating, absolute positioning and position locations. I will attempt to attach my code to follow. body { background-color: #FFFFFF; text-align: center; margin-top: 0px; padding-top: 0px; } #wrapper { text-align: left; height: 650px; width: 950px; margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; background-image: url(web%20pages/vps%20web%20bkgd.jpg); background-repeat: no-repeat; } #rollimage { background-color: #99CC66; float: right; margin-right: 232px; text-align: center; height: 350px; width: 500px; margin-top: 25px; } #propel { background-color: #FFFFCC; height: 100px; width: 126px; position: absolute; top: 536px; right: 633px; z-index: auto; } -->

Customer (name blocked for privacy)
Answer
May 13 2008 at 6:12 PM (39 minutes and 38 seconds later)
         
ACCEPTEDCheck Mark
Hi Customer (name blocked for privacy). Thank you for asking your question on Just Answer.

Actually, this isn't really a newbie mistake - it has to do with the different rendering engines in use by different browsers. Unfortunately, there is no easy fix for this type of problem. It doesn't help at all that most browsers don't fully support the CSS specifications anyway. As far as I know, you'll never get the exact same result in all different browsers, but you can get close by using various tricks to get the job done.

The first thing I can think of on the spot is trying a switch to the em unit of measurement in your styles. If I recall correctly, the em unit is less "dynamic" across browsers. The downfall is that em is based on the size of the font in use on the page (or in the element, such as the div), so to get a consistent result you'll probably have to specifically that size as well.

There are a couple of resources that might point you in the right direction. First, the built-in CSS reference in Dreamweaver is pretty good for general information. Second, this page might help get you on the right page for cross-browser support.

Keep in mind that it is VERY hard to get some sites to look the same in all major browsers using CSS. I have spent many an afternoon trying to figure out why one of my pages loads fine in Firefox, but looks totally different in IE. My own golden rule is that if the page is relatively simple, use a table layout if possible. Many people will disagree with me, but given that CSS isn't that well executed in many browsers, it is sometimes necessary to go back to tables.

Finally, if you can upload your page somewhere, I can take a look and tinker with it a bit myself and perhaps provide some further help.


If my answer has been helpful to you, please click the "ACCEPT" button. Feedback/bonuses are also greatly appreciated.
Think you can answer this question?
Login or Become an Expert

 

DISCLAIMER: You acknowledge that any information you may obtain from individuals you contact through use of the JustAnswer service comes from those individuals, not from JustAnswer, and that JustAnswer is not in any way responsible for any of the information these third parties may supply. The site and services are provided "as is" with no warranty and no representations are made regarding the qualification of an Expert. Responses and comments on JustAnswer are for general information and are not intended to substitute for informed professional advice (such as medical, legal, investment or accounting) and do not establish a professional-client relationship. JustAnswer is not intended or designed to address EMERGENCY QUESTIONS which should be directed immediately by telephone or in-person to qualified professionals. Please carefully read the Terms of Service.

JustAnswer > Computer Questions