-
AuthorPosts
-
mickalypickaly Friend
mickalypickaly
- Join date:
- November 2011
- Posts:
- 26
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
October 6, 2013 at 8:24 pm #191184I’m in the middle of switching my template from JA Social to JA Hawkstore. I have a script that centers automatically in JA Social but I cant’ get to center no matter what I try in JA Hawkstore. Here are some of the things I’ve tried.
<script src="http://forms.aweber.com/form/88/1165932688.js" align="center" type="text/javascript"></script>
<span align="center">
<script src="http://forms.aweber.com/form/88/1165932688.js" type="text/javascript"></script>
</span><div align="center">
<script src="http://forms.aweber.com/form/88/1165932688.js" type="text/javascript"></script>
</div><p align="center">
<script src="http://forms.aweber.com/form/88/1165932688.js" type="text/javascript"></script>
</p>None of them are working. What I’m I doing wrong? Is there something in the template that needs to be changed?
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
October 6, 2013 at 10:35 pm #508135Can you provide the url of the site you’re working on, as well as a screenshot of the element you are trying to center?
mickalypickaly Friendmickalypickaly
- Join date:
- November 2011
- Posts:
- 26
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
October 7, 2013 at 4:11 am #508162TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
October 7, 2013 at 5:31 am #508178Here’s a possible solution . . .
Within file path –> /ja_hawkstore/css/themes/custom/template.css
at line 3206, add a “padding-left” property – for example:
.item-page {
padding-left: 200px;
padding-top: 10px;
}Not 100% sure how/if this will effect any other elements within your site that may be styled by the same CSS rule. Give it a try and see if it achieves the result you are looking for … you can always remove the modification if it doesn’t work out for you.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
October 7, 2013 at 9:44 am #508216Or you can try with my solution
Open templates/ja_hawkstore/css/themes/custom/template.css file
From
.main-container {
padding: 20px 40px;
}Change to
.main-container {
padding: 20px 40px;
margin: 0px auto;
width: 50%;
}mickalypickaly Friendmickalypickaly
- Join date:
- November 2011
- Posts:
- 26
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
October 7, 2013 at 7:54 pm #508280Both suggestions work to center the element but they cause issues elsewhere. I had an idea to create a new class in the custom.css file. Using TomC’s suggestion in my custom class it shows up great on a desktop PC but on mobile browsers it shoots it way to the right. For some reason when I use Ninja Lead’s suggestion in my custom class it centers it but cuts the element in half. I don’t understand why it would show the full element when I add the coding to the .main-container class but when I create my own class it doesn’t show up correctly. What am I missing?
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
October 7, 2013 at 8:04 pm #508282AuthorPostsViewing 7 posts - 1 through 7 (of 7 total)This topic contains 7 replies, has 3 voices, and was last updated by TomC 11 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Center align a script
Viewing 7 posts - 1 through 7 (of 7 total)