WordPress.org

Ready to get started?Download WordPress

Forums

A div around all posts within a day (6 posts)

  1. spufi
    Member
    Posted 10 years ago #

    How is this done? I know I need a <div> tag after the <h2> tag, but how far down does the </div> tag need to go, and where do I make the actual changes at, the template file, the hacks file?

  2. miahz
    Member
    Posted 9 years ago #

    I've been trying to figure this out, but couldn't get david's suggestion to work. It ended up putting a div around each post, not one div around all the posts in a day. I had already reached that same result by simply putting div tags in the loop. Any other ideas?

  3. Root
    Member
    Posted 9 years ago #

    Thinking laterally would you mind if I asked what you would like to do in the new div ?

  4. Mark (podz)
    Support Maven
    Posted 9 years ago #

    .post {
    border: 1px solid #ff0000;
    }
    That work ?

  5. Root
    Member
    Posted 9 years ago #

    I have been thinking about this in a semantic way. Unless you have some fiendishly sophisticated wizardry in mind I would have thought that with imaginative use of bg color, margins and borders it is very simple to group posts by date without adding a further div to the mark up at all. Just my 2c.

  6. southerngal
    Member
    Posted 9 years ago #

    Old, old code...try this:

    .storyContent {
    font-size:11px;
    font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
    margin: 0px 0px 0px 350px;
    padding:11px;
    color:#000;
    background-color:#ffffff;
    width: 400px;
    border: 1px ridge #000;
    }

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.