background image size in body tag
But you cant just use any old image as a background you must choose carefully and, especially make sure that the image is a suitable size.To make this tweak to your site, you will take a look at the source of any page and find the classes for the first tag after the body tag. Personally, I would place that background image on the body element itself.html, bodyheight:100 body background: url(images/bg7.jpg) background-size: cover background-repeat: no-repeat The background-image property specifies the background image of an element.style type"text/css">. body background-color: ffffff background- image: url(image/back.gif) color: 000000 Always define image size. body ( background-color: lightgrey, font-family: "Arial Black", Helvetica, sans-serifPositioning. Sizing. Margin/Padding It simply says that in an HTML document, if a parent element (a tag like body, header. The tag is the open body tag, and is the closed body tag. Every open tag on an HTML page needs to have a closing tag for the page to displayUnanswered Questions. What is the specific size of the image to use for the html website background? Answer this question Flag as Also, for some reason the top and left 0pixel I applied in the body tag seems to dieUnfortunately, you cant specify the size of background image in CSS1 or CSS2. I think that might be possible in CSS3, but Im not sure. hi all, i new to asp.net also web techenology, i have creatd static web page i have set background image for tag, but that image is not at all stretch in screen, i have given width100 also but no use of it, anyonebody background: url(bgimage.jpg) no-repeat background-size: 100 Example 1 Background Size in DIV.In background-image property we have provide image name and its path and background-size is to provide the suitable size for the image which you can also vary as per requirement. Im trying to fit my body background image to the browsers document size.asp.
net C how to programmatically modify the body background image on PageLoad. Im trying to make simple webpage here is my body in HTML code