Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-17-2012, 08:02 PM   PM User | #1
cm123077
New Coder

 
Join Date: Aug 2012
Posts: 83
Thanks: 4
Thanked 0 Times in 0 Posts
cm123077 is an unknown quantity at this point
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
cm123077 is offline   Reply With Quote
Old 11-17-2012, 08:23 PM   PM User | #2
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
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
Excavator is offline   Reply With Quote
Old 11-17-2012, 08:38 PM   PM User | #3
cm123077
New Coder

 
Join Date: Aug 2012
Posts: 83
Thanks: 4
Thanked 0 Times in 0 Posts
cm123077 is an unknown quantity at this point
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
cm123077 is offline   Reply With Quote
Old 11-17-2012, 11:38 PM   PM User | #4
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
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
Excavator is offline   Reply With Quote
Users who have thanked Excavator for this post:
cm123077 (11-18-2012)
Old 11-18-2012, 09:57 PM   PM User | #5
cm123077
New Coder

 
Join Date: Aug 2012
Posts: 83
Thanks: 4
Thanked 0 Times in 0 Posts
cm123077 is an unknown quantity at this point
It all works now. Thank you for the help

Last edited by cm123077; 11-18-2012 at 10:51 PM.. Reason: SOLVED SOME OF THIS....CHANGES BELOW
cm123077 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:26 PM.


Advertisement
Log in to turn off these ads.