How to add background image in div in asp.net with no-repeat.

preview_player
Показать описание

First of all, add a div tag. add a css class to set background image with image URL, fix the dimension of the div tag.

you can use this class. make sure about image URL.

.backimg{
width:70%;
height:70%;
background-repeat:no-repeat;
background-color:red;
background-size:cover;
}

------
This channel covers all the programming tutorial related with .Net- C#, linq, VB, SQL, Android, HTML, CSS, jQuery, Crystal Report and Microsoft Report.
So, Please subscribe and keep in touch.

Visit my page in Facebook
------

More Tags

Рекомендации по теме
Комментарии
Автор

Your tutorial is super. I understand clearly with all attributes and values. specially no-repeat & background-size cover. Thanks

azamchy
Автор

Well explained tutorial. Thanks for sharing 🙂. Big like

aminaali
Автор

I didn't find the web form (default.aspx). How to add it?

river_rawr
visit shbcf.ru