etidd — 2012-07-04T02:12:17-04:00 — #1
I am working on the website at georgiasbest.com, and I am seeing some weird display issues that I otherwise don't see on my local machine. The whole image is practically cut off! What is going on here? Something to do with the web host?
I also need to find out what I did incorrectly to center the page. Apparently margin:0 auto; isn't correct in this case.
ralphm — 2012-07-04T02:24:11-04:00 — #2
Firstly, remove this:
margin: 0 auto;
You don't want every element on the page to be centered (it wouldn't work on every element anyway), and you certainly don't want every element to have the same bg image.
Put a wrapper div around your content and center that instead with margin: 0 auto;
black_max — 2012-07-04T02:55:48-04:00 — #3
The code Ralph cites looks like some sort of adapted reset. I like resets, but not the "universal selector" "hard" resets, as you're using here. They cause lots of problems. You might find some resets more to your liking [here. There are a million different ways to do them, and I find myself veering from one reset to another almost on an arbitrary basis. I've used [URL="http://www.maxdesign.com.au/articles/css-reset/"]Russ Weakley's reset](http://sixrevisions.com/css/should-you-reset-your-css/) as often as anything else. The big thing is to remember that you can and should modify any reset you use to suit your own needs.
etidd — 2012-07-04T18:37:20-04:00 — #4
Yes, this worked:
text-shadow:1px 1px 1px #000, 1px 2px 1px #03F;
However, now the site is bumped down from the top about 20px when I want the image snug at the top.
ralphm — 2012-07-04T18:47:52-04:00 — #5
It's an issue of collapsing margins.
etidd — 2012-07-04T19:03:32-04:00 — #6
@ralph_m has helped me solve dozens of issues. Thanks one more time!
ralphm — 2012-07-04T19:10:55-04:00 — #7
No worries! That's what we are here for.