04.06.2013 Views

Head First HTML with CSS

Head First HTML with CSS

Head First HTML with CSS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Whoa! The image is way too large<br />

Well, the image is right there where it should be, but that is one<br />

large image. Then again, most of the images that come from digital<br />

cameras these days are that large (or larger). Should we just leave<br />

the image like it is and let visitors use the scroll bar? You’re going to<br />

see there are a couple of reasons why that’s a bad idea.<br />

Let’s take a look at the image and the browser and see just how bad<br />

this situation is...<br />

Here’s our browser. It’s about the<br />

size of the typical browser window.<br />

The browser<br />

window is about<br />

800 pixels wide.<br />

The image is 1200 pixels wide.<br />

adding images to your web pages<br />

Watch it!<br />

If the image fits<br />

nicely in your<br />

browser window,<br />

then your browser<br />

may have an “auto<br />

image resize” option<br />

turned on. More on<br />

this in just a sec...<br />

And here’s the “seattle.jpg” image you<br />

added to “index.html.”<br />

Here’s the full size of the image,<br />

which is bigger than the size of the<br />

browser window... much bigger.<br />

We could use the scroll<br />

bars to see the rest of<br />

the image, but wouldn’t<br />

it be better if we could<br />

fit this image into the<br />

browser window?<br />

you are here 181

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!