Tagged: x
-
AuthorPosts
-
September 7, 2016 at 11:53 am #1164766
marketcampusParticipantI recently built some pricing tables and wanted to customize the buttons. What I did was create a <div class=”pricingbutton”> and put the buttons inside that div (all within the text edit box in the pricing table). Everything works however I can’t seem to figure out the width.
Currently, I have the following CSS on my buttons:
.pricingbutton .x-btn { background-color: #018afe; border-color: #018afe; color: #fff; width: 250px; }I originally had the width at 350px but on mobile they would extend past the screen. I then tried 100% but the buttons (even on desktop) would extend past the pricing table. Is there a way I can make these buttons the “full block width” and still be mobile friendly?
September 7, 2016 at 2:39 pm #1165012
JoaoModeratorThanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
September 7, 2016 at 3:59 pm #1165133
marketcampusParticipantThis reply has been marked as private.September 7, 2016 at 10:57 pm #1165762
LelyModeratorHi There,
Thank you for the URL. Please update above CSS to this:
.pricingbutton .x-btn { background-color: #018afe; border-color: #018afe; color: #fff; width: 100%; margin: auto; }Hope this helps.
September 8, 2016 at 1:03 pm #1166766
marketcampusParticipantSo technically it does work but there doesn’t seem to be any padding around the edges? It looks odd how it goes right up to the edge of the column. I basically want the buttons to look and function like the normal buttons with the “Block” option turned on. I’ve attached a screenshot of what it looks like with that code above plugged in.
September 8, 2016 at 3:56 pm #1167044
JoaoModeratorHi There,
Try width: 90% instead of 100%
Let us know how it goes,
Joao
September 8, 2016 at 4:00 pm #1167047
marketcampusParticipantThere we go! Perfect! Thanks!
September 8, 2016 at 11:45 pm #1167538
FriechModeratorGlad we could help, Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1164766 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
