Next-Gen App & Browser
Testing Cloud

Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles

Next-Gen App & Browser Testing Cloud

SVG in CSS backgrounds

Last updated on : 2023-03-20

Note:
SVG in CSS backgrounds shows a browser compatibility score of 100. This is a collective score out of 100 to represent browser support of a web technology. The higher this score is, the greater is the browser compatibility. The browser compatibility score is not a 100% reflection for every browser and the web technology support. However, it does give you an estimate on how much you should rely on a particular web technology in terms of browser compatibility.

Overview

With this you can easily turn SVG images into CSS backgrounds, and link them to the HTML you want. This can be useful for adding logos to websites or just making something a little more personal in general.

Code snippets

index.html

Source:index.html Github

copy

Full Screen

...31    </div>32    <div class="swiper-container">33        <div class="swiper-wrapper">34            <div class="swiper-slide">35            	<div class="svg-css"><img src="images/elite.svg"/></div>36                <p class="pic-title">顶尖团队</p>37                <p class="pic-eng">Elite<br>team</p>38			</div>39            <div class="swiper-slide">40                <div class="svg-css"><img src="images/medical.svg"/></div>41                <p class="pic-title">医学专家</p>42                <p class="pic-eng">Medical<br>experts</p>43			</div>44            <div class="swiper-slide">45            	<div class="svg-css"><img src="images/leading.svg" /></div>46                <p class="pic-title">国际领先</p>47                <p class="pic-eng">Leading<br>international</p>48			</div>49            <div class="swiper-slide">50            	<div class="svg-css"><img src="images/bigData.svg" /></div>51                <p class="pic-title">大数据</p>52                <p class="pic-eng">big<br>data</p>53            </div>54            <div class="swiper-slide">55            	<div class="svg-css"><img src="images/ais.svg" /></div>56                <p class="pic-title">人工智能</p>57                <p class="pic-eng">Artificial<br>intelligence</p>58            </div>59            <div class="swiper-slide"> 60            	<div class="svg-css"><img src="images/cloud.svg"/></div>61                <p class="pic-title">云计算</p>62                <p class="pic-eng">Cloud<br>computing</p>63			</div>64            <div class="swiper-slide">65            	<div class="svg-css"><img src="images/acs.svg"/></div>66                <p class="pic-title">实战派</p>67                <p class="pic-eng">Actual<br>combat</p>68			</div>69        </div>70        <!-- Add Scrollbar -->71        <div class="swiper-scrollbar"></div>72    </div>73    <div class="warper">74        <div class="g_two">75            <h2><i>02</i>团队领袖-邓侃CTO</h2>76            <div class="g_deco"></div>77            <p>团队领袖邓侃是互联网领域著名技术专家,师从大数据科学创始人--美国卡内基梅隆大学(CMU)计算机学院院长,Ardrew Moore教授:专业从事机械学习和数据挖掘,曾Oracle主任架构师、百度搜索高级技术总监等职务。</p>78        </div>79        <div class="g_three g_two">...

Full Screen

footer.html

Source:footer.html Github

copy

Full Screen

...18                </li>19            </ul>20            <p class="ftrData">121/3, New Ahir wara, Old faridabad (HR) -121002</p>21            <div class="svg-logo">22                <div class="svg-insta svg-css">23                    <a class="social-tag" target="_blank" href="https://www.instagram.com/praveenkjangir/?hl=en" rel="noopener"><i24                            class="fa-brands fa-instagram"></i></a>25                </div>26                <div class="svg-face svg-css">27                    <a class="social-tag" target="_blank" href="https://www.facebook.com/pk.j.official" rel="noopener"><i28                            class="fa-brands fa-square-facebook"></i></a>29                </div>30                <div class="svg-YT svg-css">31                    <a class="social-tag" target="_blank"32                        href="https://www.youtube.com/channel/UC47yLIHY8EAu8B2vHR7kYUA" rel="noopener"><i33                            class="fa-brands fa-youtube"></i></a>34                </div>35                <div class="svg-twt svg-css">36                    <a class="social-tag" target="_blank" href="https://twitter.com/p_k_official" rel="noopener"><i37                            class="fa-brands fa-twitter"></i></a>38                </div>39                <div class="svg-git svg-css">40                    <a class="social-tag" target="_blank" href="https://github.com/tidancadlab/tidancadlab.github.io" rel="noopener">41                        <i class="fa-brands fa-github"></i></a>42                </div>43                <div class="svg-git svg-css">44                    <a class="social-tag" target="_blank"45                        href="https://api.whatsapp.com/send/?phone=917016947328&text&type=phone_number&app_absent=0" rel="noopener">46                        <i class="fa-brands fa-whatsapp"></i>47                    </a>48                </div>49            </div>50        </div>51        <div class="vr"></div>52    </div>53</body>...

Full Screen

Browser Compatibility

  • SVG in CSS backgrounds on IE is fully supported on 9-11, partially supported on None of the versions, and not supported on 5.5-8 IE versions.
  • SVG in CSS backgrounds on Edge is fully supported on 16-111, partially supported on 12-15, and not supported on below 12 Edge versions.
  • SVG in CSS backgrounds on Firefox is fully supported on 24-113, partially supported on 4-23, and not supported on 2-3 Firefox versions.
  • SVG in CSS backgrounds on Chrome is fully supported on 5-114, partially supported on 4-4, and not supported on below 4 Chrome versions.
  • SVG in CSS backgrounds on Safari is fully supported on 5.1-16.4, partially supported on 3.2-4, and not supported on 3.1-3.1 Safari versions.
  • SVG in CSS backgrounds on Opera is fully supported on 9.5-95, partially supported on None of the versions, and not supported on 9-9 Opera versions.
  • SVG in CSS backgrounds on Safari on iOS is fully supported on 4.2-16.4, partially supported on 3.2-4, and not supported on below 3.2 Safari on iOS versions.
  • SVG in CSS backgrounds on Android Browser is fully supported on 3-111, partially supported on None of the versions, and not supported on 2.1-2.2 Android Browser versions.
  • SVG in CSS backgrounds on Opera Mobile is fully supported on 64-73, partially supported on 10-12, and not supported on below 10 Opera Mobile versions.
  • SVG in CSS backgrounds on Chrome for Android is fully supported on 97-111, partially supported on None of the versions, and not supported on below 97 Chrome for Android versions.
  • SVG in CSS backgrounds on Firefox for Android is fully supported on 95-110, partially supported on None of the versions, and not supported on below 95 Firefox for Android versions.
  • SVG in CSS backgrounds on Samsung Internet is fully supported on 4-20, partially supported on None of the versions, and not supported on below 4 Samsung Internet versions.
100
Hightooltip

Browser Compatibility Score

Chrome IE
High

Browser Support For IE Versions

9-11
Fully
-
Partially
5.5-8
No Support
Chrome Edge
High

Browser Support For Edge Versions

16-111
Fully
12-15
Partially
-
No Support
Chrome Firefox
High

Browser Support For Firefox Versions

24-113
Fully
4-23
Partially
2-3
No Support
Chrome Chrome
High

Browser Support For Chrome Versions

5-114
Fully
4-4
Partially
-
No Support
Chrome Safari
High

Browser Support For Safari Versions

5.1-16.4
Fully
3.2-4
Partially
3.1-3.1
No Support
Chrome Opera
High

Browser Support For Opera Versions

9.5-95
Fully
-
Partially
9-9
No Support
Chrome Safari on iOS
High

Browser Support For Safari on iOS Versions

4.2-16.4
Fully
3.2-4
Partially
-
No Support
Chrome Android Browser
High

Browser Support For Android Browser Versions

3-111
Fully
-
Partially
2.1-2.2
No Support
Chrome Opera Mobile
High

Browser Support For Opera Mobile Versions

64-73
Fully
10-12
Partially
-
No Support
Chrome Chrome for Android
High

Browser Support For Chrome for Android Versions

97-111
Fully
-
Partially
-
No Support
Chrome Firefox for Android
High

Browser Support For Firefox for Android Versions

95-110
Fully
-
Partially
-
No Support
Chrome Samsung Internet
High

Browser Support For Samsung Internet Versions

4-20
Fully
-
Partially
-
No Support

Debug webpages on the go with LT Debug Chrome extension.

Add to Chrome
LT Browser

Test your website on 3000+ browsers

Test your website on 3000+ real browsers and operating systems for mobile and desktop with the LambdaTest cloud. Perform browser compatibility test for SVG in CSS backgrounds and many more web technologies that are a part of your website or web-application.

Last Modified date

2023-03-20

Browser Support for SVG in CSS backgrounds

References


Data sourced from

Debug webpages on the go with LT Debug Chrome extension.

Add to Chrome
LT Browser

Debug Your Mobile Websites Faster With LT Browser!

Harness the power of Chromium-based engine to deliver responsive websites and web apps.

Try for free...
Join

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful

LambdaTestX

We use cookies to give you the best experience. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. Learn More in our Cookies policy, Privacy & Terms of service

Allow Cookie