Waleedh Nihal Posted on Jan 28, 2023 • Edited on Mar 6, 2024 Must know CSS code. #css #webdev #html display:flex; 2.justify-content:center; 3.align-items:center; 4.background-image:url(./whatever-image-you-have); 5.background-repeat:no-repeat; 6.font-weight:bold; 7.background-size:cover; Lets Go! Top comments (2) Subscribe Submit Preview Dismiss Collapse Expand Lens Lens Lens Follow A teenage programmer and guitarist who likes to learn new stuff and make websites! Email lensdorsainvil1@gmail.com Location Wocester, MA Education Self-taught Pronouns He/him Work High School Student Joined Sep 27, 2022 • Jan 28 '23 Dropdown menu Copy link Hide Great examples! You should also add background-size: cover since it makes sure the whole content of the backgroud image is visable. Here's a quick example i made: Collapse Expand Waleedh Nihal Waleedh Nihal Waleedh Nihal Follow Hi 👋 my name is Waleedh Nihal and I love coding , gaming and reading! The only other thing I like more than those three is soccer! Email orixsolutions9@gmail.com Location SriLanka Education Iman Academy Pronouns He/Him Work Developer/Programmer Joined Jan 1, 2023 • Jan 30 '23 Dropdown menu Copy link Hide Ok thx Code of Conduct • Report abuse
Top comments (2)
Great examples! You should also add
background-size: coversince it makes sure the whole content of the backgroud image is visable. Here's a quick example i made:Ok thx