Use CSS to centre the images in the key
This commit is contained in:
parent
721aaae777
commit
51f5984c1c
2 changed files with 5 additions and 2 deletions
|
@ -497,7 +497,10 @@ h2 {
|
|||
padding-right: 5px;
|
||||
}
|
||||
|
||||
#mapkey .mapkey-table-key {
|
||||
#mapkey .mapkey-table-key img {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
#mapkey .mapkey-table-value {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<% data.each do |entry| %>
|
||||
<% if params[:zoom].to_i >= entry['min_zoom'] && params[:zoom].to_i <= entry['max_zoom'] %>
|
||||
<tr>
|
||||
<td class="mapkey-table-key" align="center">
|
||||
<td class="mapkey-table-key">
|
||||
<%= image_tag "key/#{name}/#{entry['image']}" %>
|
||||
</td>
|
||||
<td class="mapkey-table-value">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue