Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS My div has the wrong name in Chrome editor. Can’t figure out why.

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #45848
    Clare12345
    Participant

    Hi,

    My div is showing up in the wrong place/has the wrong name.
    On the front page of [creativestorydesign.com](http://creativestorydesign.com/ “”), I have tried to make the area on the right that says “Recent Blog Posts” a div under the image of the 3 devices. In the code that’s where the div is. I am using WordPress. I can’t figure out why the “Recent Blog Posts” div is showing up in the wrong spot, and why the div directly to the right of it has it’s name instead.

    The part that says “Story,” “Layout,” and “Content” has the div id=”recentblogposts”, but “Recent Blog Posts” is supposed to have the div id=”recentblogposts”.

    I want the “Recent Blog Posts” text to be on top of the “tpg-get-posts” div. What should I do?

    Thank you very much ahead of time!!!!

    (The [smoothslider] and [tpg_get_posts] are WP shortcodes and I don’t believe they are part of the problem.)

    [Problem is replicated on CodePen here.](http://codepen.io/anon/pen/vbKGn “”)

    #140448
    ScottMarshall
    Participant

    Im thinking it is because you are not clearfixing your elements.

    #140450
    ScottMarshall
    Participant

    put clear:both on your div blogposts, but besides that try to clean up your elements a little bit.

    #140452
    Clare12345
    Participant

    ScottMarshall you are a lifesaver. I don’t have any idea why that didn’t work any other way.

    And I have no idea how to further clean up my elements. I wanted to have div’s that are links, and that’s the best way I know how to make them. Opening a tag, opening div tag, closing div tag, closing a tag. (My code wouldn’t paste). It doesn’t seem right, but I don’t know what would work better.

    Thanks!

    Clare

    #140453
    ScottMarshall
    Participant

    No problem man glad I could help

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.