background image not visible
-
Greetings,
I am converting a HTML theme to WordPress and have run into a roadblock which appears to be in my WordPress code. It is a 5 page theme and the 1st Section background image does not display but in a subsequent section a different background-image displays. I have presented the HTML code as well as the CSS code.
I do appreciate your assistance. Thx John K<!-- Initial Section (Page) of a 5 "Page" Theme --> The Caption appears but there is no Background-image or Background-color displayed!! <?php get_header() ; ?> <!-- Start of Landing Page Image --> <div class="landing"> <div class="home-wrap"> <div class="home-inner"> </div> </div> </div> <!-- End of Landing Page Image --> <!-- caption is not a boostrap class but center-block & text-center are --> <div class="caption center-block text-center"> <div class="os-animation" data-animation="bounceInUp" data-delay=".6s"> <h1>Welcome to Nuno</h1> </div> CSS Code Neither the background-image or the background-color display /* !-- ============ Landing Page Image ============ */ .home-inner { /* background-image: url('../img/computers.png'); */ background-color: gray; /*z-index: 5;*/ } /*============ Landing Page Caption ============*/ .caption { width: 100%; max-width: 100%; position: absolute; top: 38%; z-index: 1; } <!-- Subsequent Section (Page) of a 5 "Page" Theme --> Image is present for this section <!-- Start of the Fixed Background Image Dark --> <div class="fixed-background"> <div class="row dark"> /*============ Fixed Background Image Dark ============*/ #fixed { background-image: url('../img/fixed/apple.png'); z-index: -1; /* Insures image stays in the background */ } .dark { background-color: rgba(0, 0, 0, 0.75); padding: 7rem 2rem; text-align: center; z-index: 1000 !important; }
Thank you John K
The page I need help with: [log in to see the link]
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘background image not visible’ is closed to new replies.