• alexjohnson

    (@alexjohnson)


    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>

Viewing 7 replies - 1 through 7 (of 7 total)
  • eridan

    (@eridan)

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

    Thread Starter alexjohnson

    (@alexjohnson)

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

    danwillis

    (@danwillis)

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

    Thread Starter alexjohnson

    (@alexjohnson)

    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?

    danwillis

    (@danwillis)

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

    Thread Starter alexjohnson

    (@alexjohnson)

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

    danwillis

    (@danwillis)

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘P Class in div tags.’ is closed to new replies.