I'm currently attempting to replicate this specific layout: Website design
In this design, the red circle is quite wide and extends beyond the edge of the screen. I also plan to place text on top of it, which will serve as my website's logo.
My attempt at recreating it can be found here: https://jsfiddle.net/s0q8Ljr5/1/
#container {
width: 100%;
margin: 0 auto;
padding: 0;
position: relative;
}
#nav-bg {
width: 90vw;
height: 90vw;
margin: 0 auto;
padding: 0;
margin-top: -45vw;
background: red;
border-radius: 50%;
position: absolute;
}
#title {
margin: 0 auto;
text-align: center;
position: absolute;
margin-top: 20px;
}
However, I am encountering some challenges with getting the circle to extend as far as I want while maintaining its centered position. Additionally, the text is not perfectly centered, and I am uncertain about the compatibility of using the "vw" property for width and height across different browsers.
Any assistance or suggestions would be greatly appreciated! Thank you.