Forums

Why won't{ display: block; float: left; }stack wordpress right? maybe the PHP? (3 posts)

  1. evanderson514
    Member
    Posted 1 month ago #

    Hello all,

    For some reason wordpress is not allowing my css code to act properly. I don't know much about php but I feel it may play a part in this problem.

    div#main{
    width: 480px;
    float: left;
    display:block;
    padding:0px;
    margin:0px;
    }

    As you can see here on my homepage, http://castlentertainment.com/ the div#main won't stack on-top of each other so there is no dead space.

    Any help would be very appreciated.

    -E

  2. whooami
    Member
    Posted 1 month ago #

    http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fcastlentertainment.com%2F

    Might want to work on that, while youre at it. ID selectors can be used once, for instance.

  3. esmi
    Member
    Posted 1 month ago #

    You have some errors in your CSS but, basically, you need to get rid of the <div class="clear"/> between each post.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.