Game Finder tabular maps layout [Done]

Suggestions that have been archived.

Moderator: Community Team

Post Reply
User avatar
superkarn
Posts: 134
Joined: Mon Jul 17, 2006 10:11 am

Game Finder tabular maps layout [Done]

Post by superkarn »

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.
User avatar
lackattack
Posts: 6097
Joined: Sun Jan 01, 2006 10:34 pm
Location: Montreal, QC

Post by lackattack »

Okay, I tried this and hit a wall ](*,) When the text wraps, it messes up the row.

Here's the code:

Code: Select all

<div style="float:left; width:10em; margin-bottom:5px;">
<a><img /></a>
<input type="checkbox" /><label><div>[map title]/div></label>
</div>
Any ideas?
User avatar
Coleman
Posts: 5402
Joined: Tue Jan 02, 2007 10:36 pm
Gender: Male
Location: Midwest

Post by Coleman »

It must be possible. I see them do this on websites all the time. I'll try to find one and look at the source code.

Don't let the fact I'm looking around stop you from giving an answer or looking yourself, I might not find anything. :?
Warning: You may be reading a really old topic.
User avatar
superkarn
Posts: 134
Joined: Mon Jul 17, 2006 10:11 am

Post by superkarn »

A couple of options:

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.
User avatar
RjBeals
Posts: 2506
Joined: Mon Nov 20, 2006 5:17 pm
Location: South Carolina, USA
Contact:

Post by RjBeals »

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.
User avatar
superkarn
Posts: 134
Joined: Mon Jul 17, 2006 10:11 am

Post by superkarn »

How about this? You can resize the browser, and everything should still line up nicely. (Ignore the footer/head, etc)

http://www.jessikarn.com/cc.html

Check out this css class:

Code: Select all

.xxx 
{
    float: left;
    width: 7em;
    height: 7em;
    padding: 0.5em;
}
User avatar
gimil
Posts: 8599
Joined: Sat Mar 03, 2007 12:42 pm
Gender: Male
Location: United Kingdom (Scotland)

Post by gimil »

USApocalypse isnt playing fairly
What do you know about map making, bitch?
natty_dread wrote:I was wrong
Top Score:2403
User avatar
superkarn
Posts: 134
Joined: Mon Jul 17, 2006 10:11 am

Post by superkarn »

The name's too long to fit next to the checkbox :(
User avatar
RjBeals
Posts: 2506
Joined: Mon Nov 20, 2006 5:17 pm
Location: South Carolina, USA
Contact:

Post by RjBeals »

superkarn wrote:How about this? You can resize the browser, and everything should still line up nicely. (Ignore the footer/head, etc)

http://www.jessikarn.com/cc.html

Check out this css class:

Code: Select all

.xxx 
{
    float: left;
    width: 7em;
    height: 7em;
    padding: 0.5em;
}
I think we have a winner !! Excellent work superkarn.
User avatar
RjBeals
Posts: 2506
Joined: Mon Nov 20, 2006 5:17 pm
Location: South Carolina, USA
Contact:

Post by RjBeals »

superkarn wrote:The name's too long to fit next to the checkbox :(
It works on my browser. I guess the font size could be forced through css. Hit CTRL "-" to reduce font size
User avatar
Optimus Prime
Posts: 9665
Joined: Mon Mar 12, 2007 9:33 pm
Gender: Male

Post by Optimus Prime »

superkarn wrote:How about this? You can resize the browser, and everything should still line up nicely. (Ignore the footer/head, etc)

http://www.jessikarn.com/cc.html

Check out this css class:

Code: Select all

.xxx 
{
    float: left;
    width: 7em;
    height: 7em;
    padding: 0.5em;
}

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.
User avatar
superkarn
Posts: 134
Joined: Mon Jul 17, 2006 10:11 am

Post by superkarn »

I added the center alignment and upped the height by 1, also added a <br /> between each checkbox and map name.

Code: Select all

.xxx 
{
    float: left;
    width: 7em;
    height: 8em;
    padding: 0.5em;
    text-align: center;
}
Here's the new result: http://www.jessikarn.com/cc2.html
User avatar
DiM
Posts: 10415
Joined: Wed Feb 14, 2007 6:20 pm
Gender: Male
Location: making maps for scooby snacks

Post by DiM »

superkarn wrote:I added the center alignment and upped the height by 1, also added a <br /> between each checkbox and map name.

Code: Select all

.xxx 
{
    float: left;
    width: 7em;
    height: 8em;
    padding: 0.5em;
    text-align: center;
}
Here's the new result: http://www.jessikarn.com/cc2.html
it looks great =D>
“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
User avatar
Optimus Prime
Posts: 9665
Joined: Mon Mar 12, 2007 9:33 pm
Gender: Male

Post by Optimus Prime »

The new look is awesome guys. Great work!!
User avatar
lackattack
Posts: 6097
Joined: Sun Jan 01, 2006 10:34 pm
Location: Montreal, QC

Post by lackattack »

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:

Code: Select all

<link rel="stylesheet" href="conquerclub.css?r=1" type="text/css" />
User avatar
superkarn
Posts: 134
Joined: Mon Jul 17, 2006 10:11 am

Post by superkarn »

Awesome! Glad I could be of help :)

And thanks for all your hard work, lack!
User avatar
Night Strike
Posts: 8509
Joined: Wed Apr 18, 2007 2:52 pm
Gender: Male

Post by Night Strike »

Geez, I thought new maps would come online once you updated the sorter page. :cry:
Image
User avatar
RjBeals
Posts: 2506
Joined: Mon Nov 20, 2006 5:17 pm
Location: South Carolina, USA
Contact:

Post by RjBeals »

Very Nice..
User avatar
Wisse
Posts: 4448
Joined: Fri Oct 13, 2006 2:59 pm
Location: The netherlands, gelderland, epe

Post by Wisse »

RjBeals wrote:Very Nice..
indeed
Image Image
User avatar
misterman10
Posts: 9412
Joined: Thu May 24, 2007 1:48 pm
Location: Out on the Pitch.
Contact:

Post by misterman10 »

indeed, very nice
Pleasant Chaps still suck cock.

Yakuza power.
User avatar
muy_thaiguy
Posts: 12730
Joined: Fri May 18, 2007 11:20 am
Gender: Male
Location: Back in Black
Contact:

Post by muy_thaiguy »

Much easier now. :)
"Eh, whatever."
-Anonymous


What, you expected something deep or flashy?
User avatar
Optimus Prime
Posts: 9665
Joined: Mon Mar 12, 2007 9:33 pm
Gender: Male

Post by Optimus Prime »

Night Strike wrote:Geez, I thought new maps would come online once you updated the sorter page. :cry:

There will be like a whole new row when they do come up though. There are 6 that got quenched this week.
User avatar
Incandenza
Posts: 4949
Joined: Thu Oct 19, 2006 5:34 pm
Gender: Male
Location: Playing Eschaton with a bucket of old tennis balls

Post by Incandenza »

It's looking sharp. Nice one, superkarn.
THOTA: dingdingdingdingdingdingBOOM

Te Occidere Possunt Sed Te Edere Non Possunt Nefas Est
Post Reply

Return to “Archived Suggestions”