LonePaladin:
DarkLightHitomi:
How can you set how wide the browser is set for? I haven't seen any way to do so.
Resize the window. Or have your display set to that resolution.
I'm just wanting to know what would be the expected result if a fixed-width Easy Table exceeded the browser's available space. Would it be shrunk to fit, or would the window gain a horizontal scroll bar?
Preview the code of the "working example" I posted above.
It broke the forum by making everyone scroll and I got modded for it.
But that does exactly what happens. It's an extreme example, I would never create a table that wide, in fact I want to specify a table that is only 600px wide, which would only force horizontal scroll in the smallest of situations. But the point it, I want to be able to create a fixed width table.
I can do this with normal tables, but not with easy tables.
If it's a case of code implementation, then I have a suggestion...
Currently a tables width is specified by the first row ending with
|xxx%, where
xxx is a value between 1 and 100.
To implement fixed widths, can I suggest that the first row end in
|"xxx", where the
xxx in this case refer to the size in pixels.
This could also be included in the column widths as well, but personally I am happy with percentage column widths, they're unlikely to change of the whole table has a fixed width.
To give you an idea, this is what I can achieve, and want to achieve, with the html style table code:
<small>
<table width="600">
<tr>
<th colspan="4">Basic Information</th>
</tr>
<tr>
<td width=25%><b>Character Name</b></td>
<td width=25%>Buran Bo</td>
<td width=25%><b>Height</b></td>
<td width=25%>6'5"</td>
</tr>
<tr>
<td><b>Player Name</b></td>
<td>Jonathan Bond</td>
<td><b>Weight</b></td>
<td>205 lbs</td>
</tr>
<tr>
<td><b>Character Race</b></td>
<td>Genasi (Air)</td>
<td><b>Eyes</b></td>
<td>Dark</td>
</tr>
<tr>
<td><b>Alignment</b></td>
<td>Chaotic Neutral</td>
<td><b>Hair</b></td>
<td>White</td>
</tr>
<tr>
<td><b>Deity</b></td>
<td></td>
<td><b>Size</b></td>
<td>Medium</td>
</tr>
</table>
<table width=600>
<tr>
<th colspan="4">Class, Level & Experience</th>
</tr>
<tr>
<td width=25%><b>Primary Class</b></td>
<td width=25%>Barbarian</td>
<td width=25%><b>Level</b></td>
<td width=25%>4</td>
</tr>
<tr>
<td><b>Multiclass 1</b></td>
<td>-</td>
<td><b>Level</b></td>
<td>-</td>
</tr>
<tr>
<td><b>Experience Points</b></td>
<td>4,100</td>
<td><b>Total Level</b></td>
<td>4</td>
</tr>
<tr>
<td><b>Next Level At</b></td>
<td>6,500</td>
<td><b>Proficiency</b></td>
<td>+2</td>
</tr>
<tr>
<td><b>Max Health</b></td>
<td>38</td>
<td><b>Initiative</b></td>
<td>+1</td>
</tr>
<tr>
<td><b>Current Health</b></td>
<td>31</td>
<td><b>Armour Class</b></td>
<td>13</td>
</tr>
<tr>
<td><b>Passive Perception</b></td>
<td>12</td>
<td><b>Speed</b></td>
<td>30'</td>
</tr>
</table>
</small>
Basic Information |
---|
Character Name | Buran Bo | Height | 6'5" |
Player Name | Jonathan Bond | Weight | 205 lbs |
Character Race | Genasi (Air) | Eyes | Dark |
Alignment | Chaotic Neutral | Hair | White |
Deity | | Size | Medium |
Class, Level & Experience |
---|
Primary Class | Barbarian | Level | 4 |
Multiclass 1 | - | Level | - |
Experience Points | 4,100 | Total Level | 4 |
Next Level At | 6,500 | Proficiency | +2 |
Max Health | 38 | Initiative | +1 |
Current Health | 31 | Armour Class | 13 |
Passive Perception | 12 | Speed | 30' |
And this is what I get using easy tables:
<small>
.|4! Basic Information |100%
.|25%= Character Name. |25% Buran Bo |25%= Height |25% 6'5" |
.|= Player Name | Jonathan Bond |= Weight |205 lbs |
.|= Character Race | Genasi (Air) |= Eyes | Dark |
.|= Alignment | Chaotic Neutral |= Hair | White |
.|= Deity | |= Size | Medium |
.|4! Class, Level & Experience |100%
.|25%= Primary Class |25% Barbarian |25%= Level |25% 4 |
.|= Multiclass 1 | - |= Level | - |
.|= Experience Points | 4,100 |= Total Level | 4 |
.|= Next Level At | 6,500 |= Proficiency | +2 |
.|= Max Health | 38 |= Initiative | +1 |
.|= Current Health | 31 |= Armour Class | 13 |
.|= Passive Perception | 12 |= Speed | 30' |
</small>
Basic Information |
---|
Character Name. | Buran Bo | Height | 6'5" |
---|
Player Name | Jonathan Bond | Weight | lbs |
---|
Character Race | Genasi (Air) | Eyes | Dark |
---|
Alignment | Chaotic Neutral | Hair | White |
---|
Deity | | Size | Medium |
---|
Class, Level & Experience |
---|
Primary Class | Barbarian | Level | 4 |
---|
Multiclass 1 | - | Level | - |
---|
Experience Points | 4,100 | Total Level | 4 |
---|
Next Level At | 6,500 | Proficiency | +2 |
---|
Max Health | 38 | Initiative | +1 |
---|
Current Health | 31 | Armour Class | 13 |
---|
Passive Perception | 12 | Speed | 30' |
---|
As you can see, the code is
much easier to maintain, especially for an ever evolving character sheet. But without being able to specify a fixed width I cannot get the desired result.
This message was last edited by the user at 11:21, Sun 21 Jan 2018.