southbeach
Programmer
I am trying to display a grid of rows and columns and get something like:
+-------------+ +-------------+ +-------------+ +-------------+ +-------------+
| | | | | | | | | |
| | | | | | | | | |
+-------------+ +-------------+ +-------------+ +-------------+ +-------------+
Each box is a menu key with text and optionally a background image. I got the grid to display five across and twelve rows down.
What I am having a problem with is display "text footnote" under each box without loosing the grid look. I have tried a number of DIV combination and I end up breaking the grid and instead of five across, I end up with one across and about who knows how many down ...
What am I doing wrong?
--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.
+-------------+ +-------------+ +-------------+ +-------------+ +-------------+
| | | | | | | | | |
| | | | | | | | | |
+-------------+ +-------------+ +-------------+ +-------------+ +-------------+
Each box is a menu key with text and optionally a background image. I got the grid to display five across and twelve rows down.
What I am having a problem with is display "text footnote" under each box without loosing the grid look. I have tried a number of DIV combination and I end up breaking the grid and instead of five across, I end up with one across and about who knows how many down ...
What am I doing wrong?
Code:
<div onClick="document.getElementById(\'menuItemEditPane\').innerHTML=\'\'; control(\'POSEDITMENUITEM\',\''.$val.':'.$c.':'.$r.'\');" class="menuitems" id="item'.$c.$r.'">
<div class="menulistText" style="background-size:80px 43px; background-image: url(\'images/icons/'.$icon.'\');">
<p>'
.$text.
'</p>
</div>
</div>
.menuitems {
/* This layer is needed to show the individual menu items and have a perfectly or close to centered display within the buttons */
float: left;
width: 80px;
height: 43px;
border: 1px ridge white;
margin-top: 4px;
margin-left: 4px;
position: relative;
color: #FFFFFF;
}
.menulistText {
/* Needed to help center text within menu keys */
position: absolute;
left: 0px;
top: 0px;
display: table;
height: 40px;
width: 80px;
word-break: break-all;
}
.menulistText p {
/* Needed to help center text within menu keys */
display: table-cell;
vertical-align: middle;
text-align: center;
color: #000000;
font-size: 80%;
}
--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.