2 replies [Last post]
rynnie16
rynnie16's picture
Offline
newbie
United States
Last seen: 4 years 47 weeks ago
United States
Timezone: GMT-5
Joined: 2015-11-23
Posts: 1
Points: 3

I am designing a page and I used CSS to move the image up and it looks perfect on Chrome but the image seems to be stuck (too low on the screen) in IE and Firefox. How can I add CSS to adjust the image on just IE and Firefox?

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 19 hours 46 min ago
Dallas
Timezone: GMT-5
Joined: 2004-06-25
Posts: 9772
Points: 3854

Oops! You likely screwed up

Modern browsers are doing a good job of rendering per the specs. If you are having issues, it is very likely that you have chosen a method of element placement or poorly structured content and html markup that encourages errors. If you use javascript to generate markup or css, there is an even greater chance error.

Without seeing the markup and css, preferably by linking us to the site/page in question, we can only guess (poorly) about how to fix things.

I will add that it is a poor practice to sniff the browser and modify things based on the browser (except where the browser is IE<9). Best practice will simply cause a graceful degradation in non-compliant browsers.

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

rynnie16
rynnie16's picture
Offline
newbie
United States
Last seen: 4 years 47 weeks ago
United States
Timezone: GMT-5
Joined: 2015-11-23
Posts: 1
Points: 3

Thanks!

Thank you Gary, I will go back and rework my code! Happy Thanksgiving Smile