0
How can we change background of weboages?
2 Antworten
+ 8
in css:
body {
background-color: red;
background-image: url("link of the image")
}
+ 2
1. define embedded css rule for body tag as follows
<head>
<style type="text/css">
body {
background-image: url ('images/back.jpg')
}
</style >
</head>
or
2. create a css file and define css rule in it as
body {
background-image: url ('images/back.jpg')
}
now link it you Web page using <link> tag under <head> section as below
<head>
<link rel="stylesheet" type="text/css"
href="css/site.css">