css content image
DIV:before {
content: url(http://name.png);
}
content css
Margin
_____________________________________________________________________
| Border |
| ____________________________________________ |
| | Padding | |
| | _________________ | |
Margin | Border | Padding | Content | Padding | Border | Margin
| | _________________ | |
| | Padding | |
| |__________________________________________| |
| Border |
|___________________________________________________________________|
Margin
1
css content property
CSS Syntax
content: normal|none|counter|attr|string|open-quote|close-quote|no-open-quote|no-close-quote|url|initial|inherit;
<!DOCTYPE html>
<html>
<head>
<style>
ul {
list-style: none; /* Remove HTML bullets */
padding: 0;
margin: 0;
}
li {
padding-left: 16px;
}
li::before {
content: ">"; /* Insert content that looks like bullets */
padding-right: 8px;
color: blue; /* Or a color you prefer */
}
</style>
</head>
<body>
<h1>The content Property</h1>
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Coca Cola</li>
</ul>
</body>
</html>
how use befor after for image
/* for child */
.custom_img:after {
content: "";
background-color: #2359cf;
height: 400px;
width: 70%;
top: -15px;
right: -6px;
position: absolute;
z-index: 999;
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us