Click here to Skip to main content
15,881,455 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The header image that I have isn't appearing in my site. I tried with clearfix but nothing. I tried to put width and height at image but nothing seems to work. Please help...

Here is JSFiddle link: https://jsfiddle.net/bogdan9/eyzb9mkf/2/


What I have tried:

I tried with clearfix but nothing. I tried to put width and height at image but nothing seems to work. Please help...
Posted
Updated 30-Oct-20 22:25pm

1 solution

It's because of:
CSS
#JJO{
    float:left;
}

Remove this float:left; and it should appear.

They are at the same location and thus JJO div is hiding up the image.

Alternative, like you tried, used cleartax and image displays:
HTML
<div id="header" class="clearfix">

Add:
CSS
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

Reference: CSS float property[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900