Template:Navcard: Difference between revisions

Undo
Tag: Manual revert
m CSS test
Line 1: Line 1:
__NOTOC____NOEDITSECTION____NOTITLE__{{#css:
__NOTOC____NOEDITSECTION____NOTITLE__{{#css:
   #link-overlay {
   #link-overlay {
     height: {{{height|180}}}px;
     height: 180px;
     width: {{{width|200}}}px;
     width: 200px;
     border: solid;
     border: solid;
     overflow: hidden;
     overflow: hidden;
Line 9: Line 9:
   #overlay img {
   #overlay img {
     position: absolute;
     position: absolute;
    height: 180px;
    width: 200px;
   }
   }
    
    
Line 25: Line 27:
   #img-container img {
   #img-container img {
     height: 100%;
     height: 100%;
     width: {{{width|200}}}px;
     width: 200px;
     object-fit: cover;
     object-fit: cover;
   }
   }
Line 38: Line 40:
   }
   }
}}
}}
<div id="link-overlay"><div id="overlay">[[File:Invisible-png.png|{{{width|200}}}x{{{height|180}}}px|link={{{link|}}}]]</div><div id="container"><div id="img-container">[[File:Stillwindsclimate.jpg|link=]]</div><div id="title">{{{text|Category}}}</div></div></div>
<div id="link-overlay"><div id="overlay">[[File:Invisible-png.png|link={{{link|}}}]]</div><div id="container"><div id="img-container">[[File:Stillwindsclimate.jpg|link=]]</div><div id="title">{{{text|Category}}}</div></div></div>