468,301 Members | 1,492 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,301 developers. It's quick & easy.

Trouble with Safari

I have designed and coded what I thought was a very simple landing page. It seems to display fine in all browsers except for Safari. I am setting text-align to center at the body level for IE and div level for Mozilla, then adjusting the alignment for other elements accordingly. The only problem is that Safari doesn't seem to be affected by the text-align center. Do I need to do something specific for this browser? Here is the url to view the page.


Mar 6 '08 #1
5 1130
7,435 Expert 4TB
I don't have Safari handy right now. You are using -moz-center for text-align but regular text-align elsewhere. So this feeds Mozilla only at that point but does nothing for IE or Safari. I'm wondering if it was an attempt to correct Mozilla but, in the process, messes up Safari. This is one reason why you should always correct IE, not modern browsers.

OT - I don't own a Mac. I should and want to but I do have Safari on Windows for testing. I really, really like Safari.
Mar 6 '08 #2
1,208 Expert 1GB
you might, i know that i have run into a lot of problems when I view a page i created in IE vs FireFox. Each browser picks things up differently. So you might wan to check out how Safari handles things.

Unfortunately i don't know enough about Safari to help you but if i were you my 1st step would be to research safari and see if you have to handle certain things differently in it.
Mar 6 '08 #3
Yes, I was trying to correct for both IE and Moz. For some reason I wasn't able to get text-align center to work properly in Moz without that snippet of code. I suspect that you are correct in that this may be messing up the Safari layout.

One other question. Does height: 100% work in all browsers? I can't seem to get it to work. For some reason when I use this style attribute, the height for my text container never changes.

Mar 6 '08 #4
7,435 Expert 4TB
height does not work properly in IE. IE treats height as 'min-height' but min-height itself does not work at all in IE. Of course, height works correctly in all other browsers.

For height to work, you have to think "100% of what?". The parent/containing element must also has a height set.
Mar 6 '08 #5
Thanks, I seem to have the height working for me now, but have run into another issue. I want my rotating image in the header to align to the right side of my mainContent div. But I also want to make sure the entire container stays centered in the screen. Right now if you minimize your browser window that rotating image stays in a fixed place on the right.

Mar 6 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by mr_burns | last post: by
4 posts views Thread by Paul W | last post: by
5 posts views Thread by Bill Cohagan | last post: by
10 posts views Thread by whmoseley | last post: by
1 post views Thread by jamierphelps | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.