Tagged: ,

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #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)
    Codeblock1

    but now it is alligned to the left:Codeblock2.jpg
    Codeblock aligned to the left

    What steps Do I have to follow to centre the code on a page

    Thanks

    #1210500

    Hey flipper1960,

    Please provide a link to the site/page in question so we can look into this issue further.

    Best regards,
    Jordan Shannon

    #1210504

    Hello,

    See attached private content info
    Henri

    #1210517

    Hi,

    Add this to quick css:

    .avia_codeblock_section.avia_code_block_0 .avia_codeblock {
    text-align:center!important;
    } 

    Best regards,
    Jordan Shannon

    #1210521

    Hello Jordan,

    Added the code to the quick css, but it is not in the centre,…
    cleared cache etc

    #1210534

    Hi,

    Are you running any minification plugins?

    Best regards,
    Jordan Shannon

    #1210548

    Hello,

    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.
    ……

    #1210558

    Hi,

    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 Shannon

    #1210689

    Grate Job
    Thanks

    #1210727

    Hello support

    I am back again.
    I thought it worked fine and it did for the first codeblock
    When I copy/past the code in three new blocks, the first one is centred and the new three are again left aligned.. See attachement
    Please can you help me again?

    #1211143

    Hi flipper1960,

    Please change the code to this:

    
    .avia_codeblock_section .avia_codeblock {
        text-align:center!important;
    } 
    

    Best regards,
    Victoria

    #1211383

    Hello.
    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 textblock

    Link 3+1
    Link 2+2

    Tried all possible combinations. No luck

    Thanks in advance
    Henri

    #1212122

    Hi flipper1960,

    It happens because there are spaces added and so they are treated as text for the browser
    Image 2020-05-12 at 13.22.51.png

    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

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.