WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] <hr> doesn't show any line, why? (6 posts)

  1. passegua
    Member
    Posted 6 years ago #

    I'm trying to add a line at the very end of each post in order to separate the post from the command:
    <?php similar_posts(); ?>

    but wherever I add the html <hr> it doesn't show up.
    I try this:
    <hr />
    <?php similar_posts(); ?>
    no works
    I added <hr> within the post code: no works.
    How could I?

  2. Vince2006
    Member
    Posted 6 years ago #

    Not sure this is what you need but I have used it before:
    http://www.pageresource.com/html/hr2.htm

  3. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    If you're talking about the blog at: http://lnx.sinapsi.org/wordpress/

    Then, in your style.css file, you have this:

    .skip, hr{
    	position: absolute;
    	left: -9999px;
    }

    That's pushing your hr's off the page.

  4. passegua
    Member
    Posted 6 years ago #

    Thanks Otto42
    But now that I understand the reason of the problem, which is the solution? Remove those lines? Or what?
    many thanks

  5. StrangeAttractor
    Member
    Posted 6 years ago #

    Change the code to this:

    .skip {
    	position: absolute;
    	left: -9999px;
    }

    That will leave the .skip class intact (I assuming that's applied to elements that you want hidden), but will let the <hr> appear as it does by default (unless there's another line in your CSS file that does something else to the <hr> tag; I haven't looked at the stylesheet).

    If you want to style the <hr> tag, you can put it in the CSS file on its own:

    hr {
        [colors, width or whatever]
    }

    If you don't know CSS and want to learn, I found the Westciv site very helpful when I was learning CSS. You don't have to purchase the guide, they have all the basics online.

    If you're delving into modifying your own WordPress site, it is well worth your while to learn CSS, since that controls most of the look of your site.

  6. passegua
    Member
    Posted 6 years ago #

    To: StrangeAttractor
    thanks for you suggestions, I'll apply.
    I didn't do that CSS as I hardly know how it works. I suppose those lines are supposed to work with that fluid theme.

Topic Closed

This topic has been closed to new replies.

About this Topic