Trench Posted November 12, 2014 Share Posted November 12, 2014 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 More sharing options...
niche Posted November 12, 2014 Share Posted November 12, 2014 (edited) overflow:hidden; is a possibility when there's overflow. Else, width:x%; to create an overflow then overflow:hidden;. Edited November 12, 2014 by niche Link to comment Share on other sites More sharing options...
Trench Posted November 12, 2014 Author Share Posted November 12, 2014 Forgive me Niche , I'm not a programmer are an amateur of the web, you could give an example with the code I wrote above. The image in the pop-up should be 850x650. Link to comment Share on other sites More sharing options...
niche Posted November 12, 2014 Share Posted November 12, 2014 http://www.w3schools.com/js/js_popup.asp Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now