SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast MartyBoi's Avatar
    Join Date
    Dec 2011
    Location
    Saginaw MI
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Convert the ' <div id="pgnav"></div> into HTML5 <nav id="pgnav">...</nav>

    Hi...

    I was hoping someone can help me with an issue I am having converting the <div id="pgnav"></div> into HTML5 <nav id="pgnav">...</nav>....

    I had tried to do it just by deleting the Div Tag within the Comments.PHP and replacing it with a Nav Tag, it didn't work when I checked it out in firebug.... Anyone thing they can help?

    Code:
             <div class="navigation">
    		<div class="next-posts"><?php previous_comments_link() ?></div>
    		<div class="prev-posts"><?php next_comments_link() ?></div>
    	</div>
    Thank you.....

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,107
    Mentioned
    448 Post(s)
    Tagged
    8 Thread(s)
    What do you mean by "it didn't work"? Browsers don't recognize HTML5 tags yet, so you need to use extra CSS and JS to make them work. (Which is another way of saying it's a waste of time to use <nav> yet, and a problem you don't need to be having. )
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Forum Usage: Tips on posting code samples, images and more

    Forrest Gump: "IE is like a box of chocolates: you never know what you're gonna get."


Bookmarks

Posting Permissions

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