954,598 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Renaming/Removing CSS Classes On One DIV Tage

I am having a problem with the Google Maps API because of conflicting names in my site's CSS. From what I've been able to find, Google Maps uses the name "container" in their code as does my site, so when the map loads it has this nasty white shadow behind it. Is there a way to change the name of the class for this one or does anyone else have any other suggestions (outside of changing thousands of tags!)

Any help you all could provide would be much appreciated! :|

Attachments Screen_shot_2011-06-25_at_12.50_.39_AM_.png 71.46KB
jrotunda85
Junior Poster
144 posts since Feb 2011
Reputation Points: 19
Solved Threads: 7
 

I think you should look for or create a container that's always around the maps thing, and give CSS stuff to #that_id .container. Or something like that. Do you have it live somewhere?

twiss
Veteran Poster
1,005 posts since Apr 2010
Reputation Points: 177
Solved Threads: 101
 
I think you should look for or create a container that's always around the maps thing, and give CSS stuff to #that_id .container. Or something like that. Do you have it live somewhere?

Here's a live version, maybe this will give you a little more insight? http://bit.ly/kG4ELn

jrotunda85
Junior Poster
144 posts since Feb 2011
Reputation Points: 19
Solved Threads: 7
 

Had a look at your site in chrome and saw .container in standard.css file. You could change that to say .container2 and just to a replace class="container" to class="container2". If you're using a template, shouldn't be any problem.

However, I don't know if this is the problem. It looks like the dialog stem has been given a white background as opposed to a transparent one. Perhaps tracking that particular property may be useful?

I did notice that you're using a shed load of css files though.

diafol
Rhod Gilbert Fan (ardav)
Moderator
7,796 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
 

I've found, in messing around with this, that this line is the one that's causing the issue. When it's removed, the map displays fine. When it's there, it creates the white shadow. I'm going to mess around with this for a bit and see if I can't change it.

#content img {background:#fff; padding:5px; -moz-box-shadow: 0 0px 5px #ccc; -webkit-box-shadow: 0 0px 5px #ccc;}
jrotunda85
Junior Poster
144 posts since Feb 2011
Reputation Points: 19
Solved Threads: 7
 

I've found, in messing around with this, that this line is the one that's causing the issue. When it's removed, the map displays fine. When it's there, it creates the white shadow. I'm going to mess around with this for a bit and see if I can't change it.

#content img {background:#fff; padding:5px; -moz-box-shadow: 0 0px 5px #ccc; -webkit-box-shadow: 0 0px 5px #ccc;}


Actually, it was just as easy as removing the background parameter. :|

Seems like everything is working now and isn't causing issues anywhere else!

jrotunda85
Junior Poster
144 posts since Feb 2011
Reputation Points: 19
Solved Threads: 7
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: