DEV Community

Cover image for How to add image-border to your text.
N Cee Dee
N Cee Dee

Posted on

2 1

How to add image-border to your text.

Below is an Hmtl and css code which you can follow up in adding border to your text. simple and easy.

Image description

Here is the result

Image description

let me leave the css coding here for you.
*{
box-sizing: border-box;
}

body{
margin: 0;
padding: 0;
background-color: aquamarine;
}

.container{
border: 100px solid black;
width: auto;
height: auto;
padding: 15px;
margin: 8px;
border-image: url(./image/border1.jpg) 30% round;
background-repeat: no-repeat;
background-size: contain;
background-color: red;
color: white;
margin-top: 13em;
}

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay