• I am currently doing a website just on localhost at present. I have added a div to index.php and wrote up some css, but it is not showing on the page. I checked and have the correct coding in place. Using firebug, the div is not showing up. Any ideas would be appreciated. I checked the backend editor and the code is showing up in index.php.
    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • That sounds a bit strange because the DIV should show if you see it in the code. Did you double check the code. A DIV code looks like this:

    <div>
      <h3>This is a heading</h3>
      <p>This is a paragraph.</p>
    </div>

    I mean, it’s difficult to troubleshoot something without seeing the site.

    Thread Starter vicki31

    (@vicki31)

    The code was <div id=”featured”></div>

    I was going to add an image to div via css.

    But you’re adding an empty div. Not sure what you’re tryin to achieve but you could ad the image code to that div and then style it with CSS.

    Thread Starter vicki31

    (@vicki31)

    I did add an image src but did not work, so tried adding via css, but to no avail.

    Thread Starter vicki31

    (@vicki31)

    I ended up using making a new template page and it worked.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Adding divs to index.php’ is closed to new replies.