-
AuthorPosts
-
May 6, 2020 at 8:40 pm #1210471
Hello,
Have searched on your forum but not one solution worked for me… Or I did it wrong..;-)
I use version Enfold 4.7.4
I have the following code that should centre the contents on a page:
[maxbutton id=”1″] [maxbutton id=”2″]I placed this in a Code Block in a “container”, (see att. Codeblock1.jpg)
Codeblock1but now it is alligned to the left:Codeblock2.jpg
Codeblock aligned to the leftWhat steps Do I have to follow to centre the code on a page
Thanks
May 6, 2020 at 10:07 pm #1210500Hey flipper1960,
Please provide a link to the site/page in question so we can look into this issue further.
Best regards,
Jordan ShannonMay 6, 2020 at 10:21 pm #1210504Hello,
See attached private content info
HenriMay 6, 2020 at 10:47 pm #1210517Hi,
Add this to quick css:
.avia_codeblock_section.avia_code_block_0 .avia_codeblock { text-align:center!important; }
Best regards,
Jordan ShannonMay 6, 2020 at 10:56 pm #1210521Hello Jordan,
Added the code to the quick css, but it is not in the centre,…
cleared cache etcMay 6, 2020 at 11:15 pm #1210534Hi,
Are you running any minification plugins?
Best regards,
Jordan ShannonMay 6, 2020 at 11:52 pm #1210548Hello,
The site is built on the core Enfold theme.
Almost no Cs code
What do you mean by “minification code“. I am not ware of that.
……May 7, 2020 at 12:28 am #1210558Hi,
You had some broken css which I commented out here:
/** font-weight: bold; }**/
You can retest the page and it should be working.
Best regards,
Jordan ShannonMay 7, 2020 at 11:56 am #1210689Grate Job
ThanksMay 7, 2020 at 2:47 pm #1210727May 8, 2020 at 7:27 pm #1211143Hi flipper1960,
Please change the code to this:
.avia_codeblock_section .avia_codeblock { text-align:center!important; }
Best regards,
VictoriaMay 9, 2020 at 1:20 pm #1211383Hello.
This works fine now, but when I make the screen smaller and the row has to split in two rows (smaller screens and on mobile), the second row is a few spaces outlined to the right.
See attrachements
This happens when the buttons are in a codeblock but also when they are in a textblockTried all possible combinations. No luck
Thanks in advance
HenriMay 12, 2020 at 12:25 pm #1212122Hi flipper1960,
It happens because there are spaces added and so they are treated as text for the browser
Normally, margins are used for spacing purposes and they can be removed or reduced with the media queries but in this case, css will not help. You need to remove the spaces and use margins first.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.