Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

macaddict23

macrumors 6502
Original poster
Jun 20, 2006
382
1
MacVille, USA
These two elements have different heights and currently align at the baseline. I don't want that. What I want is for them to align horizontally. Thanks!
 

Darkroom

Guest
Dec 15, 2006
2,445
0
Montréal, Canada
i'm pretty sure this code isn't W3C compliant, but i know it works... so maybe you might be able to use something like this:

Code:
<table width="100%" height="100%" border="0">
<div>
<tr>
<td>content</td>
</tr>
</div>
</table>
 

angelwatt

Moderator emeritus
Aug 16, 2005
7,852
9
USA
Can you elaborate on the situation? It's hard to figure out what you're wanting. If you have some sample HTML that you're dealing with that would be helpful in understanding.
 

Mal

macrumors 603
Jan 6, 2002
6,252
18
Orlando
Use the CSS vertical-align: middle property. Should work fine for what you seem to be trying to do.

jW
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.