PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Using googlemap plugin in article (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Using googlemap plugin in article


#5810
Bob Jefferson (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Using googlemap plugin in article 1 Year, 5 Months ago Karma: 0  
Excellent plugin, great documentation, easy to use. Just one question - I'm using a map in an article and I would like to minimise the white space around it. Can anyone tell me how to achieve this?

Example here - http://porty.org.uk/visit-portobello/
 
  The administrator has disabled public write access.

#5811
kksou (Admin)
Admin
Posts: 1715
graph
User Online Now Click here to see the profile of this user
Re:Using googlemap plugin in article 1 Year, 5 Months ago Karma: 27  
Hi,

1) I did a view source of your page. There's a .css file: http://porty.org.uk/tmp/jsn_epic_pro_css_37c96c9d5f25dc63ce13c447eef076b4.css
Think this is a auto-generated css file.

2) To shift the left margin of the map, you need to change line 27 of the css file in (1):

#jsn-mainbody {
padding:1.2em;
}

Change the padding from, say 1.2em to 0.2em.
You will see that the left margin of the google map will become 0.2em.

3) The top margin of the google map is caused by the following:
<div class="row_separator"></div>

Which in turn uses line262 of the css file in (1):
div.row_separator {
clear: both;
height: 1em;
}

Try changing the above from height: 1em; to height: 0em;

I'm not sure how the css file in (1) is generated. In any case, the above shows you which are the 2 css tag that you can change to shift the top and left padding/margin of the map.

You need to do a bit of testing to see changing the css file will affect other parts of your joomla page.

Hope this helps.

Regards,
/kksou
 
  The administrator has disabled public write access.

#5812
Bob Jefferson (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:Using googlemap plugin in article 1 Year, 5 Months ago Karma: 0  
Thanks for your quick response, much appreciated. I think we can afford the 10 to remove the link and that will tighten up the bottom margin as well.
 
  The administrator has disabled public write access.



Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Blog - Forum - Privacy Policy - Contact Us
Copyright © 2006-2012. kksou.com. All Rights Reserved