Can anyone help me with this issue I am having? All of my placed items will shift on certain browsers... Is this because the browser is outdated? There must be away around this to have to solid on all platforms... help please! thank you.
The link below is the site for you to see for yourself...
Different browsers handle margins and padding differently. It's a wise practice to avoid using them for positioning unless you don't mind things not lining up on different browsers.
to your CSS. This overrides any browser default margin/padding settings.
Note: if your layout was dependent upon those settings, you'll need to tweak the spacing.
FYI
* My screen resolution is set at 1680x1050
* I'm accessing your site through a T1 line
* I'm probably viewing it using Firefox (unless browser is specified)
Exactly which browsers are causing the errors? The reset might be the best solution, but it'd be nice to see what kind of shifting your speakign of! Thanks.
to your CSS. This overrides any browser default margin/padding settings.
Note: if your layout was dependent upon those settings, you'll need to tweak the spacing.
Just add this to css in general or under the page properties?
Different browsers handle margins and padding differently. It's a wise practice to avoid using them for positioning unless you don't mind things not lining up on different browsers.
whats the best practice on positioning elements without using actual positioning? Sorry I am extremely new to coding.
Use a container, to position the page, (set it to a pixel width, then set left and right margin to auto, instead of text-align:center;... use margin: 0 auto; ) then those elements can be positioned using top-left-right-bottom's... percentages or pixels. as long as container doesn't change size. and guarantees that the inside elements will not move around on you.
A reset (* {margin:0 border:0 etc etc}) is a good way to ensure the browser isn't sneaking in values where you don't want it too. There are premade resets you can use, or you can default by using the *, meaning all. Here is a good start
Bookmarks