I Was Browsing Many Other Developer's Portfolio And Came Across A Portfolio Where The Profile Image Has A Background With Some Solid Line. You can Check It Here. Or You Can Visit Site https://brittanychiang.com/.
I Also Wanted This Type Of Background In My Image Too. Please Help Me.
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
.about {
width: 100%;
height: 100vh;
background-color: #161922;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
.about .content img {
height: auto;
width: 300px;
border-radius: 0.5rem;
}
.text {
width: 550px;
max-width: 100%;
padding: 0 10px;
}
.content {
width: 1280px;
max-width: 95%;
margin: 0 auto;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-around;
}
.text h1 {
color: #ffcc74;
font-size: 85px;
margin-bottom: 20px;
text-transform: capitalize;
}
.text h5 {
color: white;
font-size: 25px;
margin-bottom: 25px;
text-transform: capitalize;
letter-spacing: 2px;
}
.text p {
color: #c0c4d4;
font-size: 18px;
line-height: 28px;
letter-spacing: 1px;
margin-bottom: 45px;
}
button {
background-color: #ffcc74;
color: black;
border: 2px solid transparent;
text-decoration: none;
padding: 10px 30px;
border-radius: 30px;
font-size: 17px;
font-weight: bold;
}
button:hover {
transform: scale(1.2);
background-color: transparent;
border: 2px solid #ffcc74;
color: #ffcc74;
transition: .4s;
cursor: pointer;
}
@media screen and (max-width: 1180px) {
.about {
width: 100%;
height: auto;
padding: 70px 0px;
}
}
@media screen and (max-width: 650px) {
.about .content img {
margin-bottom: 35px;
}
.text h1 {
font-size: 60px;
margin-bottom: 25px;
}
}
<section >
<div >
<img src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBwgHBgkIBwgKCgkLDRYPDQwMDRsUFRAWIB0iIiAdHx8kKDQsJCYxJx8fLT0tMTU3Ojo6Iys/RD84QzQ5OjcBCgoKDQwNGg8PGjclHyU3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3N//AABEIA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/w08fej82i7kV/D2m9jE07rjPdXP3q7NnDPHyTRo6nqGGaIbGwAGB0A6Cu0rvmfmcZtX9Xpb1Hg6CUF7F wf9w7r/ANUv3em32nvyTwtjwdRlT9a0pTXLgeQqup4njKooCgADoBUwlqpW6VkEqnuMuRXcUrP5ika17XbauGlI6GoEJxXzNtQHMr83zAGhZVz0Zh/qNTMd65agBWTzZz7sa7iGBgbD0rpsV4u1ASEV9nFeZqNmoDszctRzXAQqM9Rmh5m26 NCTSF7oKPCPP3oAe0vAZpbUnoe0Qf5T1 fxq4tZVx1zSDpt9I8 jzsMtMnI/rsR gNNtk7cp38aAvVlzXpegEkPITXMszpayzD5lQkUDwaz VDS/Ev8k0cQ/g5j f6UDos0kunJJIxZmLEk 9FSylUZuuBRZwpezoeW31DmzHqhHo1upH6V7FLewk/FCGaMD5oVKt/tOfsay/UuKNRuLy6aSeVYj3RFFJyBQG2wfz8apU1XUY37SK9uI2znCSsAPvUdU3OO5jmiWSJ1dG6Mp2NRyTYrNeDuJr7t3tbnlmR2DZOzczOFJ aep5GGRVS9hPL24wuzYquutXttOlE93IERkCgnzJJ/Sg9YuXjhYjypZ15fjpbJJSeXsC2PM5A/nTD//2Q==" alt="">
<!-- Image Profile -->
<div >
<h1>About Me</h1>
<h5>Web Developer</h5>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid molestiae iste accusantium rerum magnam reprehenderit possimus voluptatem fugiat, fugit recusandae, animi ipsum. Esse, similique! Consequatur delectus vel ab eos eveniet?</p>
<button>Hire Me</button>
</div>
</div>
</section>
Please Help Me To DO So!!!!
CodePudding user response:
How about something like this? Box shadows instead of borders.
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
.about {
width: 100%;
height: 100vh;
background-color: #161922;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
.about .content img {
height: auto;
width: 300px;
border-radius: 0.5rem;
}
.text {
width: 550px;
max-width: 100%;
padding: 0 10px;
}
.content {
width: 1280px;
max-width: 95%;
margin: 0 auto;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-around;
}
.text h1 {
color: #ffcc74;
font-size: 85px;
margin-bottom: 20px;
text-transform: capitalize;
}
.text h5 {
color: white;
font-size: 25px;
margin-bottom: 25px;
text-transform: capitalize;
letter-spacing: 2px;
}
.text p {
color: #c0c4d4;
font-size: 18px;
line-height: 28px;
letter-spacing: 1px;
margin-bottom: 45px;
}
button {
background-color: #ffcc74;
color: black;
border: 2px solid transparent;
text-decoration: none;
padding: 10px 30px;
border-radius: 30px;
font-size: 17px;
font-weight: bold;
}
button:hover {
transform: scale(1.2);
background-color: transparent;
border: 2px solid #ffcc74;
color: #ffcc74;
transition: .4s;
cursor: pointer;
}
@media screen and (max-width: 1180px) {
.about {
width: 100%;
height: auto;
padding: 70px 0px;
}
}
@media screen and (max-width: 650px) {
.about .content img {
margin-bottom: 35px;
}
.text h1 {
font-size: 60px;
margin-bottom: 25px;
}
}
img {
box-shadow: 30px 30px 0 -10px #161922, 30px 30px 0 0 cyan;
}
<section >
<div >
<img src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBwgHBgkIBwgKCgkLDRYPDQwMDRsUFRAWIB0iIiAdHx8kKDQsJCYxJx8fLT0tMTU3Ojo6Iys/RD84QzQ5OjcBCgoKDQwNGg8PGjclHyU3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3N//AABEIAI0AXgMBIgACEQEDEQH/xAAbAAACAwEBAQAAAAAAAAAAAAAEBgMFBwIBAP/EADsQAAIBAwIDBgQDBAsBAAAAAAECAwAEEQUhBhIxEyJBUWFxFDKBoZGxwSNSctEVFiRCQ2KCkrLh8Af/xAAYAQADAQEAAAAAAAAAAAAAAAAAAQIEA//EAB4RAQEBAQEBAQADAQAAAAAAAAABAhExIRIyQVED/9oADAMBAAIRAxEAPwBjSOiESvkWplWqS8C10EqRRXQFARcl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 NCTSF7oKPCPP3oAe0vAZpbUnoe0Qf5T1 fxq4tZVx1zSDpt9I8 jzsMtMnI/rsR gNNtk7cp38aAvVlzXpegEkPITXMszpayzD5lQkUDwaz VDS/Ev8k0cQ/g5j f6UDos0kunJJIxZmLEk 9FSylUZuuBRZwpezoeW31DmzHqhHo1upH6V7FLewk/FCGaMD5oVKt/tOfsay/UuKNRuLy6aSeVYj3RFFJyBQG2wfz8apU1XUY37SK9uI2znCSsAPvUdU3OO5jmiWSJ1dG6Mp2NRyTYrNeDuJr7t3tbnlmR2DZOzczOFJ aep5GGRVS9hPL24wuzYquutXttOlE93IERkCgnzJJ/Sg9YuXjhYjypZ15fjpbJJSeXsC2PM5A/nTD//2Q==" alt="">
<!-- Image Profile -->
<div >
<h1>About Me</h1>
<h5>Web Developer</h5>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid molestiae iste accusantium rerum magnam reprehenderit possimus voluptatem fugiat, fugit recusandae, animi ipsum. Esse, similique! Consequatur delectus vel ab eos eveniet?</p>
<button>Hire Me</button>
</div>
</div>
</section>
CodePudding user response:
Something like this?
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
.about {
width: 100%;
height: 100vh;
background-color: #161922;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
.about .content img {
height: auto;
width: 400px;
border-radius: 0.5rem;
display: block; /*DEMO PURPOSE*/
background: #ff0; /*DEMO PURPOSE*/
}
/*added css*/
.about .content .img_wrapper {
border-radius: 0.5rem;
box-shadow: 0 10px 30px -15px navy;
transition: all 0.25s cubic-bezier(0.645,0.045,0.355,1);
display: block;
position: relative;
z-index: 1;
}
.about .content .img_wrapper::before {
top: 0px;
left: 0px;
background-color:navy;
mix-blend-mode: screen;
}
.about .content .img_wrapper::after {
content: "";
display: block;
position: absolute;
width: 100%;
height: 100%;
border-radius: 3px;
transition: all 0.25s cubic-bezier(0.645,0.045,0.355,1);
border: 2px solid green;
top: 20px;
left: 20px;
z-index: -1;
}
.about .content .img_wrapper:hover::after,
.about .content .img_wrapper:focus::after {
top: 10px;
left: 10px;
}
/*added css*/
.text {
width: 550px;
max-width: 100%;
padding: 0 10px;
}
.content {
width: 1280px;
max-width: 95%;
margin: 0 auto;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-around;
}
.text h1 {
color: #ffcc74;
font-size: 85px;
margin-bottom: 20px;
text-transform: capitalize;
}
.text h5 {
color: white;
font-size: 25px;
margin-bottom: 25px;
text-transform: capitalize;
letter-spacing: 2px;
}
.text p {
color: #c0c4d4;
font-size: 18px;
line-height: 28px;
letter-spacing: 1px;
margin-bottom: 45px;
}
button {
background-color: #ffcc74;
color: black;
border: 2px solid transparent;
text-decoration: none;
padding: 10px 30px;
border-radius: 30px;
font-size: 17px;
font-weight: bold;
}
button:hover {
transform: scale(1.2);
background-color: transparent;
border: 2px solid #ffcc74;
color: #ffcc74;
transition: .4s;
cursor: pointer;
}
@media screen and (max-width: 1180px) {
.about {
width: 100%;
height: auto;
padding: 70px 0px;
}
}
@media screen and (max-width: 650px) {
.about .content img {
margin-bottom: 35px;
}
.text h1 {
font-size: 60px;
margin-bottom: 25px;
}
}
<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">
<link rel="stylesheet" href="./public/css/about.css">
<title>Document</title>
</head>
<body>
<section >
<div >
<div class='img_wrapper'> <!--added-->
<img src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBwgHBgkIBwgKCgkLDRYPDQwMDRsUFRAWIB0iIiAdHx8kKDQsJCYxJx8fLT0tMTU3Ojo6Iys/RD84QzQ5OjcBCgoKDQwNGg8PGjclHyU3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3N//AABEIAI0AXgMBIgACEQEDEQH/xAAbAAACAwEBAQAAAAAAAAAAAA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bGwAGB0A6Cu0rvmfmcZtX9Xpb1Hg6CUF7F wf9w7r/ANUv3em32nvyTwtjwdRlT9a0pTXLgeQqup4njKooCgADoBUwlqpW6VkEqnuMuRXcUrP5ika17XbauGlI6GoEJxXzNtQHMr83zAGhZVz0Zh/qNTMd65agBWTzZz7sa7iGBgbD0rpsV4u1ASEV9nFeZqNmoDszctRzXAQqM9Rmh5m26 NCTSF7oKPCPP3oAe0vAZpbUnoe0Qf5T1 fxq4tZVx1zSDpt9I8 jzsMtMnI/rsR gNNtk7cp38aAvVlzXpegEkPITXMszpayzD5lQkUDwaz VDS/Ev8k0cQ/g5j f6UDos0kunJJIxZmLEk 9FSylUZuuBRZwpezoeW31DmzHqhHo1upH6V7FLewk/FCGaMD5oVKt/tOfsay/UuKNRuLy6aSeVYj3RFFJyBQG2wfz8apU1XUY37SK9uI2znCSsAPvUdU3OO5jmiWSJ1dG6Mp2NRyTYrNeDuJr7t3tbnlmR2DZOzczOFJ aep5GGRVS9hPL24wuzYquutXttOlE93IERkCgnzJJ/Sg9YuXjhYjypZ15fjpbJJSeXsC2PM5A/nTD//2Q==" alt="">
<!-- Image Profile -->
</div> <!--added-->
<div >
<h1>About Me</h1>
<h5>Web Developer</h5>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid molestiae iste accusantium rerum
magnam reprehenderit possimus voluptatem fugiat, fugit recusandae, animi ipsum. Esse, similique!
Consequatur delectus vel ab eos eveniet?</p>
<button>Hire Me</button>
</div>
</div>
</section>
</body>
</html>
Play with the values until you're happy...
CodePudding user response:
This is a working example of your requirement
img,
.border {
height: 150px;
width: 150px;
}
.container {
position: relative;
}
.border {
border: 5px solid green;
position: absolute;
top: 10px;
left: 10px;
z-index: -1;
}
<div >
<img src="https://doggowner.com/wp-content/uploads/2020/08/brown-dog-names-cover-image.jpg" </img>
<div ></div>
</div>