Here’s a simple way to scale images in your responsive web design using CSS, two classes and some html.
I created two classes one named .image-wrapper and the other I named .scale-image.
First, lets create the two classes. We will name the first one .image-wrapper and this will be used as a div.
Next we will make the .scale-image class. This class will scale the image inside the image-wrapper div. You can play around with the max-width percentage based on your design.
Place the image code inside the div of the image wrapper you created and then use the scale-image class to scale the image based on the device or browser size.
<img src="image_name.jpg" class="scale-image" />
That’s it your done. If you want to see the code in use you can check out a clients site I’m doing here.
What’s a good Internet Explorer emulator for Ubuntu Linux?
As you can tell from looking at my profile, I am trying to design a website, but I’m having problems fixing internet explorer bugs. I’m sure there some in safari and opera as well. Is there an emulator I can download for Ubuntu Linux so I can view the page like it would display in Internet Explorer 6?
What I thought the best answer was :
“Good” and “Internet Explorer” are two phrases that I have trouble parsing in the same sentence.
Don’t try to fix the bugs, write your web pages to comply to W3C and HTML/XHTML/CSS standards. Simply tell your IE visitors that if their page looks funny, tough and they should get a real browser, and point them to Firefox and/or Opera.