Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

302
Visualizações
CSS Rendering in react is different than in static web

I have a react app that based on a static website. Afterwards, I took a little bit different kind of css rendering between them. e.g:

on the static website: enter image description here

<html>
<body>
  ...
  <div class="title">
    <div class="left">
      <h2>What's</h2>
      <h3>Lorem Ipsum?</h3>
    </div>
    <div class="right">
      <div class="white-lines"></div>
    </div>
  </div>
  <p>Lorem ipsum ... </p>
  ...
</body>
</html>

on the react app: enter image description here

import React from "react";
import Header from "../components/Header";
import '../style/index.css'

function Home() {
  return (
    <> 
    ...
    <div className="title">
        <div className="left">
          <h2>What's</h2>
          <h3>Lorem Ipsum ? </h3>
        </div>
        <div className="right">
          <div className="white-lines"></div>
        </div>
     </div>
    <p>Lorem ipsum ... </p>
    ...
    </>
  )
}

I had already make sure that both is using the same CSS style, it looks like (complete css file you can access here):

.about .title {
    display: flex;
    column-gap: 50px;
    padding: 0;
}

When both are inspected with browser devtools, here is the comparison: enter image description here enter image description here

Is there a mistake about importing css or any other?I want to make that in react app will looks like at a static website

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda