-
AuthorPosts
-
dmontpe Friend
dmontpe
- Join date:
- March 2011
- Posts:
- 24
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 6
- Thanked:
- 2 times in 1 posts
September 16, 2014 at 7:30 pm #201373Hi.
First of all, thank you guys for an amazing template. I have a question which I’m sure has a simple answer:
I’m just trying to place a button in the center of a page but no matter how many combinations of tags I try, I always end up with a button that goes from one end to the other of the page. Like this:
<p style="text-align:center;"><button type="button">Text</button></p>
The code above works until I add the button class to it so I’m guessing it’s a template thing. Do I need to tweak the template CSS?
Regards,
David
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
September 16, 2014 at 7:32 pm #549749So that we can try to best assist you, please provide the url of the site you’re working on 🙂
Eragon H FriendEragon H
- Join date:
- July 2014
- Posts:
- 468
- Downloads:
- 1
- Uploads:
- 39
- Thanks:
- 5
- Thanked:
- 156 times in 149 posts
September 17, 2014 at 4:12 am #549814Hi dmontpe,
I tested at my end but didn’t face the above issue. So, can you kindly the direct link to the page that have that button. I can have a look at that.
Also, you can try the below code to add this button http://prntscr.com/4nl2ux
<p class="btn-actions"><a href="http://bit.ly/purity_iii" class="btn btn-primary btn-lg">Check me out</a></p>
Best regards
1 user says Thank You to Eragon H for this useful post
dmontpe Frienddmontpe
- Join date:
- March 2011
- Posts:
- 24
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 6
- Thanked:
- 2 times in 1 posts
September 17, 2014 at 10:05 am #549857Thanks guys. That was quick!
Eragon’s code worked perfectly, plus I like the round button better, which, by the way, is not displayed in the typography page for the template. Is there any other page where I can find more stuff like that?
With that, I figured out what the problem was. When I used Firebug on the typography page, I got “btn btn-block btn-lg btn-primary” and the btn-block part is what was causing me trouble.
Thanks again.
David
1 user says Thank You to dmontpe for this useful post
AuthorPostsViewing 4 posts - 1 through 4 (of 4 total)This topic contains 4 replies, has 3 voices, and was last updated by dmontpe 10 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
¿How do I center a button?
Viewing 4 posts - 1 through 4 (of 4 total)