View Full Version : Resolved Make Hx and UL display on same line

Oct 21st, 2010, 05:50 PM
Hi guys,

How would I make an H and UL element display at the same line?
I tried to float both elements as well as apply display:inline; to one or both of them - no result!

Oct 21st, 2010, 06:15 PM
Set a float and width on the first element and then set an adequate margin(-left/right - depending upon the initial direction of float) on the second element.

Oct 22nd, 2010, 01:33 AM
Thank you! It was the width I missed - I didn't know you were supposed to set it in order to make it work - but it's pretty obvious now you mention it.