Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Image + text align
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedImage + text align

 Post Reply Post Reply
Author
Gullanian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
Direct Link To This Post Topic: Image + text align
    Posted: 19 February 2006 at 3:26am
Hi,

In CSS does anyone know how to valign images and text into the middle?  If they are in the same table cell the images always appear raised above the text slightly, I dont want to put them in seperate cells (which seems to align them properly).

Any ideas?

Thanks!
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Direct Link To This Post Posted: 19 February 2006 at 11:24am
i think if you put align="absmiddle" in the img tag it'll do what you want

its always worked for me Confused
S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
ub3rl337ch3ch View Drop Down
Senior Member
Senior Member
Avatar

Joined: 16 February 2005
Location: Australia
Status: Offline
Points: 341
Direct Link To This Post Posted: 19 February 2006 at 10:12pm
i think the images always appear raised slightly above the text because most fonts have blank spaces above them, so the tops of your l's and h's (and d's and b's and capitals) will start a few pixels below the top of the image... if none of that made sense then i am oviously misinterpreting what you asked...
 
anyhoo, i think you can fix this with a bit of trial and error by using positioning relative and droppin the image a few pixels lower...
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Direct Link To This Post Posted: 20 February 2006 at 12:03am
also helps to set the image padding and margins - top and bottom, to 0.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.