skip to Main Content

Html – Why are the distances different?

I have these codes in SCSS and HTML (Astro) <header class="mainHeader"> <a href="/"><img src="/images/mainLogo.png" alt="Логотип " id="headerLogo"></a> <div id="links"> <a href="/products">Продукты</a> <a href="/sale">Акции</a> <a href="/contacts">Контакты</a> </div> </header> .mainHeader { background-color: var(--white); display: flex; align-items: center; justify-content: center; #links { margin-left:…

VIEW QUESTION

Css – justify center not in center position

i am creating a simple stepper component in vue. I have been able to achieve desired fucntionality but the alignment goes to left even after applying justify-content: center below is my code https://codesandbox.io/s/awesome-sky-pj9p5x <template> <div class="flex justify-center full-width" style="border: 1px">…

VIEW QUESTION

Html – the right way to do this with BEM+ SASS

I am using the BEM method together with SASS and I have a big doubt. I have this HTML <section class="section1"> <p class="section1__tittle"></p> </section> <section class="section2"> <p class="section2__tittle"></p> ... </section> This CSS : .section1{} .section2{} .section1__tittle, .section2__tittle{ // as both…

VIEW QUESTION
Back To Top
Search