Jump to content

Resize image in pop-up


Trench

Recommended Posts

Hello everyone. I have this question for you and I hope someone can suggest a solution.
Should I open an image of a webcam in a pop-up, the problem is that the image opens it in full resolution photo and I would rather resize it to make it fit perfectly in the pop-up.
What you see below is the code I used. What should I add to resize the image inside of the pop-up.
<a title="Titolo" href="http://www.sito.net/webcam/webcam.php" data-lightbox="width:1280;height:800;titlePosition:inside;padding:0"><img width="200" height="120" alt="Titolo" src="http://www.sito.net/webcam/webcam.php"></a>
Thanks
Marco
Link to comment
Share on other sites

overflow:hidden; is a possibility when there's overflow.

 

Else, width:x%; to create an overflow then overflow:hidden;.

Edited by niche
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...