How many ways (CSS)

Busy's picture

He has: 6,151 posts

Joined: May 2001

How many ways is there to have two div's side by side?

I know of a couple:
postion of the divs on page and floating
nested
fixed

Anyone know of any other methods?

demonhale's picture

He has: 3,278 posts

Joined: May 2005

directly put in two divs, and absolutely assign them to their pixel point...
Put it inside tables??? snicker...
Maybe Ill think of something else...

dk01's picture

He has: 516 posts

Joined: Mar 2002

absolute
fixed
normal float
negative margin float
nested

I guess those are all just more specific versions of things you have already said so they may not be very much help.

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

Someone should create a web page that shows all of the possibilities and how they work. Might make a good article someday Smiling

dk01's picture

He has: 516 posts

Joined: Mar 2002

I find this wiki page extremely useful when looking at different layout methods. The site is updated by CSS layout front runners Eric Meyer and friends.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.