PDA

View Full Version : Text doesnt want to line up with picture



PitbullMean
Jan 29th, 2010, 04:04 AM
hey guys i got alittle problem here cause seem to get the picture and text to line up properly i tried every trick i know so if you guys can give some insight that would be great.

http://www.foreverlock.ca/aoa/team.php

abduraooft
Jan 29th, 2010, 05:47 AM
Apply a line-height value equivalent to the height of that image, like

p {/*base.css (line 564) you might need to use a specific selector rather than p*/
line-height:224px;
padding:5px;
}

PitbullMean
Jan 29th, 2010, 03:07 PM
Adding a line height and changing the tag didnt fix anything

abduraooft
Jan 29th, 2010, 03:14 PM
Adding a line height and changing the tag didnt fix anything
Aren't you talking about vertically centering the text inside the following section?
<p><img class="left" alt="Welcome" src="./images/news/welcome-side.jpg"/>

kjfhdkjfhskljfhlfhdlkjshkjldshfkdjlshfkljdsakljasd</p>

PitbullMean
Jan 29th, 2010, 03:23 PM
No, the members names.
Name: Eric Melo
Alias: PitbullMean
Location:
Glencoe, Canada With the Picture right now its nopic.JPG

abduraooft
Jan 29th, 2010, 03:34 PM
Adding vertical-align:middle; to the td would do it.
btw, why are you using tables there for your layout?

PitbullMean
Jan 29th, 2010, 03:37 PM
Its not for the layout, its for just adding member names and pics.