Css: -Webkit-Mask-Image

How to add a css file in laravel?

You have to put your assets folder into the public folder because only the things in the public folder are accessible publicly.

Sample Image

And then in the blade.php file use the following syntax to load CSS.

<link rel="stylesheet" href="{{asset('assets/css/style.css')}}">

CSS: How to add a margin to each middle element in a list?

Use gap, e.g.:

ul {
display: flex;
flex-wrap: wrap;
gap: 20px;
}

gap basically puts a gap BETWEEN elements. Hence, no padding/spacing will be added above/below or to the left/right unless there is a neighbor item.

If you only need a gap between columns use column-gap or row-gap if only between rows.

How to add a circular background to a gif using css

Put the image inside a div and it works perfectly.

.img-box {
background-color: #66BFBF;
border-radius: 100%;
width: 150px;
padding: 23px;
}

.code-img {
width: inherit;
}
<div class='img-box'>
<img src="https://media.giphy.com/media/WFZvB7VIXBgiz3oDXE/giphy.gif" class="code-img" alt="Code">
</div>

Link CSS from another folder?

If your current folder is /current/folder/location/index.html, and your .css file is in /current/second/folder/style.css, then use this as an example:

<link rel="stylesheet" type="text/css" href="../../second/folder/style.css">

or alternatively:

<link rel="stylesheet" type="text/css" href="/current/second/folder/style.css">

However, if the second file is in `/current/folder/second/style.css, then use:

<link rel="stylesheet" type="text/css" href="../second/style.css">

Can't put bootstrap Icon into web.css file

Found it. I had to add the font-family

.dropbtn::after{
content: "\f282";
justify-content: flex-end;
font-family: "bootstrap-icons";
}


Related Topics



Leave a reply



Submit