Asked By
Kyle Berry
30 points
N/A
Posted on - 10/29/2012
Hello fellows,
Smiles dark background are not working in my webpage. I set smiles dark photos as my background for my html webpage project but when I tried to run and refresh the browser it was not applied. Can you illustrate the proper coding technique on setting a picture as a background in html? I have a .jpg extension.
Regards,
Kyle Berry.
Smilies dark backgrounds are not working in my web page.
Hi Kyle,
I'm giving you sample code just make some changesÂ
Â
<html>
<body
background="C:UsersEgerton AkeenDesktopsmiley.gif">
background-repeat:repeat;
width:200px;
height:200px;">
</body>
</html>
Â
Thanks.
Smilies dark backgrounds are not working in my web page.
It’s depends on your coding style. If you are simply designing a webpage with HTML simple editor then you can simply place a image as a background and it will work fine. You just need to put this code <img src="smiley.gif" alt="Smiley face" height="42" width="42"> and you will be able to put the image to background. For quality reasons try to put a transparent image as a background.
Â
Smith Thompson
Â