briancodex / html-css-website-v1

Created a simple website using HTML, CSS & Javascript
103 stars 183 forks source link

about the tutorial #2

Open kevinboat opened 3 years ago

kevinboat commented 3 years ago

I was following along just fine but when I got to the p1, p2 and header I couldn't seem to get them to show especially in color this is the style.css tell me if I am doing something wrong.

}

/ Hero Section CSS/ .main{ background-color: #141414; }

.main__containner{ display: grid; grid-template-columns: 1fr 1fr; align-items: center; justify-self: center; margin: 0 auto; height: 90vh; background-color: #141414; z-index: 1; width: 100%; max-width: 1300px; padding: 0 50px; }

.main__content h1{ font-size: 4rem; background-color: #ff8177; background-image: linear-gradient(to top, #ff0844 0%, #ffb199 100%); background-size: 100%; -webkit-background-clip: text; -moz-background-clip: text; -webkit-text-fill-color: transparent; -moz-text-fill-color: transparent; }

.main__content h2{ font-size: 4rem; background-color: #ff8177; background-image: linear-gradient(to top, #b721ff 0%, #21d4fd 100%); background-size: 100%; -webkit-background-clip: text; -moz-background-clip: text; -webkit-text-fill-color: transparent; -moz-text-fill-color: transparent; }

.maincontent p{ margin-top: 1 rem; font-size: 2 rem; font-weight: 700; color:#fff; } .mainbtn{ font-size: 1rem; background-image:linear-gradient(to top,#f77062 0%, #fe5196 100%); padding: 14px 32px; Border: none; border-radius: 4px; color: #fff; margin-top: 2rem; cursor: pointer; position: relative; transition: all 0.35rem; outline: none; }

.main__btn a{ position: relative; z-index: 2; color: #fff; text-decoration: none; }

.mainbtn :after{ position: absolute; content: ''; top: 0; left: 0; width: 0; height: 100%; background: #4837ff; transition: all 0.35s; border-radius: 4px; } .mainbtn:hover{ color:#fff; }

.main__btn:hover::after{ width: 100%; }

.main__img--containner{ text-align: center;

}