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,071
Likes: 72
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,071
Likes: 72
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
Scroll Up Button
by JAISP - 04/28/2021 7:39 AM
[Cannot Replicate] Unapprove Post Bug
by Larry Miller - 04/26/2021 10:07 AM
Just popping in
by Harold - 04/25/2021 9:05 PM
Moving Forum/Category location
by ECNet - 04/25/2021 12:11 PM
7.7.5 become member issue
by Ruben - 04/15/2021 10:06 AM
Who's Online Now
1 members (Ruben), 78 guests, and 54 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