WordPress.org

Ready to get started?Download WordPress

Forums

Widget Table Alignment (4 posts)

  1. Natrepub
    Member
    Posted 5 years ago #

    Hello,

    I have an HTML table inside of one of my widgets. It is the second widget titled "Contributors". My site is http://www.nationalrepublicrat.com/.

    I seem to have something causing the table to have a gap at the top of the widget between the header image and the first contributor.

    I am NOT very knowledgeable when it comes to WordPress. I appreciate any help!

    Thanks!

  2. stvwlf
    Member
    Posted 5 years ago #

    Hi

    there are 3 line breaks <br /> in between "Contributor" and the RSS feed icons. The code is

    <h4>Contributors</h4>
    <div class="textwidget"><center/>
    <br />
    <br />
    <br />

    You will have to figure out where those line breaks are coming from.

  3. Natrepub
    Member
    Posted 5 years ago #

    Thanks for the reply! Well, it seems it is the html table that is causing the line breaks.

    If I just use the code it works, but then the items are too close. How can I separate them?

    I would need a space or two in the code where the word HERE is:

    <a href="http://www.nationalrepublicrat.com/author/republicrat/feed/">
    <img src="http://www.nationalrepublicrat.com/Images/feed.png"></a>
    <a href="http://www.nationalrepublicrat.com/author/republicrat/"><img src="http://www.nationalrepublicrat.com/Images/profile.gif"></a>
    <a href="http://www.nationalrepublicrat.com/author/republicrat/">Republicrat</a>HERE<a href="http://www.nationalrepublicrat.com/author/republicrat/feed/">
    <img src="http://www.nationalrepublicrat.com/Images/feed.png"></a>
    <a href="http://www.nationalrepublicrat.com/author/republicrat/"><img src="http://www.nationalrepublicrat.com/Images/profile.gif"></a>
    <a href="http://www.nationalrepublicrat.com/author/republicrat/">Republicrat</a>

    The site is http://www.nationalrepublicrat.com/

  4. stvwlf
    Member
    Posted 5 years ago #

    Not sure whether you've corrected this to your satisfaction. If you want to insert spaces you can do so by using   which inserts a non-breaking space character. You can use as many of those in a row as you like, and the browser will leave space for them.

Topic Closed

This topic has been closed to new replies.

About this Topic