Checkout my website here: mckelvey.me:1122 . I'm currently facing issues with the layout of my About Me section. The image in this section is not scaling properly, and I want it to be the full height of #about while occupying 40% of the width on the left side. On the right side, I need the title and paragraph to be centered both horizontally and vertically within the remaining space.
The code I'm using is in jade and stylus, but feel free to respond in html and css as they are very similar:
.about
min-height: 50vh;
background-color: #1F7D5B;
color: #f7f7f7;
h1 {
font-size: 1.5em;
font-weight: 600;
color: #232323;
text-align: center;
padding: .5em 0;
float: right;
width: 100%;
}
p {
font-size: 1em;
font-weight: 100;
max-width: 50em;
text-align: center;
line-height: 150%;
}
img {
float: left;
width: 18em;
height: 18em;
}
.wrap {
float: right;
}
The jade/html code snippet for this section looks like this:
#about
.about
img(src="/img/abstract.jpg")
.wrap
h1 About Me
p Hello, I'm a Designer, Front-end Developer, and Tea Enthusiast. My goal is to create simple, elegant, and responsive websites while enjoying a cup of tea.