Create a style for the column ("company" in the following examples)
http://opensource.platon.sk/projects/doc.php/phpMyEdit/html/configuration.css.html
Code: |
$opts['fdd']['company'] = array(
// style name can be any alphabetic string, e.g. company or foobar
'css' => array('postfix' => 'company'),
'default' => '',
'input' => '',
'maxlen' => 30,
'name' => 'Company',
'options' => 'ACPVDFL',
'required' => false,
'select' => 'T',
'size|ACP' => 30,
'sqlw' => 'TRIM("$val_as")',
'sort' => true
); |
In List mode, the following 6 HTML tags (more or less) would appear:
Code: |
<a class="pme-header-company"
<input class="pme-filter-company"
<td class="pme-cell-0-company"
<td class="pme-cell-1-company"
<td class="pme-filter-company"
<th class="pme-header-company" |
In other modes (View, Change, Delete) there will exist different and/or new styles. The Web Developer Toolbar for Firefox makes it easier to locate styles on the currently viewed page.
CSS has it's limitations, you can't declare a column width of 25 pixels if the data is wider:
http://www.w3.org/TR/CSS21/propidx.html
Create the CSS you need for a particular style, e.g. if column width is the issue, just style the header TH instead of every single TD tag. If you can control the width in the TH tag, and the results aren't what you expect, then you probably won't gain anything by messing with multiple TD styles.
Code: |
th.pme-header-company{
background-color:orange;
border:1px solid black;
color:white;
font:bold 14px "courier new", verdana,helvetica,arial,sans-serif;
text-align:left;
vertical-align:middle;
width: 350px;
} |
|