+ 4
Can we add a .jpg file as background in html in Solo learn.
9 Respuestas
+ 23
You can use only web address your IMG you can't use your local IMG, if you want to your own IMG in solo so you upload on any image hosting websites or use link.. thanks
+ 6
yes, with code below
html {
background: url("your/path/to/image.jpg");
}
+ 5
why not we can add.....cmon......do it....
+ 4
see my code below for make a .jpg file as background of header.
open CSS section, line 39
https://code.sololearn.com/WJLjkgXHRgAI/?ref=app
+ 4
CHECK OUT MY WWE-SPECIAL CODE
+ 2
code I give before is CSS code not HTML.
try to write
<body style="background-image:url('file:///storage/emulated/0/DCIM/Camera/IMG_20170610_112846.jpg'>
+ 1
haha....lol
+ 1
<!DOCTYPE html>
<head>
<link rel="stylesheet" type="text/css" href="/css/style.css" />
</head>
<body>
...
</body>
</html>
style.css
body {
background: url(/img/yourimg.jpg)
[if need releat] repeat: repeat-x [or y]
}
0
JFS Animion plz help as the code didn't work
https://code.sololearn.com/WQNSu7ms7Yli/?ref=app