469,275 Members | 1,529 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,275 developers. It's quick & easy.

Cannot center display:block image in FF but works in IE

Hey guys,
I was wondering if someone can check my css setup, for some reason my pictures are not coming out centered in FF but it is centered in IE.

text-align: center;

My script then changes it to
document.getElementById('gallery').style.display = 'block';

If I removed the display:none; then both browsers can display them correctly but if I add the display:none; and have my js script set the .style.display = 'block'; it won't work in FF.

Here's the test example -- works in IE7 but not FF1.5
wendyandnelson . com/test/index-test.html

Any suggestions is greatly appreciated.
Aug 29 '06 #1
1 2100
9,064 Expert Mod 8TB
Can't see anything obvious from what you have posted and the posted link is not working.
Aug 29 '06 #2

Post your reply

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

Similar topics

reply views Thread by Harlan Messinger | last post: by
7 posts views Thread by Jeff Thies | last post: by
7 posts views Thread by Marc | last post: by
1 post views Thread by Tan | last post: by
2 posts views Thread by ruby_bestcoder | last post: by
3 posts views Thread by den 2005 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.