Skeleton icon indicating copy to clipboard operation
Skeleton copied to clipboard

How to convert this snippet from 1.0 to 2.0? (responsive images not working in 2.0)

Open xmatic opened this issue 9 years ago • 4 comments

Hi -- the following Skeleton 1.0 code is not working properly with Skeleton 2.0... what changes should I do to it to make it work properly. (It consists of a couple of images which were beautifully responsive with 1.0, but now it's kind of a mess.)

<div class="container">
    <div class="twelve columns">
        <h1 class="remove-bottom" style="margin-top: 40px"> Page Title </h1>
        <h4> Page Sub Title </h4>
        <hr />
    </div>


    <div class='six columns'>

        Some text...

        <img src="images/pic1.jpg" class="scale-with-grid">


        <br><hr/> </div> 

    <div class='six columns'>

        Some more text...

        <img src="images/pic2.jpg" class="scale-with-grid">


        <br><hr/> </div> 

</div><!-- container -->

xmatic avatar Feb 19 '15 00:02 xmatic

Adding the following css to your skeleton.css file should fix the issue

img.scale-with-grid { width:100%; height: auto; }

susedan avatar Mar 02 '15 08:03 susedan

@susedan Thank you, appreciate the reply. I will try this out.

xmatic avatar Mar 02 '15 18:03 xmatic

Should this issue be close ?

itsdarrylnorris avatar Oct 30 '15 06:10 itsdarrylnorris

It should be, but the developer is absent.

gld1982ltd avatar Dec 09 '15 16:12 gld1982ltd