HTML help

allstate45

New Member
I have a picture that i want to make into a background but it is smaller then the screen. HOw do you make the picture bigger so that it will fit the screen?
 
Changing the size of an image in HTML is done by using the "height" and "width" attributes of the IMG tag. For example:

<img src="picture.jpg" height="10" width="10">

would be a smaller picture than this:

<img src="picture.jpg" height="100" width="100">

For some more help on images in HTML check out this guide: http://www.w3schools.com/html/html_images.asp
 
just identify your screen size, then from the code above.. adjust it. if your screen is 1024x768. use 1024 for width and 768 for height.

also take into consideration that this will distort your image if the image itself isn't in ratio. so if your original picture is a box shaped, making it strectch rectangularly will distort it. additionally, most people have different resolution settings, so it may look good on your pc, but not on others..
 
Back
Top