Use CSS to centre the images in the key

This commit is contained in:
Tom Hughes 2012-08-31 10:27:45 +01:00
parent 721aaae777
commit 51f5984c1c
2 changed files with 5 additions and 2 deletions

View file

@ -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 {

View file

@ -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">