Joined: Dec 2006
Posts: 1,235
veteran
veteran
Joined: Dec 2006
Posts: 1,235
In the post header table the post title is aligned at the bottom and the date is aligned middle. Not too much of an issue until you use a table background image that has a center line. Can you ID which script this is in. It's probably a simple image align=absmiddle tag than needs adding.
Attachments
Joined: Jun 2006
Posts: 16,300
Likes: 116
Joined: Jun 2006
Posts: 16,300
Likes: 116
looks like it's on a post, so that'd be showflat.tpl (add showthreaded.tpl if you're using pre7.2.2)
Joined: Dec 2006
Posts: 1,235
veteran
veteran
Joined: Dec 2006
Posts: 1,235
It's in post_top.tpl
When I post without an icon it aligns perfectly. With an icon it displays as pictured above.
Joined: Aug 2006
Posts: 1,358
Veteran
Veteran
Joined: Aug 2006
Posts: 1,358
If it's in post_top.tpl it's also in post_side.tpl probably!
Joined: Apr 2007
Posts: 3,940
Likes: 1
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
you may want to look at the box model for each span you have. ie: the icon is 15px x 15px.
now if you have margins + padding + font-size, it maybe that you are rendering the only way the browser can.
you might have to allow for the container to be large enough to verically center or reduce the margin/padding to do it.
Joined: Dec 2006
Posts: 1,235
veteran
veteran
Joined: Dec 2006
Posts: 1,235
@ blaaskaak: That's it, I needed to add it to both and it's now working.post_side.tpl line 23 add: <img border="0" src="{$config.BASE_URL}/images/{$style_array.icons}/{$postrow[post].Icon}" {$images.icons} alt="" align="absmiddle" />post_top.pl line 22 add: <img border="0" src="{$config.BASE_URL}/images/{$style_array.icons}/{$postrow[post].Icon}" {$images.icons} alt="" align="absmiddle" />
Attachments
Joined: Dec 2006
Posts: 1,235
veteran
veteran
Joined: Dec 2006
Posts: 1,235
Update: You also have to add it to the locked topic icon:post_side.tpl line 21 add: <img src="{$config.BASE_URL}/images/{$style_array.general}/lock.gif" alt="" align="absmiddle" />post_top.tpl line 20 add: <img src="{$config.BASE_URL}/images/{$style_array.general}/lock.gif" alt="" align="absmiddle" />
Joined: Jun 2006
Posts: 16,300
Likes: 116
Joined: Jun 2006
Posts: 16,300
Likes: 116
absmiddle is not xhtml valid; and since we're on a quest for validity it's not a proper fix. Instead, you should use css as say "vertical-align: middle"; it wouldn't be *exact* center, but it would be valid, and it would be close
Bots
by Outdoorking - 04/13/2024 5:08 PM
4 members (Gizmo , Baldeagle , Ruben , 1 invisible),
779
guests, and
156
robots.
Key:
Admin ,
Global Mod ,
Mod