
- Misc HTML help
-
IA Member
- Rep Power
- 0
HTML help
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?
-
well if your stretch a small photo it will distort the photo... post of the photo? what size is it now and what size do you need it?
and what is the HTML HELP for
you can use scripting to enlarge the photo but it will do what i said... you can always just make the photo repeat in the background w/o having to distort it. or just build your page around the size of the image.
-
width="100%" but depending on how you are doing this and what resolution the picture is, it will distort the image...you could also do absolute formatting, but there are a lot of variables here and you have given us about zero information to start. Here are a few questions you need to answer. What is the size of the pic? What size screen are you trying to match? What code do you have written so far?
Edit...or what he said
-
NO REPEAT (CSS)
[HTML] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
background-image: url(http://forums.importatlanta.com/images/misc/vbulletin3_logo_white.gif);
background-repeat: no-repeat;
}
-->
</style></head>
<body>
</body>
</html>
[/HTML]
REPEAT (CSS)
[HTML] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
background-image: url(http://forums.importatlanta.com/images/misc/vbulletin3_logo_white.gif);
}
-->
</style></head>
<body>
</body>
</html>
[/HTML]
REPEAT
[HTML]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<body background="http://forums.importatlanta.com/images/misc/vbulletin3_logo_white.gif">
</body>
</html>
[/HTML]
IMAGE AT 100%
[HTML] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<body>
<img src="http://forums.importatlanta.com/images/misc/vbulletin3_logo_white.gif" width="100%" height="100%" />
</body>
</html>[/HTML]
Last edited by 4dmin; 08-08-2006 at 12:18 PM.
-
IA Member
- Rep Power
- 0
Thanks. I had to stretch it. it looks alittle distort but it is ok. Is was for my myspace page.

- Misc HTML help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules