WordPress.org

Ready to get started?Download WordPress

Forums

P Class in div tags. (8 posts)

  1. alexjohnson
    Member
    Posted 8 years ago #

    Why aren't my p class tags appearing within my div tags in the following html?

    The CSS is not doing anything wonky as far as I can tell.

    <body>
    <div class="container">
    <p class="right"><img src="file:///PowerBook HD/Users/Alex/Sites/Pacific Sports Photography/pacificsportsphotography.com/siteimages/get_flash_player.gif" width="200" height="70" /><br>
    This is us in Germany. Yay.<br>
    <img src="file:///PowerBook HD/Users/Alex/Sites/Pacific Sports Photography/pacificsportsphotography.com/siteimages/get_flash_player.gif" width="200" height="70" /><br>
    <img src="file:///PowerBook HD/Users/Alex/Sites/Pacific Sports Photography/pacificsportsphotography.com/siteimages/get_flash_player.gif" width="200" height="70" />
    Hello.
    </div>
    </body>

  2. eridan
    Member
    Posted 8 years ago #

    you've forgotten to close the p-tag, that might cause some problems..

  3. alexjohnson
    Member
    Posted 8 years ago #

    Fixed that, but it doesn't remedy the problem.

  4. danwillis
    Member
    Posted 8 years ago #

    I'm not sure what DOCTYPE you're using, but you should also use self closing 'br' tags:
    <br />

  5. alexjohnson
    Member
    Posted 8 years ago #

    It's XHTML 1.0. Should they appear together? Or is the code displaying correctly? In other words, how can I get that <p class> to be displayed within the div tag?

  6. danwillis
    Member
    Posted 8 years ago #

    Do you have a link to the page that you're working on?

  7. alexjohnson
    Member
    Posted 8 years ago #

    It's not hosted anywhere yet, but I could email the html and css if you REALLY wanted to help :)

  8. danwillis
    Member
    Posted 8 years ago #

    I'll take a look at it for you. dwillisATparadiseDOTnetDOTnz

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags