---
title: "Clip Text with Background Image"
description: "Client text with background image using background-clip text in CSS 3"
url: "https://www.geekboots.com/css/clip-text-with-background-image"
markdown_url: "https://www.geekboots.com/css/clip-text-with-background-image/md"
category: "CSS"
author: "Geekboots"
published: "2022-05-24"
updated: "2026-11-27T07:34:17.343Z"
tags: ["css", "css3", "html", "background-clip", "text clip"]
---

# Clip Text with Background Image (CSS)

> Client text with background image using background-clip text in CSS 3

## Explanation



## Source Code

### clip-text-with-bg-img.html

```html
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Clip Text with Background Image</title>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Kanit:wght@700&display=swap" rel="stylesheet"> 
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body { background-color: #383838; }

        section {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            height: 100vh;
        }

        h1 {
            font-family: 'Kanit', sans-serif;
            font-size: 200px;
            font-weight: bold;
            background-image: url('https://cdn.pixabay.com/photo/2015/03/01/05/52/taiwan-654398_960_720.jpg');
            background-position: center;
            background-repeat: no-repeat;
            background-size: contain;
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
            filter: drop-shadow(0 0 3px #fff);
        }
        
    </style>
</head>
<body>
    <section>
        <h1>Geekboots</h1>
    </section>
</body>
</html>
```

## Companion Video

- [Watch on YouTube](https://www.youtube.com/watch?v=GsTbf_Ct0Vc)

## Related Code Examples

- [Understanding CSS Shadows: box-shadow vs drop-shadow](https://www.geekboots.com/css/understanding-css-shadows-box-shadow-vs-drop-shadow) ([Markdown](https://www.geekboots.com/css/understanding-css-shadows-box-shadow-vs-drop-shadow/md))
- [Attractive Mobile Responsive Navigation](https://www.geekboots.com/css/attractive-mobile-responsive-navigation) ([Markdown](https://www.geekboots.com/css/attractive-mobile-responsive-navigation/md))
- [Animated Bell Notification Icon](https://www.geekboots.com/css/animated-bell-notification-icon) ([Markdown](https://www.geekboots.com/css/animated-bell-notification-icon/md))
- [Cool Splash Image Effect in CSS](https://www.geekboots.com/css/cool-splash-image-effect-in-css) ([Markdown](https://www.geekboots.com/css/cool-splash-image-effect-in-css/md))
- [Edit Image with CSS filter](https://www.geekboots.com/css/edit-image-with-css-filter) ([Markdown](https://www.geekboots.com/css/edit-image-with-css-filter/md))
- [Menubar with Top Border Animations](https://www.geekboots.com/css/menubar-with-top-border-animations) ([Markdown](https://www.geekboots.com/css/menubar-with-top-border-animations/md))
- [Link Hover Animation](https://www.geekboots.com/css/link-hover-animation) ([Markdown](https://www.geekboots.com/css/link-hover-animation/md))
- [Menu Bar with Descriptive Menus](https://www.geekboots.com/css/menu-bar-with-descriptive-menus) ([Markdown](https://www.geekboots.com/css/menu-bar-with-descriptive-menus/md))

---
Source: [Geekboots](https://www.geekboots.com/css/clip-text-with-background-image)
