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 5 of 5
  1. #1
    New Coder
    Join Date
    Aug 2012
    Posts
    83
    Thanks
    4
    Thanked 0 Times in 0 Posts

    How can I hide this div?

    THere is a div tag I am trying to hide. I know how to hide it with CSS - display:none, but it does not have an id or class, and I can not add one as it is generated by a plugin that I am not comfortable with changing. I am sure there has to be a way to do this with css, but I am not sure how, exactly. If you could help me out that would be great.

    NOTE: it is wrapped in an <a> tag, but there is an image that is as well, and changing the css to hide <a> tags gets rid of the content I want to hide, and the image I want to be visible. Please advise.

    WEBSITE: http://174.120.16.66/~thomasse/meet-the-team/

    I am trying to get rid of the <div> with the link to get directions at the bottom of the info box that pops up when you click on the map marker.

    Thanks

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,688
    Thanks
    22
    Thanked 1,829 Times in 1,813 Posts
    Hello cm123077,
    I don't see an image there, just that link for directions.
    That's easy to target with some variation of this -
    Code:
    .leaflet-popup-pane div div div div a:link {display: none;}
    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

  • #3
    New Coder
    Join Date
    Aug 2012
    Posts
    83
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Excavator View Post
    Hello cm123077,
    I don't see an image there, just that link for directions.
    That's easy to target with some variation of this -
    Code:
    .leaflet-popup-pane div div div div a:link {display: none;}

    That worked well. Thank you so much.

    Any idea how I can make the height of the info box the same size as the content with css? Most of them work fine, but the one at the bottom of the map (pink marker with an ! on it) is too small for the content, but I don't want to make them all big enough to house this content....there will be a lot of extra space on most of them.

    Thanks

  • #4
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,688
    Thanks
    22
    Thanked 1,829 Times in 1,813 Posts
    Quote Originally Posted by cm123077 View Post

    Any idea how I can make the height of the info box the same size as the content with css?
    Instead of specifiying a height, just let the element work on it's own. It will size itself to it's contents if you let it.


    Code:
    .leaflet-popup-content-wrapper {
        /*height: 300px !important;*/
        width: 450px !important;
    }
    .leaflet-popup-content-wrapper {
        /*height: 300px !important;*/
        width: 450px !important;
    }
    .leaflet-popup-content {
        /*height: 400px !important;*/
        width: 400px !important;
    }


    and in your markup you have some inline style that could go away -
    Code:
    <div style="width: 301px; height: 160px;" class="leaflet-popup-content leaflet-popup-scrolled">
    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

  • Users who have thanked Excavator for this post:

    cm123077 (11-18-2012)

  • #5
    New Coder
    Join Date
    Aug 2012
    Posts
    83
    Thanks
    4
    Thanked 0 Times in 0 Posts
    It all works now. Thank you for the help
    Last edited by cm123077; 11-18-2012 at 11:51 PM. Reason: SOLVED SOME OF THIS....CHANGES BELOW


  •  

    Posting Permissions

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