i want to know is there any command to put many colors for html page background or a pic im a beginer plz help me
Back Ground Color
Collapse
X
-
The easiest (that I can think of anyway) would be to make an image with whatever color scheme you want. Then use the image as the background. You can do this via .css by adding something like this into you stylesheet:
#body {
background-image: url(/images/image01.png);
}
Then simply adding the id="body" attribute to your <body> tag:
<body id="body">
As far as making a stylesheet, in a very basic sense, just add the #body code to a page in Notepad. Then name it something like style.css.
That makes it a .css page. then in the top of your html page between the <head> tags add this code:
<style type="text/css" media="all">
@import "style.css" ;
</style>
Make sure in this case that your style sheet is in the same folder as your web page.
I'm sure others could explain it better, and may even know a better way to do it. But that's the quick and dirty method.
Comment