I'm a Computer Science freshman and I created a website a few weeks ago. Initially, I checked it only on Safari and everything looked fine. However, when I tried it on Google Chrome, the layout appeared completely different. How can I resolve this issue with my webpage? Specifically, I'm using 'vh' for the '.showcase-container', but in Chrome, it seems too small.
Safari View:
Google Chrome View:
CSS
/*ShowCase*/
body{
background :#e6e6e6;
overflow-x: hidden;
}
#showcase{
position: relative;
color:white;
padding: 2rem;
background: #333;
}
#showcase::before{
content:"";
position: absolute;
background: url("../images/about/header-1.png") no-repeat center center/cover;
top:0;
left:0;
width:100%;
height: 100%;
opacity: 0.4;
}
#showcase .showcase-container{
display:grid;
grid-template-columns: repeat(3, 1fr);
justify-content: center;
align-items: center;
height:25vh;
}
#showcase .showcase-content{
z-index:100;
}
.presentation .presentation-container{
padding:5rem;
margin:2rem;
align-items: center;
text-align: center;
}
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
...
</script>
</html>