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

CSS layout in Safari

P: 5
I've tried this site in IE6, IE7, Netscape 7.1, Firefox 1.5 ...works fine in all of those. But Safari 1.1 (I think) is going to be the death of me. I do not understand why my text boxes defined by divs in the CSS are positioning way out of whack.

Here's the site: http://aec.ifas.ufl.edu/step/test_rust.html
Here's the CSS: http://aec.ifas.ufl.edu/step/basics2_rust.css

The div that defines the text box is #text and #textend. I've tried changing #container to 800px because I read somewhere that Safari will mess up the positioning if the container div isn't specified large enough. I'm kinda new to CSS, but I know I'd still like to use the float:left for layout rather than absolute or relative positioning. Can anyone help?
Nov 2 '06 #1
Share this Question
Share on Google+
4 Replies


drhowarddrfine
Expert 5K+
P: 7,435
Possibly because you use the id of 'text' more than once. You are only allowed one id name per page.
Nov 2 '06 #2

kestrel
Expert 100+
P: 1,071
yeah,
http://validator.w3.org/
validate your page there, the only error is the id="text" has been used more than once
everything else is good, including your css
Nov 2 '06 #3

P: 5
Possibly because you use the id of 'text' more than once. You are only allowed one id name per page.
I fixed that and it's still doing the same thing. Any other ideas?
Nov 3 '06 #4

P: 5
I figured it out: http://aec.ifas.ufl.edu/step/safari/test_rust.html
http://aec.ifas.ufl.edu/step/safari/basics2_rust.css

The three text boxes were all originally told to float:left. Well, Safari 2.0.3 doesn't like that. The last one has to float:right. Did that, changed my margins for alignment and it works in all the browsers I need to be compatible with for this site.
Nov 3 '06 #5

Post your reply

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