Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to : Background image should remain static but the webpage on it must scroll down in asp.net

I need to this for my website. Background image should remain static but the webpage on it must scroll down in asp.net

<head runat="server"> <title></title>

   <style type="text/css"> 
    body { background-image: url('~/saibaba.jpg'); 
    background-repeat: no-repeat;
     background-position: center center; 
    background-attachment: fixed; } 
    #form2 { font-weight: 700; }
     </style>
     </head>

this is my code still not working

like image 316
grish Avatar asked Nov 20 '25 22:11

grish


1 Answers

body { background-attachment: fixed; }

like image 121
Dai Avatar answered Nov 22 '25 12:11

Dai



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!