WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] My page looks horrible in IE! (14 posts)

  1. kameyers
    Member
    Posted 8 years ago #

    I do not know why but my page looks pretty awful in IE, but in Firefox, it looks alright. How can I make it look just as good in IE?

    I am not a programmer, and compared to all of you, I really don't understand much about php. I felt a little hesitant in asking, because my ignorance shows through. Thanks for reading this post.

    http://www.kylemeyers.com/wordpress/

  2. dualravens
    Member
    Posted 8 years ago #

    Looks almost exactly the same to me. The only difference I see is the <<previous entries at the top is in the first post box.

  3. katie1
    Member
    Posted 8 years ago #

    @kameyers - Your site looks lovely in FF, and in IE6 there's only just a tiny bit of margin shift at the footer - hardly noitceable really.

    Just a very minor tweak and all will be good.

  4. jabecker
    Member
    Posted 8 years ago #

    kameyers, you might want to take a look at the articles on http://www.positioniseverything.net. There's a lot of information about why the same page looks different in different browsers, and what you can do to fix it. No PHP required (it's all done with CSS).

  5. Tjdoyle
    Member
    Posted 8 years ago #

    If something not pixel perfect really bugs you, have a look at http://www.positioniseverything.net/. Most of the fixes needed to make brain damaged IE behave are in there.

  6. kameyers
    Member
    Posted 8 years ago #

    Right, I don't mind the margin shift, it's the <previous in the post box. Also the search submit button is under the search bar. In Firefox it's not. This is probably a small problem with an easy solution. Very sorry abou this. Thanks for your replys.

  7. Tjdoyle
    Member
    Posted 8 years ago #

    Hah, looks like I typed too slow. A list Apart is also full of good stuff!

  8. MaineWebworks
    Member
    Posted 8 years ago #

    kameyers-
    Easy fix below for you. IE and FF (mozilla) look at padding and margins differently. To fix the left shift in the footer you'll use an IE Conditional Statement.

    Edit your header.php to include the following <b>immediately</b> above the </head> html tag.


    <!--[if IE]>
    <style type="text/css">
    #footer {
    padding: 0 0 0 1px;
    margin: 0;
    clear: both;
    }
    </style>
    <![endif]-->

    Now edit #footer in style.css (under the structure) to eliminate the 1px right padding and the auto attributes:

    #footer {
    padding: 0;
    margin: 0;
    clear: both;
    }

    That'll do it. At least that is what worked on a Kubrick modified theme I recently started customizing.

  9. kameyers
    Member
    Posted 8 years ago #

    Thanks, I have been very impressed at the generous feedback everyone has shown me. Honestly, I didn't really notice the small glitch at the bottom of the page. I was more interested in the search bar and my first post are different. I have been looking in the above websites for help. I am having a little difficulty in finding my problem. As I said, I'm not a programmer, so looking at all of the technical jargon is somewhat confusing to me. Anyway, even if it doesn't get fixed, I sure appreciate your help.

  10. zakman
    Member
    Posted 8 years ago #

    I've had very similar problems, but perhaps a bit more egregious. I've got a site on which I've set up two identical WordPress installations, one in english, for the US, and the other in Czech. The website is below; click on the appropriate flag below the horse to choose the language.

    http://host48.hrwebservices.net/~bullypu/

    On Firefox (Mac and PC), for the most part, the site looks great. However, on IE (two different machines), pictures are missing from posts and the left sidebar is shifted about 1500 pixels down.

    I can see where perhaps using a conditional statement for IE might address the shift of the left sidebar, but it seems a bit extreme, especially since pictures from posts are missing.

    There have been other anomalies, like the site losing all sense of formatting if I put an extra CR in a post, but I'll save those for another post.

    Any suggestions?

  11. MaineWebworks
    Member
    Posted 8 years ago #

    kameyers - I'm sure the search bar issue has to do with the padding and margins attributes. Same as the images and other IE problems mentioned by zakman. For example, the search submit button is underneath because there isn't enough room for it in the way IE interpets the CSS.

    Basically, IE and Mozilla based browser treat what is called the "box model" differently.

    A quick explanation [maybe] : the box is created by css attributes:

    • width{}
    • padding{}
    • margins{} and,
    • borders{}

    Mozilla (FF) interpets the css1 specifications to produce a semantically correct box. IE interpets it differently. IE takes the box and says any padding and borders in the <div></div> will not be part of the total width.

    So a 760px wide box in Mozilla might be 740px in IE.

    CSS1 specs state that anything within the div will be part of the box, including padding. Here's a site to reference the box model. Be Careful using the information at that site - - CSS HACKS ARE [becoming] OLD SCHOOL.

    No offense meant to anyone's efforts. But a hack can break a site's structure as newer browsers develop and the old ones (IE) begin interpreting the standards correctly. Or, if the standards change...

    IE 7's betas are reported to having the possiblity of breaking a lot of sites relying on CSS Hacks b/c IE7 will recognize more of w3c standards.

    The best method is to use an IE conditional statement that points to a style sheet with any IE needed changes.

    Usually the likely box model fix is replacing padding attributes with margin attributes in the IE written css, or creating classes/ids unique to your ie css that have the corrections needed. Of course it may take a bit of trial and error to get it pixel perfect.

  12. zakman
    Member
    Posted 8 years ago #

    I saw in another thread that others are experiencing the same dropping problem I am on the left sidebar in IE only. Is it possible that this is a bug of some sort, or should I proceed with writing a conditional for IE?

  13. houseofboyd
    Member
    Posted 8 years ago #

    Yeah, I posted another message concerning this problem. Looks fine in Firefox, but the footer is off in IE. I tried the fix mentioned above, but it didn't work, maybe if somebody could give us some clarification as to how to fix this, that would be nice.

  14. zeusdidit
    Member
    Posted 8 years ago #

    .classname{background: #hexColor url(http://whatever.com) center bottom no-repeat;

    When shortcuts for css classes & id's are used it's usually required that they have specifications in a specific order for them render correctly across varied browsers.

    I noticed that in the .footer id used in the inline styles this isn't following the css spec. try modifying it using the above example and please note if this fixes the issue.

    Cheers.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags