After experimenting with different approaches, I'm curious to hear your opinions. Currently, I am utilizing floats to achieve a certain layout, but this method is hindering my ability to use flexbox for styling job postings on the right side. This is the design I am trying to create:
https://i.sstatic.net/YYUS0.jpg
Below is the CSS code I have worked on so far (codepen link provided at the bottom):
.home #slider .item {
height: 560px;
display: flex;
align-items: center;
color: #fff;
font-size: 1rem;
background-attachment: fixed;
background-position: cover;
box-shadow: inset 0 0 0 1000px rgba(170, 0, 0, 0.4);
}
.home #slider .item #sliderTextContainer {
height: 560px;
float: left;
width: 70%;
margin-top: 0;
-webkit-shape-outside: polygon(0 0, 100% 0, 90% 100%, 0 100%);
shape-outside: polygon(0 0, 100% 0, 90% 100%, 0 100%);
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
}
.home #slider .item #sliderText {
width:60%;
align-self: center;
}
.home #slider .item .slide_title {
font-family: Montserrat;
font-size: 2em;
line-height: 1;
text-transform: uppercase;
letter-spacing: 2px;
}
.home #slider .item .slide_title span {
font-size: 2.3em;
line-height: 1;
font-family: Montserrat;
font-weight: 600;
padding-left: 135px;
background-image: url(../../pages/home/img/woosh.png);
background-repeat: no-repeat;
background-position: left center;
}
.home #slider .item .slide_body {
font-size: 1.5em;
font-weight: 100;
}
.home #slider .item .btn-lg {
padding: 12px 30px;
}
.home #slider .item #sliderJobsContainer {
padding-right: 25px;
height: 560px;
background-color: rgb(214,214,214);
clip-path: polygon(69% 0, 100% 0%, 100% 100%, 62% 100%);
}
.home #slider .item #sliderJobs {
color: black;
}
Your thoughts are welcome and appreciated!