Forums

[resolved] Some generated pages aren't centered in IE (4 posts)

  1. starbase009
    Member
    Posted 1 year ago #

    I have recently inherited a blog with a custom/unknown theme and layout. I made many mistakes whilst switching everything over, but I think I have all issues, save one, now finally corrected. My problems have mostly been with static coding. However, I can't figure this last problem out...and it's driving me crazy!! The page is for a local Real Estate company and can be seen at:
    http://www.mcgovernrealty.com

    However, if you go to one of the generated category views, for instance:
    http://www.mcgovernrealty.com/wpr/category/commercial/
    the page is no longer centered as it should be. This issue seems to only happen with Internet Explorer. I have tried both Chrome (Safari) and Firefox and they look fine. If you click through to one of the available listings, then the page is again centered properly.

    I have checked the style.css file, but would be lying if I pretended to completely understand it. I don't know if the problem is in there or possibly another unknown location I haven't thought to check. Thx to all!

    David

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Start by sorting out the validation errors.

  3. starbase009
    Member
    Posted 1 year ago #

    Hi All,

    Well I at least found the problem, but don't know how to fix it. There is a plugin named WP-PageNavi. It seems to require the code:

    <style type="text/css">
    <!--
    #footernav {
    	width: 350px;
    	float: right;
    	text-align: right;
    	padding-top: 5px;
    	padding-bottom: 5px;
    	background-color: #434343;
    }
    -->
    </style>

    At the top of the listings pages to place itself in the correct location and look right. However, and mind you I am just guessing here, it seems to override the 'Style' of the rest of the page somehow in Internet Explorer.

    I know I am getting warmer. I'll post back if I figure it out... Thx

  4. starbase009
    Member
    Posted 1 year ago #

    Thank you for the link esmi. Unfortunately, the error checker didn't like many things that were correct with the page, making it difficult to use. However, it's advice sent me in the right direction.

    The biggest problem was that the blog, combining data from several sources, was putting the style before even the HTML tag. However, with no way to remove the tag from the page source of the second document used, I decided to duplicate the tag in the first instead. While that creates two HTML tags as well as duplicates of other various information, the browser seems to ignore the second set and formats the page as expected. And although the procedure has created a new unwanted formatting side effect, it is much less aggravating than the page alignment problem.

    Thanks again. I am marking this problem as resolved.

Topic Closed

This topic has been closed to new replies.

About this Topic