• Hey guys,

    I’ve been struggling with this for a while and just can’t figure it out.
    In the Main Index Template (index.php) I’m trying to create a small <div> section right before the web posts on my site show up.

    I’ve added text and images to this section (h2/p/and grids), I want it all to be over a background.

    This is what I’ve tried:

    <div class="pad group">
    <div class="entry">

    These are to keep the new elemets in line with the old.

    <div style="background-image: url(https://..........jpg); height: auto; width: auto; border: 1px solid black;">Element in div
    		<div class="grid two-third">
    </div>
    </div>

    I’ve had limited success with this as some of the content displayed the background image, only the first line though. I’m surprised because I was using Dreamweaver to check this and it works fine there.

    I’ve also tried creating a new css rule and adding a background there, thus only needing to target the rule. Yet this makes no difference in the way the html is rendered watsoever. it did not work.

    Any ideas guys? Thanks.

  • The topic ‘New div Section With Background Image’ is closed to new replies.