HEADER ADS 728X90

How To Add Image Border Using html and css || BY Ascode

css tutorial,css,tutorial,css border,css tutorials,css border image property tutorial,css border radius,border tutorial css,css properties tutorial,html css tutorial,css tutorial in hindi,advanced css tutorial,css border image generator,image gallery tutorial css,css border images,html css image gallery tutorial,css 3 - border images,css border style,css image hover effect,css border image in hindi,css borders,online tutorials,css tutorial,css,css tutorial for beginners,html css tutorial,tutorial,html and css tutorial for beginners,tutorial css,css tutorial ita,html css tutorial ita,html tutorial,html css,css grid,css3 tutorial,tutorial de css,html e css tutorial,html and css tutorial,css tutorial in hindi,css tutorial italiano,complete css tutorial,css beginners tutorial,tutorial css italiano,css for beginners,complete css tutorial in hindi,css crash course, ascode, coding tutorial, how to learn coding easy way to learn coding

Hi dear welcome to Ascode Blog . In this post we are going to learn how to add image border using html and css. First Creat A index.html file Copy This HTML CODE and pest it one your code editor. 2ndly creat style.css file Then Copy The CSS CODE and pest it then open the index.html file with your browser.

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>css image border</title>
</head>
<body>

   <div class="container">
       <div class="title">Ascode - Learn Coding!</div>
       <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Earum, pariatur laboriosam, laborum voluptate cupiditate nam quidem tenetur sequi dolore eaque quo maxime dolorem et porro tempore fugit dicta quos ab molestias id? Rerum, corporis minima beatae, similique aspernatur provident, explicabo nihil exercitationem excepturi recusandae blanditiis quam modi ex hic dolores. Lorem ipsum dolor sit amet consectetur adipisicing elit. Excepturi quibusdam esse alias iste saepe mollitia laudantium quasi reprehenderit ad et similique odit fugiat tenetur accusamus, accusantium dolorem obcaecati velit eveniet iusto, porro id amet numquam doloremque. Sunt rem sequi earum! Voluptates consequatur hic recusandae sed facere necessitatibus iste fugiat quibusdam?</p>
   </div>
   
</body>
</html>

CSS

body{
        position: relative;
        display: flex;
        justify-content: center;
        min-height: 100vh;
        align-items: center;
    }
    .container{
        padding: 5px 10px;
        border-radius: 5px;
        width: 300px;
        border: 10px solid #111;

        /* border-image property */
        border-image-source: url(https://i.pinimg.com/originals/59/59/9a/59599a7d3bc0e59ec1aae1903677494c.jpg);

        border-image-slice: 55;
    }
    .container .title{
        font-size: 1.7rem;
        color: #111;
        font-weight: bold;
        margin: 10px 0;
    }
    .container p{
        text-align: justify;
    }

Youtube Tutorial

FLOW US ON SOCIAL MEDIA

Post a Comment

0 Comments

Join Telegram