Quellcode durchsuchen

Fix width of img

> Images in Bootstrap 3 can be made responsive-friendly via the addition
> of the .img-responsive class. This applies max-width: 100%; and
> height: auto; to the image so that it scales nicely to the parent
> element.

http://getbootstrap.com/css/#images
Talha Mansoor vor 10 Jahren
Ursprung
Commit
1437cb7e3b
1 geänderte Dateien mit 4 neuen und 0 gelöschten Zeilen
  1. 4 0
      static/css/elegant.css

+ 4 - 0
static/css/elegant.css

@@ -27,6 +27,10 @@ ul
 {
     padding-left: 0px;
 }
+img {
+    height: auto;
+    max-width: 100%;
+}
 /* site title */
 .site-name {
     font-family: 'Monaco', 'Inconsolata', 'Andale Mono', 'Lucida Console', 'Bitstream Vera Sans Mono', 'Courier New', Courier, Monospace;