Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

300
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!