Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
archtype
New Member
New Member



Joined: Apr 30, 2005
Posts: 9

PostPosted: Fri Jul 22, 2005 12:51 pm Reply with quote

I know IE is Crap and I don't necessarily like it but alot of my users are using it. I just noticed that the scrolling forum block text is centered fine in FireFox but is left justified in IE. Then I noticed that the Recommended Sites scrollbox on this site is functioning the same way with the images. Can anyone help me resolve this? It's not necessarily a problem with functionality because it is displaying the info correctly as far as content but the visual side makes the site look...well...cheap. Any help would be greatly appreciated.

Thanks!
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Fri Jul 22, 2005 1:05 pm Reply with quote

I see the difference in the recommended sites and will address that, but I don't see any difference in the forum block. It could be your theme. Or, using my site in both IE and FF, help me to see where the forum block is not centered.
 
View user's profile Send private message
archtype







PostPosted: Fri Jul 22, 2005 1:14 pm Reply with quote

Raven,
I don't even see a scrolling forum block on your site. I see the scrolling downloads block but that's it. Look here at my site: www.cajunchaos.com
See if it appears to be left justified to you from there. One of the scroll blocks is a codezwiz block and the other is one from here. Both are reacting the same.
Thanks for taking the time to look at this with/for me. I really appreciate it!
 
Raven







PostPosted: Fri Jul 22, 2005 3:03 pm Reply with quote

Ah. Sorry. I thought you meant the Collapsing Forum Block Laughing - I misread your original post.
 
Raven







PostPosted: Sat Jul 23, 2005 12:25 pm Reply with quote

:lol: That response (since removed) should have been posted here instead. I have removed your previous post and just added mine.

Well, here is no surprise at all. IE does not obey it's own tag syntax! "align="center" is advertised as being valid, but it isn't. After spending several hours on this issue, the only way I can get IE to center the images is to use a
Code:
style="margin-left:??px;"
attribute in the marquee tag. The ?? is calculated as the (width_of_the_block - width_of_the_image)/2. So, if your block is 150px and the image is 88px, you would calculate (150-88)=62/2=31. So, your propertyr would look like
Code:
style="margin-left:31px;"

You will need to remove the align="center" attribute or FF will CORRECTLY apply both the margin-left and the align="center". So, your tag might look like this
Code:
<marquee behavior= "Scroll" style="margin-left:30px;" direction= "Up" scrollamount= "2" scrolldelay= "10" onmouseover='this.stop()' onmouseout='this.start()'>
 
archtype







PostPosted: Sun Jul 24, 2005 9:01 am Reply with quote

Raven wrote:
Laughing That response (since removed) should have been posted here instead. I have removed your previous post and just added mine.

Razz
Thanks Raven! I do appreciate all your help and am so glad to finally know of a site that actually answers your questions!
Much appreciation to you!
 
archtype







PostPosted: Mon Jul 25, 2005 8:36 am Reply with quote

Raven wrote:
Well, here is no surprise at all. IE does not obey it's own tag syntax! "align="center" is advertised as being valid, but it isn't. After spending several hours on this issue, the only way I can get IE to center the images is to use a
Code:
sty le="margin-left:??px;"
attribute in the marquee tag. The ?? is calculated as the (width_of_the_block - width_of_the_image)/2. So, if your block is 150px and the image is 88px, you would calculate (150-8Cool=62/2=31. So, your propertyr would look like
Code:
sty le="margin-left:31px;"

You will need to remove the align="center" attribute or FF will CORRECTLY apply both the margin-left and the align="center". So, your tag might look like this
Code:
<marq uee behavior= "Scroll" sty le="margin-left:30px;" direc tion= "Up" scroll amount= "2" scroll delay= "10" on mouseover='this.stop()' on mouseout='this.start()'>

Well, I don't know why but I can't seem to make the code above work. The entire block breaks and then all blocks below it will not display. I have tried playing with the code but to no avail! I just wanted to let you know. If you get around to playing with it and figure it out, wonderful. I would really like it to display correctly but, if not, it's no biggie. I have been doing a little research and I haven't found a scrolling block that seems to display center in IE yet! Go Figure!!! Anyway, thanks Raven for taking your time to give such wonderful and helpful support here on your site. I, as I'm sure most everyone else here does, am greatly appreciative of it!

Thanks!
 
Raven







PostPosted: Mon Jul 25, 2005 9:10 am Reply with quote

I did figure it out and that code is what worked for me. I don't know why it doesn't work for you. If it breaks other blocks then it sounds like you may have other problems in the block.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©