Thread: Remove <p> tag

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2013
    Posts
    11
    Rep Power
    0

    Remove <p> tag


    A <p> has appeared above and below the content on my homepage, under the navigation menu and above the footer.
    I can't figure out where it came from or how to remove it.
    I've tried;
    Code:
    #mw-content-text p{
    margin: 0px !important;
    padding: 0px !important;}
    #fb-root > p {margin: 0px;
       padding: 0px;}
    div#column-content p{margin: 0px;
       padding: 0px;}
    but nothing seems to be working. I can't see to edit the css.
    You can see the issue on thepetwiki.com
    Thanks
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Oct 2009
    Location
    Nebraska, USA
    Posts
    830
    Rep Power
    275
    to my knowledge, CSS doesn't have the ability to remove TAGs from your HTML markup.

    you could use CSS to hide the content inside that <P> tag, but, not to remove the <P> tag from the HTML.

    javascript[jQuery] can be used to remove the actual <p> tag element from the html markup..but, I'd only use that as a last resort [in case you can't find the reason for the extra <p> tag].
    Last edited by DonR; January 1st, 2014 at 03:19 PM.
  4. #3
  5. Old Fart
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Location
    Chicago
    Posts
    97
    Rep Power
    4
    The p tag needs brackets around it ie <p>

IMN logo majestic logo threadwatch logo seochat tools logo