How is picture displayed in background in a HTML?

Questions by Robert   answers by Robert

Showing Answers 1 - 12 of 12 Answers

psuresh1982

  • Oct 24th, 2007
 


Suppose if you want to repeat image to the length(height) of the page then you need to use the style tag. It looks like the following.

style="background-image:url(image path); background-repeat:repeat-y;" 

Suppose if you want to repeat image to the width(height) of the page then use the following

style="background-image:url(image path); background-repeat:repeat-x;"

Suppose if you dont want to repeat the image then use the following

style="background-image:url(image path); background-repeat:no-repeat;"

Finally if you dont want to move the background image for the scrolling time(It means if you scroll down the page then the content only moving)then use the following

bgproperties="fixed"

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions