-
AuthorPosts
-
May 15, 2015 at 5:45 pm #206374
Using Purity III with the Corporate template I have added the JA Image Hotspot and have a picture displayed. I have not yet added any hotspots, but I can’t get the image to center. I modified line 12 of the /modules/mod_jaimagehotspot/assets/css/style.css as referenced here: http://www.joomlart.com/forums/topic/how-center-the-map/ to this
.jai-map-container {
display: block;
margin-left: auto;
margin-right: auto;
max-width: 100%;
position: relative;
}
but it doesn’t help. I think it may be because of the position I am using (slideshow). That is the only position I could use where it doesn’t compress the image, and puts it above the article text. Any and all help is appreciated.TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
May 15, 2015 at 5:51 pm #570719Which element in your site is the one you’re trying to center the image?
May 15, 2015 at 5:53 pm #570720http://www.raymacac.com/index.php/spray-foam/common-air-leaks
JA Image Hotspot in that page.May 15, 2015 at 6:22 pm #570726I moved the position to masthead and like that much better than in the slideshow position. It is not centered on the page, but it is centered above the article content.
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
May 15, 2015 at 6:36 pm #570731You could try something like this . . .
.jai-map-container img {
margin-left: 20%;
}1 user says Thank You to TomC for this useful post
May 15, 2015 at 6:43 pm #570733I will give that a try. I have another issue as well. I thought I could just live with it as long as it was centered over the article text, but once I added a hotspot then saved I can see the tooltip, but the front end is not matching the back end placement. It is showing too far to the right on the map. I am going to try resizing my image to match the world map sample image to see if that fixes the tooltip placement, if not then I may just re-think using this module altogether. It is really nice work, but not absolutely necessary for what I am doing.
Edit: I adjusted the image size to match the worldmap sample image and changed to the new image, re-made the tooltip and have the same issue.
-
AuthorPosts
This topic contains 8 replies, has 2 voices, and was last updated by TomC 9 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum