Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jul 2007
Posts: 103
nims2 Offline OP
member
OP Offline
member
Joined: Jul 2007
Posts: 103
When you add an image and choose it to center, it's not centered. Although the HTML has the "align=center" tag, you would expect that this option would put the image in the "horizontal-center" of the post. Well it doesn't:

Img inside an image tag. Realy weird.

Centered image:
[Linked Image from ricochetbond.nl]

It's just at the left.

Joined: Oct 2005
Posts: 50
F
journeyman
Offline
journeyman
F
Joined: Oct 2005
Posts: 50
Yep, definitely a bug. On img tags the attribute align="center" does not actually centre an inline image within an area, it would have to be put inside a block element.

ie. <h1 align="center"><img src="example.gif"></h1>

Anyway, all this is deprecated in html 4 onwards and using css would be a much better method for the future. Maybe the UBB version 8 rewrite will update this.

Joined: Jun 2006
Posts: 16,014
Likes: 58
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,014
Likes: 58
center in the image tag is for text alignment and not centering the image in the page; you'd use align to align the image...

Align:
[Linked Image from ricochetbond.nl]





Img Left with text [Linked Image from ricochetbond.nl] Img left with text




Img Right with text [Linked Image from ricochetbond.nl] Img Right with text




Img Center with Text [Linked Image from ricochetbond.nl] Img Center with Text


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Oct 2005
Posts: 50
F
journeyman
Offline
journeyman
F
Joined: Oct 2005
Posts: 50
Ah, in that case Gizmo it works as intended.

I see the examples you give ARE wrapped in a block element (a <div> in this case) which is fine.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
v7.7.5 Active Topics Display Name Incorrect
by Jake - 11/17/2020 4:46 PM
custom islands in forums tool
by Ruben - 11/17/2020 3:21 PM
Captcha bug maybe?
by Morgan - 11/16/2020 8:34 AM
Facebook thumbnail issue
by DBryce - 11/08/2020 7:43 PM
No hop to menu in the category pages
by Morgan - 11/05/2020 4:19 PM
Who's Online Now
1 members (JAISP), 67 guests, and 56 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
gallery test
gallery test
by Mors, September 23
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 7.7.5