Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #1013906

    I am trying to create a full screen website (boxed layout at 1890px wide) with the contents within 1000px and centered.

    But the contents are over to the left. How do I make the contents centered please so that there is white space either side?

    Thanks

    Jane

    #1014200

    Hey jscarlett,

    Thank you for using Enfold.

    Did you add this css modification?

    #main .content {
        min-height: 800px;
        max-width: 1200px;
    }

    The content container is set to float to the left by default.

    Try this one:

    #main .content {
        min-height: 800px;
        max-width: 1200px;
        margin: 0 auto;
        float: none;
    }

    Best regards,
    Ismael

    #1014499

    Hi Ismael

    Thank you for your reply. I changed the css but it didn’t work.

    Jane

    #1014771

    Hi Jane,

    Best regards,
    Victoria

    #1014800

    Hi Victoria

    On a larger screen size the content is over to the left. It needs to be centered on all screen sizes if possible?

    Thanks

    Jane

    #1015108

    Hi,

    Did you add the css code? I don’t see it in the browser inspector when I inspect the page. Please provide the login details in the private field. We would like to check it.

    Best regards,
    Ismael

    #1015164

    Hi Ismael

    I added the code but removed it when it did not work. I’ve added it again.

    Here is an admin login.

    Thanks

    Jane

    #1015167

    Hi here you go…

    #1015593

    Hi,

    Thanks for the update. The content are center aligned when I checked the page. Please purge the browser cache or do a hard refresh prior to checking the page.

    Screenshot: https://imgur.com/a/wqZgJuY

    Best regards,
    Ismael

    #1015642

    Hi Ismael

    Thanks but the content is stretched across the page and the max-width is ignored. I’ve added an i!mportant but no effect.

    #main .content {
    min-height: 800px;
    max-width: 1200px!important;
    margin: 0 auto;
    float: none;
    }

    Is there a way of limiting the content to within 1200px and centered please?

    Thanks

    Jane

    #1015837

    Hi Jane,

    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
    @media only screen and (min-width: 1440px) {
      .responsive .container {
        max-width: 1200px;
        margin: 0 auto;
      }
    }
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #1016011

    Hi Victoria

    Thanks but that makes all content within the restricted width – including the header and socket/footer.

    I was hoping to only restrict everything between the header and socket/footer.

    Is that possible please?

    Thanks

    Jane

    #1016383

    Hi,

    Sorry for the confusion. We moved the masonry element inside a color section, applied a unique Section ID and then added the following css code to limit the width of that particular section’s container.

    #projects-section .container {
        max-width: 1200px;
    }

    Best regards,
    Ismael

    #1016635

    Hi Ismael

    Thank you – that works.

    So do I create a Section Id for each page?

    Thanks

    Jane

    #1016843

    Hi,

    You can use the same Section ID if the section is on a different page.

    Best regards,
    Ismael

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