1 reply [Last post]
gidmeister
gidmeister's picture
Offline
Regular
NY
Last seen: 8 years 38 weeks ago
NY
Timezone: GMT-4
Joined: 2011-03-01
Posts: 47
Points: 93

I want to make a orange box which contains radios, checkboxes, and dropdowns (select elements).
I want to give the orange box a fixed width, so that if there are too many elements in a line, they move to the next line in the div.
I gave my div a "max-width", and specified widths for most elements within it.
It works OK with radios, and checkhoxes, but "select" elements (dropdown lists), seem to break it in both chrome and IE.
I put the example at:
http://rateforsuccess.com/askcss.htm

Thanks.

gidmeister
gidmeister's picture
Offline
Regular
NY
Last seen: 8 years 38 weeks ago
NY
Timezone: GMT-4
Joined: 2011-03-01
Posts: 47
Points: 93

I found that if I put a BR

I found that if I put a BR with style of clear='both' before the dropdowns, the css works. However, I should not have to do that. I should be able to have radios on the same line as dropdown, or checkboxes on the same line. Anyway, it solves my problem for now.