Afficher un message
Vieux 17/03/2008, 18h09   #2
Ben C
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Is it possible to vertical align in a div?

On 2008-03-17, Dave Rado <dave.rado@dsl.pipex.com> wrote:
> Hi
>
> See my mock-up at http://tinyurl.com/35tv29. The three icons are
> supposed to be vertically aligned on their bottoms (using "vertical-
> align: bottom"), but they aren't, they're vertically aligned on their
> tops. Is there any way to align them vertically on their bottoms (or
> middle for that matter) short of resorting to using a table (where
> "vertical-align: bottom" does work)?


Vertical-align doesn't apply to blocks (like divs).

But you can set it on the imgs inside the divs if you want. Or set img
to display: block which I think is more appropriate here.
  Réponse avec citation
 
Page generated in 0,05313 seconds with 9 queries