Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1355895

    Hi team, working on a new site. I need help centering an element within a column. Here is the page:

    Below the “come visit our state of the art” headline, there are two columns side by side. The one the right has a map, and is centered within its column. The one on the left has the address and hours of the shop, but isn’t centered within its column. I was hoping you could help me center it.

    The login is in the PC. Thank you so much!

    #1355929

    Hi Dzimnikov,

    You cannot center it because the box is basically the whole column, what you can do is to move the column to the right to make it visually centered.
    Try adding this CSS code in Enfold > General Styling > Quick CSS:

    #comevisitcolumn {
        position: relative;
        left: 120px;
    }

    just adjust the left value as you see fit.

    Best regards,
    Nikko

    #1356438

    Hey, thank you so much, this helped a lot.

    Another quick question. On that same homepage, I have a section towards the bottom that has a customer letter (starts with “dear customer’). I’m using a custom h2 I set up in “advanced styling”, but for some reason no matter which font I select, it makes all of the letters capitals. I use the same font throughout the site, using h3, and I never get this problem. Is h2 preset to always be capital?

    How does this work?

    Thanks,
    -Daniel

    #1356449

    Hi Daniel,

    Yes, it’s been predefined in layout.css.
    I have changed it on your site by adding this CSS code in Enfold > General Styling > Quick CSS:

    .template-page .entry-content-wrapper h1, 
    .template-page .entry-content-wrapper h2 {
        text-transform: inherit;
    }

    Please review your site.

    Best regards,
    Nikko

    #1356469

    but btw. what do you expect from a 2/5 – 3/5 column layout?
    why not using a 1/2 – 1/2 layout?

    #1357757

    I’m pretty sure I’ve changed it to 1/2 – 1/2 since then. It wasn’t centering either way, so I had it at 2/5 – 3/5 at that moment for wtvr reason until I was able to get that code from yall.

    It all works now though, appreciate the help greatly :)

    #1357761

    Hi Dzimnikov,

    We’re happy to hear that :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Centering an Element within a column on the homepage’ is closed to new replies.