Jump to content

Search the Community

Showing results for tags 'resize image'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 2 results

  1. 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
  2. I have a simple html + css page that has 3 images on it. I'm trying to make the page resize depending on the size of the browser window. Right now, I have the 3 images in a div that is set to a height as a percentage of the surrounding containers, and the images are set to height:100% and width:auto. now, that works fine if you resize the entire window- but if you only change the width, they won't resize of course since the height didn't change, and they end up getting pushed down the page which is really ugly. my first question: is there a good way to make the images resize no matter if you change the height OR width of the browser using just html/css? If not, should I be using jquery and if so can you point me to a good resource? Second question: if it's not possible, how do I at least stop them from getting bumped down a line? I tried making the overflow hidden or scrolled, but they still get bumped, then either cut off your you have to scroll vertically. Here's a link to the live page: http://carissalyn.com/Landing.html (yes I realize the images load slowly I'll compress them before it's live). Let me know if you need any other info. Here's the relevant css (img container is inside fadingtext which is inside body): body,html{height:100%;margin:0; padding:0;} #imgcontainer{height: 100%;width: 90%;display: inline-block;}img {max-height:90%;width: auto;}#fading_text {text-align: center;height: 60%;-webkit-animation: fade-text 20s 1;-moz-animation: fade-text 20s 1;} And here's the relevant html to clarify that there are 3 images: <div id="fading_text"><div id="imgcontainer"><a href="" class="imghover"><img src="images/leaf.jpg" alt="portrait" class="border"></a><a href="" class="imghover"><img src="images/DSC_2280-Edit-Edit-Final.jpg" alt="portrait" class="border"></a><a href="" class="imghover"><img src="images/DSC_2685.jpg" alt="blog" class="border"> </a></div></div>
×
×
  • Create New...