Forums

Image alignments on wordpress pages (5 posts)

  1. earthtodavid
    Member
    Posted 4 years ago #

    Can someone look at my page: http://earthtodavid.com/my-fanlistings/

    and tell me why the 50 X 50 icons are lining up vertically instead of horizontally as they normally would on a regular HMTL page? Do I need to use some extra img code in wordpress to make them align side by side instead of underneath each other?

  2. Michael Fields
    Theme Wrangler
    Posted 4 years ago #

    David,
    This has to do with the way WordPress handles content that you enter via admin. Whenever you press enter in the Content box, WordPress will add a tag. Pressing enter twice between lines of content will put each line into separate paragraphs. Hopefull the following examples will illustrate (code has been shortened):

    Content Box

    <a href=""><img /></a>
    <a href=""><img /></a>
    <a href=""><img /></a>

    Filtered HTML

    <a href=""><img /></a>
    <a href=""><img /></a>
    <a href=""><img /></a>

    Content Box

    <a href=""><img /></a>
    
    <a href=""><img /></a>
    
    <a href=""><img /></a>

    Filtered HTML

    <a href=""><img /></a>
    
    <a href=""><img /></a>
    
    <a href=""><img /></a>

    For your page, I would suggest entering the linked images without pressing enter between each one:

    Content Box
    <a href=""><img /></a> <a href=""><img /></a> <a href=""><img /></a> <a href=""><img /></a> <a href=""><img /></a> <a href=""><img /></a> <a href=""><img /></a> <a href=""><img /></a>

  3. earthtodavid
    Member
    Posted 4 years ago #

    mfields thank you so much for your help. I didn't even think about how wordpress would put the tags in there for how I entered the html for the images. I entered the linked images just as you said and now the images line up just like I wanted them to.

    I am very new to wordpress. I would have never figured this out if you hadn't helped. Thanks!!!

  4. earthtodavid
    Member
    Posted 4 years ago #

    Oh by the way mfields I forgot to mention I linked to you on my wordpress resources page..... http://earthtodavid.com/wordpress-resources/

    as thanks for helping me with this little problem. :-)

  5. Michael Fields
    Theme Wrangler
    Posted 4 years ago #

    David,
    Glad I could help and thanks for the link on your site!!!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.