Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Weird browser behavior.

Weird browser behavior.
Thread Tools
DUNSEL
Forum Regular
Join Date: Feb 2004
Location: Manhattan
Status: Offline
Reply With Quote
Feb 18, 2004, 08:18 PM
 
The splash page at this site - gkarchitects.biz - loads perfectly in IE, NS 6.2, and Safari 1.2 (I'm told. I don't have a mac) but in NS 7.1, and Mozilla, the address graphic at right/center shifts to the left a bit as it loads. There's no CSS positioning used, just a simple HTML table of fixed width which contains all 3 graphics. Anyone care to throw out some guesses as to why this is happening, and how to prevent it?
I saw a woman with a sweatshirt that said "Guess", so I said, "Implants?"
     
Simon Mundy
Grizzled Veteran
Join Date: Jun 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Feb 19, 2004, 02:49 AM
 
Originally posted by DUNSEL:
The splash page at this site - gkarchitects.biz - loads perfectly in IE, NS 6.2, and Safari 1.2 (I'm told. I don't have a mac) but in NS 7.1, and Mozilla, the address graphic at right/center shifts to the left a bit as it loads. There's no CSS positioning used, just a simple HTML table of fixed width which contains all 3 graphics. Anyone care to throw out some guesses as to why this is happening, and how to prevent it?
A documented bug with Mozilla that occurs in HTML 4.01 and images - to cut a long story short, you need to give all images a display attribute of 'block' so images don't appear inline anymore. For cases you do want them inline, apply a specific selector.

E.g.

img { display: block; }
.img { display: inline; }

and in your html

<img class="img" etc... >

That should fix it. Or just use XHTML and save yerself the headaches.

BTW, is there any reason you want a Javascript redirect for 'older' browsers? In 99.9% of cases, they're unnecessary and rude and can also cause headaches in the future. Smart CSS and degradeable HTML is a much smarter way to go.
Computer thez nohhh...
     
DUNSEL  (op)
Forum Regular
Join Date: Feb 2004
Location: Manhattan
Status: Offline
Reply With Quote
Feb 19, 2004, 10:16 AM
 
Thanks, I'll implement that. There's no redirect for older browsers there. Just a sniffer to call the appropriate function. I'm changing the opacity attr. on the fly, and IE, NS, and Moz/Safari, set and access the property with different syntax.
I saw a woman with a sweatshirt that said "Guess", so I said, "Implants?"
     
   
Thread Tools
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 11:10 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,