Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

301
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda