Whats the best way to have 2 divs side by side.
I'm guessing I could just float them left and right, my question really is do I need to set a specific width for these or can I just put them both to 50%?
use floats. anything that is
use floats. anything that is floated needs a width. width: 50%; is fine. You should really have more of an idea of what you need before getting into css. You need to establish the project requirements. good planning will save time and frustration.
you can float left or right,
you can float left or right, but you can also add display inline if you are floating both elements to the left for example. But you have to figure out your layout first to determine what you need.
If the elements contain
If the elements contain other block level elements, display: inline won't be enough; you need floats. Floats also don't need to have a width as they'll automatically shrinkwrap to the width of their contents; sometimes this is what you want, other times you'll want to set the width yourself.