lackattack wrote:Well I did want the maps to wrap, and I don't know what width to specify when people have different resolutions.
I am also considering using a tabular layout to keep maps aligned, but again how do I know how many columns to specify when people have different resolutions?
UPDATE: I changed the code... does it work now in Opera??
You can give a fixed width to each of the div around a map option and maybe float it (give it a class or something). That way they will still wrap (not sure about opera though), and will also line up nicely. If a map name is too long, then the name will just wrap inside that div block.
1 - Assuming that no map names will be super long (no longer than 2 or 3 lines), you can give the div a fixed height.
2 - Keep the name to the right side of the map icon (as it is now), have it v-align to the top. That should (maybe) give you about 2-3 lines worth of text.
Second options will probably run into the same height problem if the names are too long. So maybe you'd still need a fixed height either way.
Or, put the map in its own div, and the radio button in it's own div right next to it. Have a max of 5 maps & 5 map names per row. It works out okay that way on 99% of browsers.
It still looks kind of funky with the names wrapping all the way around underneath the checkboxes. Is there anyway to get them aligned straight after they wrap around? It's just a cosmetic thing mostly.
Oh, and if USApocalypse isn't playing fairly could we make the grid one less wide and add another row, giving more space to the columns? That would give you a bit of wiggle room for future map names if the need ever came up.
“In the beginning God said, the four-dimensional divergence of an antisymmetric, second rank tensor equals zero, and there was light, and it was good. And on the seventh day he rested.”- Michio Kaku
Excellent job superkarn! I put in your solution and I'm very pleased with the result.
By the way, I also learned a trick to avoid making people clear their cache each time the stylesheet changes. You just have to add a revision number to make the browser think it's a different file: