0

I am trying to make images full screen images ( NOT BACKGROUND ) but it is stretching on large screen size.

Is there any way to make it stays the same regardless the screen size?

I know there is a way to make background image full screen by using cover size and width/height 100% but it is possible to do it with images? Inline images?

Check it by zooming out, The picture on slider stretch.

Thank you, Any help will be highly appreciated!

user3801231
  • 43
  • 1
  • 8

2 Answers2

0

Just keep the height empty and set width to 100%. If you need a fixed height use background image but with 'cover' not 100%

http://www.w3schools.com/cssref/css3_pr_background-size.asp

Tomas Randus
  • 2,127
  • 4
  • 29
  • 38
  • I used your method it worked but now the text box goes to right on zoom out. any idea to make it in same area? – user3801231 Jul 03 '14 at 11:25
  • In exact your case use: margin-left: -409px; left: 50%; For the div .orbit-caption This is generally this method: http://stackoverflow.com/questions/1776915/how-to-center-absolute-element-in-div With a negative margin – Tomas Randus Jul 07 '14 at 07:43
0

One way is to place your image in a div of constant size like demonstrated below:

<div style="height:100px; width:100px"><img src="etc/etc.png"></div>
Rai Ammad Khan
  • 1,521
  • 2
  • 14
  • 26