Answer the question
In order to leave comments, you need to log in
How to stretch the div to the width of the parent in this case?
The layout looks like this.
So - you need to make styles for "CONTACT" and "SKILLS" so that you can just hang up a class and everything works the same way and the strip after the title is stretched automatically to the width of the entire wrapper.
This is what the code looks like
.profile{
width: 825px;
}
.profile_head{
display: flex;
}
.profile_logo{
width: 148px;
height: 148px;
background-color: #3d6cb0;
border-radius: 50%;
}
.all_left_titles{
font-family: 'Conv_Myriad-Pro-Bold';
font-size: 82px;
color: #3d6cb0;
display: flex;
align-items: center;
text-transform: uppercase;
&:after{
width: 100%;
height: 13px;
background-color: #3d6cb0;
content: '';
}
}
Answer the question
In order to leave comments, you need to log in
I'm afraid there are no psychics here, so that without seeing the layout you can navang something according to styles. Well, set the after pseudo-element to "display: block;", as an option.
It was necessary to set "after" not to the text, but to the whole header. Everything worked
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question