1756251095
1756251095 Conquer Club • View topic - Game Finder tabular maps layout [Done]
Conquer Club

Game Finder tabular maps layout [Done]

Suggestions that have been archived.

Moderator: Community Team

Game Finder tabular maps layout [Done]

Postby superkarn on Wed Sep 26, 2007 9:04 am

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

Postby lackattack on Wed Sep 26, 2007 9:45 am

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
Corporal 1st Class lackattack
 
Posts: 6097
Joined: Sun Jan 01, 2006 10:34 pm
Location: Montreal, QC

Postby Coleman on Wed Sep 26, 2007 9:55 am

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
Sergeant Coleman
 
Posts: 5402
Joined: Tue Jan 02, 2007 10:36 pm
Location: Midwest

Postby superkarn on Wed Sep 26, 2007 10:53 am

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

Postby RjBeals on Thu Sep 27, 2007 2:09 pm

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

Postby superkarn on Thu Sep 27, 2007 2:45 pm

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

Postby gimil on Thu Sep 27, 2007 2:50 pm

USApocalypse isnt playing fairly
What do you know about map making, bitch?

natty_dread wrote:I was wrong


Top Score:2403
User avatar
Corporal 1st Class gimil
 
Posts: 8599
Joined: Sat Mar 03, 2007 12:42 pm
Location: United Kingdom (Scotland)

Postby superkarn on Thu Sep 27, 2007 2:56 pm

The name's too long to fit next to the checkbox :(
User avatar
Major superkarn
 
Posts: 134
Joined: Mon Jul 17, 2006 10:11 am

Postby RjBeals on Thu Sep 27, 2007 2:58 pm

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

Postby RjBeals on Thu Sep 27, 2007 2:59 pm

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

Postby Optimus Prime on Thu Sep 27, 2007 3:15 pm

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
Cadet Optimus Prime
 
Posts: 9665
Joined: Mon Mar 12, 2007 9:33 pm

Postby superkarn on Fri Sep 28, 2007 7:58 am

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

Postby DiM on Fri Sep 28, 2007 8:06 am

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
Major DiM
 
Posts: 10415
Joined: Wed Feb 14, 2007 6:20 pm
Location: making maps for scooby snacks

Postby Optimus Prime on Fri Sep 28, 2007 10:41 am

The new look is awesome guys. Great work!!
User avatar
Cadet Optimus Prime
 
Posts: 9665
Joined: Mon Mar 12, 2007 9:33 pm

Postby lackattack on Fri Sep 28, 2007 10:45 am

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
Corporal 1st Class lackattack
 
Posts: 6097
Joined: Sun Jan 01, 2006 10:34 pm
Location: Montreal, QC

Postby superkarn on Fri Sep 28, 2007 11:01 am

Awesome! Glad I could be of help :)

And thanks for all your hard work, lack!
User avatar
Major superkarn
 
Posts: 134
Joined: Mon Jul 17, 2006 10:11 am

Postby Night Strike on Fri Sep 28, 2007 12:51 pm

Geez, I thought new maps would come online once you updated the sorter page. :cry:
Image
User avatar
Major Night Strike
 
Posts: 8512
Joined: Wed Apr 18, 2007 2:52 pm

Postby RjBeals on Fri Sep 28, 2007 1:03 pm

Very Nice..
User avatar
Private RjBeals
 
Posts: 2506
Joined: Mon Nov 20, 2006 5:17 pm
Location: South Carolina, USA

Postby Wisse on Fri Sep 28, 2007 1:34 pm

RjBeals wrote:Very Nice..

indeed
Image Image
User avatar
Sergeant Wisse
 
Posts: 4448
Joined: Fri Oct 13, 2006 2:59 pm
Location: The netherlands, gelderland, epe

Postby misterman10 on Fri Sep 28, 2007 8:40 pm

indeed, very nice
Pleasant Chaps still suck cock.

Yakuza power.
User avatar
Major misterman10
 
Posts: 9412
Joined: Thu May 24, 2007 1:48 pm
Location: Out on the Pitch.

Postby muy_thaiguy on Fri Sep 28, 2007 9:15 pm

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


What, you expected something deep or flashy?
User avatar
Private 1st Class muy_thaiguy
 
Posts: 12746
Joined: Fri May 18, 2007 11:20 am
Location: Back in Black

Postby Optimus Prime on Fri Sep 28, 2007 10:20 pm

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
Cadet Optimus Prime
 
Posts: 9665
Joined: Mon Mar 12, 2007 9:33 pm

Postby Incandenza on Fri Sep 28, 2007 10:21 pm

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

Te Occidere Possunt Sed Te Edere Non Possunt Nefas Est
User avatar
Colonel Incandenza
 
Posts: 4949
Joined: Thu Oct 19, 2006 5:34 pm
Location: Playing Eschaton with a bucket of old tennis balls


Return to Archived Suggestions

Who is online

Users browsing this forum: No registered users