Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

stumblebum

macrumors newbie
Original poster
Mar 18, 2004
3
0
Okay, first off I'm a newbie developer and this site certainly doesn't validate as XHTML transitional (mostly due to missing "ALT" tags), but I'm encountering this table "float" issue with Safari 1.2.1 that I can't seem to resolve. Site works fine in IE5.5 (mac and PC), but in Safari my tables don't center properly--they seem to creep slightly to the right or the left as you navigate the site. My CSS validates but maybe I'm using a tag incorrectly or there's some sort of syntax issue. I've tried using the <CENTER> tag and CSS to center tables, but it doesn't seem to help. I'm currently using <div align="center"> to center my tables.

Here's the site (don't harsh on it too hard--it's for my freelance business): http://dougmuise.com/

I figure this is a good learning opp for me--any help is greatly appreciated!

cheers,

Doug
 
mnkeybsness said:
ahhh.... where's the problem? i can't find it.

Looks fine to me, too. Which version of Safari you having problems with? I'm on 1.2.1.

Here's a screenie:
 

Attachments

  • dougmuise.gif
    dougmuise.gif
    60.7 KB · Views: 127
I think I see what he means: When you go to a longer page, eg Portfolio, a vertical scrollbar appears. This decreases the page width and hence makes the table move to the left a bit. This happens in IE too, it's just not as noticeable when it's not cached because it clears the page for a second while loading a new page. This happens on every page with centred things, and AFAIK is unavoidable.
Is this what the problem is stumblebum?
 
Ah, this makes sense to me--the scroll bars are re-centering the page slightly to the left. It's annoying, but it looks like the only way around it would be to put things in a frameset. I think I can live with it.

Thanks for your help!

Doug

HexMonkey said:
I think I see what he means: When you go to a longer page, eg Portfolio, a vertical scrollbar appears. This decreases the page width and hence makes the table move to the left a bit. This happens in IE too, it's just not as noticeable when it's not cached because it clears the page for a second while loading a new page. This happens on every page with centred things, and AFAIK is unavoidable.
Is this what the problem is stumblebum?
 
stumblebum said:
Ah, this makes sense to me--the scroll bars are re-centering the page slightly to the left. It's annoying, but it looks like the only way around it would be to put things in a frameset. I think I can live with it.

Thanks for your help!

Doug

If you decide you can't... you could use a spacer below the tables for perma-scrollbars or do a javascript window height check to dynamically add a blank column on the right simulating an invisible scrollbar on pages where needed.

--

WAR IS PEACE
IGNORANCE IS STRENGTH
FREEDOM IS SLAVERY
 
That's a great idea--I'll add a spacer below the tables to get the perma-scrollbrs on all pages. Thanks!

jennyjennydz said:
If you decide you can't... you could use a spacer below the tables for perma-scrollbars or do a javascript window height check to dynamically add a blank column on the right simulating an invisible scrollbar on pages where needed.

--

WAR IS PEACE
IGNORANCE IS STRENGTH
FREEDOM IS SLAVERY
 
stumblebum said:
That's a great idea--I'll add a spacer below the tables to get the perma-scrollbrs on all pages. Thanks!

And have users scrolling down looking for content and then get confused when all they see is blank space? Seems counter-productive, to me.

People will most likely not notice the slight changes in centering because of scroll-bars, or if they do they won't care. People will most likely care about seeing a bunch of blank space at the bottom of the page and will think there's something wrong on their end or yours.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.