Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Oct 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    make html5 like div in old browser

    trying to put together some css that will give html5 elements div properties in older broswers.

    .nav { display:block; margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit;vertical-align: baseline;}

    but it helps some elements and not others. Am i missing something to add to the properties?

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,916
    Thanks
    6
    Thanked 1,040 Times in 1,013 Posts
    What are you talking about? Your CSS is addressing all elements with the class “nav”. And new HTML 5 elements are not supported in older browsers like IE 8 and below (if these are among thos you mean) so no CSS will ever have any effect on these elements.

  • #3
    Regular Coder
    Join Date
    Dec 2010
    Posts
    424
    Thanks
    22
    Thanked 56 Times in 56 Posts
    to make html5 things work with all other browsers you need to add some javascript to your file

    document.createElement("article");
    document.createElement("footer");
    document.createElement("header");
    document.createElement("hgroup");
    document.createElement("nav");

    check out this link

    http://net.tutsplus.com/tutorials/ht...ctly-even-ie6/

  • #4
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,737
    Thanks
    22
    Thanked 1,836 Times in 1,820 Posts
    Hello memenotume,
    Have a look here.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •