switching top/bottom position of elements with unknown height

Giganews Newsgroups
Subject: switching top/bottom position of elements with unknown height
Posted by:  TKapler (kapl…@gmail.com)
Date: 25 May 2007

hi, i have two blocks in xhtml, e.g.
#div A
#div B

inside those divs there is an unknown text (for design), so i do not
know the height of any of this divs
The problem is, that i need to show them as
#div B
#div A

so switch their positions.
i tried
#div A float right
#div B float left

but it doesn't help (i can just move the div B on the left hand side
of div A, but not above), position absolute is of course nonsense
(unknown height, and i got a footer below those two divs)

any help would be appreciated, thx

Replies