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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Basic CSS help (Tumblr)

    Is anyone here able to tell me how I display a Div only on the homepage of my Tumblr site, and nowhere else?

    With some Javascript perhaps?

    Many thanks.

  • #2
    Regular Coder
    Join Date
    Jul 2011
    Location
    India
    Posts
    496
    Thanks
    3
    Thanked 57 Times in 56 Posts
    Give your DIV a unique ID and in CSS set its property to display:none;

    and in homepage use following code:

    Code:
    <style type="text/css" >
    #unique_div {
    display:block;
    }
    
    </style>
    Last edited by vikram1vicky; 07-25-2011 at 10:30 AM.


  •  

    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
    •