#1
  1. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    2,650
    Rep Power
    171

    Why is there display none in source?


    Hi;

    There is a div that contains the stars like this code inside each hotel box
    Code:
    <div class="stars">
    But when I view source it says
    Code:
    <div class="stars" style=" display:none">
    Does anyone know whats going on?

    Thanks
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2011
    Location
    The Pleiades
    Posts
    298
    Rep Power
    8
    I'm guessing you are pulling these <div> etc from a database.

    Are you sure you haven't set an inline style when you loop through your data?

    Regards,

    NM.
  4. #3
  5. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    2,650
    Rep Power
    171
    Originally Posted by Nanomech
    I'm guessing you are pulling these <div> etc from a database.

    Are you sure you haven't set an inline style when you loop through your data?

    Regards,

    NM.
    Hi

    No I am not pulling these from database. There is no inline styling in CSS. I was thinking maybe its cche on my computer!
  6. #4
  7. Old Fart
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Location
    Chicago
    Posts
    106
    Rep Power
    4
    Is there any Javascript on the site. Javascript can change things like that.
  8. #5
  9. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    2,650
    Rep Power
    171
    Originally Posted by richpri
    Is there any Javascript on the site. Javascript can change things like that.
    Fellow; did you see the site at all? Yes there is javascript
  10. #6
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Posts
    14
    Rep Power
    0
    hi dude

    I think so your extracting the function from the database

    Be conscious about the Inline function

IMN logo majestic logo threadwatch logo seochat tools logo