• Resolved goldmember

    (@goldmember)


    wordpress newbie here.

    if you look at my page (https://www.goldcoastchamber.com/wordpress/) in both I.E. and Firefox you’ll notice that in I.E. it’s not centered.

    i’m assuming i create a second style sheet for IE that contains just the css code to center it but:

    1. what is that style code that i apply and what div/element/whatever do i apply it to?
    2. in what php page of my theme, and where in that page, do i tell the page to reference the IE stylesheet if its an I.E. browser?

    please please advise. thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • IE is in quirks mode. Please correct all the errors in your xhtml.

    Peter

    Thread Starter goldmember

    (@goldmember)

    thanks. i’ve been trying to sort out those errors in another thread but getting nowhere.

    any chance you can explain why the validator says “Unable to Determine Parse Mode!” the explanation makes little to no sense to me.

    You have to tell the browser what kind of ‘language’ you’re trying to feed him (her?), and act accordingly.

    For instance, if you’re ‘doing’ xhtml transitional, you have to apply closing tags to all xhtml elements.

    Such a declaration takes place at the very top of each and every page (in case of WordPress that would be in header.php), and could look like this (just replace the relevant of your header with this):

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="https://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">

    EDIT: in your case there’s a statement BEFORE this declaration: a div. This is not allowed in the header.

    Peter

    Thread Starter goldmember

    (@goldmember)

    thanks. i replaced the first two lines of header.php with the code you provided. but should i leave this as the third line: <head profile="https://gmpg.org/xfn/11">???

    either way, when i re-ran the validator, the # of errors remained the same. please advise. thanks!

    You still have markup above the DOCTYPE:

    <div id="outer_wrapper">
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="https://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">

    Remove <div id="outer_wrapper"> and the empty line after it.

    Thread Starter goldmember

    (@goldmember)

    sorry, i’ll close this one.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘i.e. centering help needed’ is closed to new replies.