By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,057 Members | 1,363 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,057 IT Pros & Developers. It's quick & easy.

Trouble with Safari

P: 16
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.

http://www.corvairflair.com/VerdeBook/

Thanks,
Mike
Mar 6 '08 #1
Share this Question
Share on Google+
5 Replies


drhowarddrfine
Expert 5K+
P: 7,435
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

Stang02GT
Expert 100+
P: 1,208
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

P: 16
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.

Thanks
Mike
Mar 6 '08 #4

drhowarddrfine
Expert 5K+
P: 7,435
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

P: 16
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.

Thanks
Mike
Mar 6 '08 #6

Post your reply

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