• Lo?c Levêque

    (@luisobispo)


    Hello,

    I’m working on firefox, editing css. I do create divs to control the look of my post, text, image, videos. It looks ok on firefox or safari, but when I switch to Explorer, the divs have the padding or margin missing. It seems that explorer is not able to access parts of the css. Possibly (certainly) a mistake in writing the css.

    I’ve chekced with VALIDATOR, and it finds this:

    Error Line 3, Column 5: XML Parsing Error: XML declaration allowed only at the start of the document
    <?xml version=”1.0″ encoding=”UTF-8″?>

    Now, I have one question:
    What the Hell is that?… I have absolutely no idea.

    Would that be part of the problem? or just another one, as if…

    Help(s) very welcome

    Nice day to all

Viewing 9 replies - 1 through 9 (of 9 total)
  • esmi

    (@esmi)

    A link to your site would help.

    Thread Starter Lo?c Levêque

    (@luisobispo)

    https://fmajeure.com/blog/

    the other pages are worse, i apparently cannot put divs in post.

    Or is it a xml thing.

    Any Ideas?

    thanks esmi

    esmi

    (@esmi)

    Try removing <?xml version="1.0" encoding="UTF-8"?> and any blank lines from the top of your theme’s header.php file.

    Thread Starter Lo?c Levêque

    (@luisobispo)

    <?php

    $ua = $_SERVER[‘HTTP_USER_AGENT’];

    if (!(ereg(“Windows”,$ua) && ereg(“MSIE”,$ua)) || ereg(“MSIE 7”,$ua)) {

    echo ‘<?xml version=”1.0″ encoding=”‘ . get_settings(‘blog_charset’) .'”?>’ . “\n”;
    }
    ?>
    <!DOCTYPE html PUBLIC

    etc…

    I suppose I delete everything above<!DOCTYPE …

    Do I?

    Thanks again esmi…

    Thread Starter Lo?c Levêque

    (@luisobispo)

    Ho, well, but that, I suppose, has nothing to do with differences with paddings and margins, between Firefox and explorer, has it?

    Thread Starter Lo?c Levêque

    (@luisobispo)

    https://fmajeure.com/blog/drunkboat

    VALIDATOR:

    Error Line 123, Column 20: document type does not allow element “div” here; missing one of “button”, “map”, “object”, “ins”, “del”, “noscript” start-tag

    <div class=”videos”>

    Error Line 155, Column 4: document type does not allow element “h2” here; missing one of “button”, “map”, “object”, “ins”, “del”, “noscript” start-tag

    <h2>Drunkboat</h2>

    So, if I understand well, I’m not allowed to write codes inside a post. What next…

    But you said to me few days ago to layout with divs in post with css…

    argh

    esmi

    (@esmi)

    that, I suppose, has nothing to do with differences with paddings and margins, between Firefox and explorer, has it

    No. That’s down to:
    – markup validation
    – CSS validation
    – differences between browsers when parsing markup & CSS

    If you want to target IE to fix any CSS issues, consider using conditional comment CSS.

    So, if I understand well, I’m not allowed to write codes inside a post.

    You can add markup to posts providing you stick to using the HTML tab. I do it all of the time. But you have to ensure that you nest your markup tags correctly. The validator snippet you posted above suggests you’re either not using closing tags or you’re trying to nest a block level tag inside an inline tag

    Thread Starter Lo?c Levêque

    (@luisobispo)

    ok, well:

    https://fmajeure.com/blog/windows/

    Error Line 181, Column 32: end tag for “ul” which is not finished
    <ul id=”recentcomments”>

    When I look at the Below is the source input I used for this validation:

    I cannot see anything wrong. Do you?

    I’m lost. big time.

    Thread Starter Lo?c Levêque

    (@luisobispo)

    Error Line 155, Column 4: document type does not allow element “h2” here; missing one of “button”, “map”, “object”, “ins”, “del”, “noscript” start-tag

    <h2>Drunkboat</h2>

    I’m just using the style on the editing panel of the post.

    That is the style in the css.

    Tell me what’s wrong:

    /* post contents */
    .post h2, #single_post h2, .page h2 { font-size:16px; line-height:normal; color:#071425; font-weight:normal; background:#fff;}
    .post h2 a, .post h2 a:visited, #single_post h2 span, .page h2 span { line-height:120%; display:inline; color:#071425; font-weight:bold; background:#fff;}
    .post h2 a:hover { text-decoration:none; color:#071425; }

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘XML Parsing Error and IE ?’ is closed to new replies.