0

How can we change background of weboages?

6th Mar 2017, 4:52 PM
Armaam Bajaj
Armaam Bajaj - avatar
2 Antworten
+ 8
in css: body { background-color: red; background-image: url("link of the image") }
6th Mar 2017, 5:11 PM
The Coding Sloth
The Coding Sloth - avatar
+ 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">
6th Mar 2017, 5:14 PM
देवेंद्र महाजन (Devender)
देवेंद्र महाजन (Devender) - avatar