vonko1988

CSS_sass_homework_task2.scss

Feb 28th, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SAS 0.51 KB | None | 0 0
  1. body {
  2.  
  3.             /*Making the pictures to be raranged horizontally*/        
  4.             label {
  5.                 display:inline-block;
  6.             }
  7.  
  8.             img {
  9.                 width:12em;
  10.             }
  11.  
  12.             /*This .hidden is the class of the images that will be shown zoomed*/
  13.  
  14.             img.hidden {
  15.                 position:absolute; 
  16.                 width:40em;
  17.                 display:none;
  18.             }
  19.  
  20.             /*We want the radio buttons to be hidden*/
  21.             input {
  22.                 display:none;
  23.  
  24.                 /*When we check the input the zoomed images will show up*/
  25.                 &:checked + img {
  26.                     display:block;
  27.                 }
  28.             }
  29.    
  30. }
Advertisement
Add Comment
Please, Sign In to add comment