If you want to add a background image instead of a plain color there are some considerations you should make before doing so:
After answering these questions, if you still want to add the background image you will need to specify in the <body> tag which image should be used for the background.
Note: If the image you're using is smaller than the screen, the image will be replicated until it fills the entire screen. If, say you wanted a striped background for your page, you wouldn't have to make a huge image for it. Basically you could just make an image that is two pixels high and one pixel wide. When inserted on the page the two dots will be copied to fill the page - thus making what looks like a full screen striped image. When you choose to use a background image for the page it is always a good idea to specify a background color as well.
The reason is that until the background image is loaded, the background color will be shown. If there is too much difference between the background color and the background image, it will look disturbing once the browser shifts from the background color to the image. Therefore it is a good idea to specify a background color that matches the colors of the image as close as possible. You may have noticed that background images scroll with the page when you use the scroll bar.The background image will scroll when the user scrolls down the page, unless you have set it to be fixed:
By adding the bgproperties="fixed" you force the browser to let the background be fixed even if the user is scrolling down the page. Note: Fixed backgrounds are only supported by MSIE and do not work in Netscape browsers - instead they simply act as normal backgrounds. As mentioned earlier in this section a limited use of colors can add more power to the few colors that are used. The most important tool for adding colors to certain areas of the page rather than the entire background is tables.
visit us at www.iclicksolutions.us
|
Introduction: Heart attacks have long been associated with the elderly population, but recent studies have shown that young adults are also at risk. The incidence of heart attacks in young adults is rising at an alarming rate, and it's a cause for concern. In this blog post, we will discuss the reasons behind heart attacks happening at an early age, the risk factors, and how to prevent them. Why are heart attacks happening at an early age? The reasons for heart attacks in young adults are multifactorial. Lifestyle choices such as an unhealthy diet, lack of exercise, and stress are the primary culprits. Poor lifestyle choices, along with genetic factors, can increase the risk of developing heart disease. Moreover, an increase in obesity and sedentary lifestyles, especially among the younger population, contributes to the rising incidence of heart attacks. Risk factors for heart attacks in young adults: The risk factors for heart attacks in young adults are similar to those in the ...
Comments
Post a Comment