J.Doe
J.Doe

Reputation: 11

Unslider issue with height and width

Using unslider.com responsive slider I got an issue.

Code index.html pastebin.com/5699b3DL

image 1
(source: iv.pl)

image 2
(source: iv.pl)

As you can see image is not centered and its not fit to window size. And its not responsive.

Tried: Setting paddings, margins 0px to img, ul etc Height initial,width %,initial etc

Any ideas how to fix that?

Upvotes: 0

Views: 408

Answers (2)

J.Doe
J.Doe

Reputation: 11

The answer is:

.unslider img { max-width: 100%; margin: 0 auto; }

I have tried this with firefox editor, but only pasting this to CSS file fixed issue, strange.

Upvotes: 1

Rohitink
Rohitink

Reputation: 1174

Are you using on you main site as well with those placehold.it images? Because, it seems to be the cause. When I am replacing those with proper images, with their complete urls(http://LLLL.com/img.jpg). It works fine.

Try that, or provide a jsfiddle.

Upvotes: 0

Related Questions