Fixed Column Widths
-
Hi David,
Another topic on something which bugs me as I can’t figure out how to make the tables produced by MLA have fixed width columns common for different ‘calls’.
The above page has a whole set of tables invoked with a short code like:
[mla_gallery mla_markup=downtonpc my_gallery_title=”Year Ending March 2023 Financial Reports” category_name=pub-doc tag=”finrep+2022″]The style contains:
<style type=’text/css’>
#[+selector+] {
margin: 0;
width: auto;
}
#[+selector+] tbody {
border: 0px solid #ff0000;
padding-top: 0px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 0px;
}
#[+selector+] table {
border: 0px solid #ff0000;
padding-top: 0px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 0px;
}
#[+selector+] .gallery-row td .gallery-icon {
width: 16;
height: 16;
vertical-align: top;
}
#[+selector+] .gallery-row .gallery-icon img {
border: 0px solid #FF0000;
}
#[+selector+] .gallery-row {
float: none;
text-align: left;
width: auto;
padding: 0;
}
#[+selector+] td {
padding: 0.4em;
}
#[+selector+] .header-row {
float: none;
text-align: left;
width: auto;
font-weight: bold;
}
#[+selector+] .gallery-caption {
margin-left: 0;
vertical-align: top;
}
</style>and the Markup has:
ARGUMENTS
post_parent=all
post_mime_type=application/pdf
size=icon
mla_image_attributes=’width=”16″ height=”16″ ‘
columns=1
link=none
orderby=”name?DESC”OPEN
<h3>[+template:([+query:my_gallery_title+])+]</h3>
<table id=”[+selector+]” class=”gallery galleryid-[+id+] gallery-columns-[+columns+] gallery-size-[+size_class+]”>
<tr class=”header-row”><th>Document Title – click to view</th><th>Icon shows File type</th></tr>ROW OPEN
<tr class=”gallery-row”>ITEM
<td>
[+title+]
</td>
<td class=”gallery-icon”>
[+link+]
</td>Where could I set a column to have a consistent width?
Thanks
Paul
The page I need help with: [log in to see the link]
- The topic ‘Fixed Column Widths’ is closed to new replies.