How to vertically align html radio buttons with CSS-only in this code? -


i found cool css-only slideshow thumbnails application here. have been trying play around code align thumbnails vertically on right instead of horizontally @ bottom without success...

the big picture needs 640px(x)640px:

    /*time css*/ * {margin: 0; padding: 0;} body {background: #ccc;}  .slider{     width: 640px; /*same width of large image*/     position: relative;     /*instead of height use padding*/     padding-top: 640px; /*that helps bring labels down*/      margin: 100px auto;      /*lets add shadow*/     box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.75); }   /*last thing remaining add transitions*/ .slider>img{     position: absolute;     left: 0; top: 0;     transition: 0.5s; }  .slider input[name='slide_switch'] {     display: none; }  .slider label {     /*lets add spacing thumbnails*/     margin: 18px 0 0 18px;     border: 3px solid #999;      float: left;     cursor: pointer;     transition: 0.5s;      /*default style = low opacity*/     opacity: 0.6; }  .slider label img{     display: block; }  /*time add click effects*/ .slider input[name='slide_switch']:checked+label {     border-color: #666;     opacity: 1; } /*clicking thumbnail should change opacity(style)*/ /*time work on main images*/ .slider input[name='slide_switch'] ~ img {     opacity: 0;     transform: scale(1.1); } /*that hides main images @ 110% size on click images displayed @ normal size complete effect */ .slider input[name='slide_switch']:checked+label+img {     opacity: 1;     transform: scale(1); } 

i have modified few elements in chrome requested view. modify following css, have radio slider on left, image on right. have transform: scale correct size.

.slider {       width: 640px;       position: relative;       /* padding-top: 320px; remove padding top */       margin: 100px auto;       box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.75);     }  .slider input[name='slide_switch'] ~ img {   opacity: 0;   transform: scale(0.5);   margin-left: 120px; /* push image right side.*/ } 

Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -