tags:

views:

31

answers:

2

Should i give float to every element or to just need to give to first element ? if i want to set all element horizontally.

element-1-fixed-width   element-2-no-width-defined    element-3-fixed-width   element-4-fixed-width

or i should set float:left to some element and float:right to some element?

A: 

You should give float to all elements if you want them to stack one next to the other ..

You might want to give whitespace:nowrap as well to the elements that have no width defined, to make sure they will not wrap at wrong places .. (if that is required in your case)

Gaby
A: 

Could you explain a bit further your question? What exactly you want to get?

Consider use of display: inline or inline-block instead of floating.

Crozin
i want to align some DIV horizontally. inline-block is not cross browser compatible
metal-gear-solid