Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jul 2007
Posts: 103
member
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
journeyman
F Offline
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,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
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
journeyman
F Offline
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
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
1 members (Nightcrawler), 963 guests, and 210 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)