[nycphp-talk] [OT] Yet another CSS Question
Adrian Noland
anoland at indigente.net
Sun Mar 4 09:46:01 EST 2007
On 3/2/07, Kenneth Downs <ken at secdat.com> wrote:
> I'd like to have two links on a page. They should be on the same line
> together, one flush left, the other flush right. The TABLE method is
> just to have two cells, but of course we don't want to do that.
>
> What I tried was putting two divs, one after the other. The 2nd one was
> relative positioned with its height at -1em. This did not work on IE 6,
> and as I am using a downloaded template, as I twiddled I quickly
> realized I was going to make it a lot worse before it ever got better.
DIVs are block elements, which have an implied <br /> in them.
Consider using SPANs, which are inline elements which don't have an
implied BR, for things that are side by side.
More information about the talk
mailing list