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

121
Views
Text isn't showing when I add another div

I want to show text right side to image and I was successful to made it but when I add another div for border the text doesn't show up, it's like invisible but still taking its space I tried but I can't figure out the problem here you can see the live preview https://jsfiddle.net/Ldu91at2/ And here is the code before adding a main div for border:-

<div  style="display:inline-block; min-width:6.2cm; height:8.8cm; align: center;vertical-align: middle;" >
    
  <img src="https://www.asurascans.com/wp-content/uploads/2020/10/56953.jpg" style="height:100%;">
</div>

<div style="display:inline-block;vertical-align: top;">
  <span id="title">advertishement</span> 
</div>
about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

This is the css style you are using for the .cont div

.cont{
    width:fit-content;
    border: 1px solid #eee;
    padding: 10px;
    color: #fff;
 }

The

color: #fff;

rule makes your text white thus invisible against a white background. Consider removing it or using a different color. The code below will work.

   .cont{
    width:fit-content;
    border: 1px solid #eee;
    padding: 10px;
 }
about 4 years ago · Santiago Gelvez Report
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!