WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Alignment all over the place (7 posts)

  1. chapmaaj
    Member
    Posted 8 years ago #

    Hello, everyone.

    To briefly summarize, I'm new to WordPress, PHP, CSS. I'm in the process of building my site and things are going okay so far except:

    I'm having serious alignment issues on certain pages: search results, archives, and subscribe.php so far. I'm guessing the culprit is the same for all three, but am unsure of where to start.

    http://www.andyandemily.com is the URL, and any help is greatly appreciated. I can post code if needed. I've struggled to figure this out on my own, including searching these forums, but alas...

  2. Samuel B
    moderator
    Posted 8 years ago #

    Usually it's a tag open in your code. Have you modified the sidebar, footer or header?

    Could also be a plugin conflict. Turn off all of them and turn back on one by one.

  3. chapmaaj
    Member
    Posted 8 years ago #

    Thanks for the quick reply, samboll.

    I deactivated/reactivated all plugins and no dice. I have modified the sidebar, footer, and header, but all of the links in my navigation bar open and display properly? It's just the search results, archives, and subscribe.php that are testing my patience :-)

  4. Samuel B
    moderator
    Posted 8 years ago #

    Hi,
    Viewing your source I see you have an open tag.
    <div id="page">
    This tag is open.

  5. chapmaaj
    Member
    Posted 8 years ago #

    I'm assuming you're referring to header.php, as that's the only place I can locate the "page" div.

    <div id="page">

    <div id="header"
    onclick="location.href='http://www.andyandemily.com';" style="cursor: pointer;">
    <div id="headerimg">
    <div class="description"><?php bloginfo('description'); ?></div>
    </div>
    </div>

    <div id="navbar">
    (navbar links are here)
    </div>
    <hr />

    Where should I close this tag? I've tried different spots, but all of them mess up the format in some form or fashion. Header.php is XHTML compliant.

    Thanks again for the help,

    Andrew

  6. moshu
    Member
    Posted 8 years ago #

    To get an idea how it works - see this visual anatomy. It might be very well that the div is closed in the footer, for example.

  7. chapmaaj
    Member
    Posted 8 years ago #

    samboll, moshu:

    I finally got it! The problem was that I was missing an opening div tag in the sidebar. Thank you both for the help; I wouldn't have known where to start without it! That link was excellent, btw - and bookmarked!

    Andrew

Topic Closed

This topic has been closed to new replies.

About this Topic