Trouble with text lining up with columns

I seem unable to align my text with my images when it comes to 481 px - 767x and 480x and smaller. I tried to add this text below and it didn’t work. It

“my-row”

and this below:

@media (max-width: 979px){
.x-container.my-row .x-column.x-1-4 {
width: 22%;
margin-right: 4%;
float: left;
}
.my-row .x-column.last,
.my-row .x-column:last-of-type {
margin-right: 0 !important;
}
}
This LEFT is what i want it to look like ALL views. The RIGHT is what is looks like for 481 px - 767x and 480x and smaller

I’d appreciate any assistance. Thank you

Hi @redrain

I’ve shared a link in the Secure Note below, please check it and let me know if this is the actual link to that post or not?

Also, if this is the correct link then we will need the WordPress Dashboard login credentials to see the post and investigate this issue, please make sure to share such information in Secure Note.

Thanks.

Yes that is the post. I will send you the login information via secure note now.

Hi there,

I have checked this page but I can’t seem to see any text below the icons anymore. Did you end up changing the page’s structure?

Kindly let us know if you still need us to check anything.

Thank you.

Apologies I made a mistake. I will attach the correct site address in a secure note. thank you

Hi again,

Thank you for the page URL. I went ahead and gave your misaligned section a class text-section and then added the following code in Cornerstone’s CSS section:


@media screen and (max-width: 979px) {
  .text-section.x-section {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
  }
  .text-section .x-column {
      float: left;
      width: 22%;
      margin-right: 4%;
  }
  .text-section .x-column:last-of-type {
      margin-right: 0;
  }
}

It seems to be working fine now. Please clear your browser’s cache and check the page again.

If you would like to learn CSS, I am sharing few resources that you take a look to get started with CSS and an interesting tool that you can use to speed up the development process.

I recommend you to watch following video that will help you to get started with CSS.

https://www.youtube.com/watch?v=MFR4WXiLzpc

Sometimes it can get a bit difficult to find out the right selector to be able to write the required CSS codes. A handy tool that can help you in this is Google Chrome dev tools. I am sharing the resource that you can refer to get started with dev tools.

https://developers.google.com/web/tools/chrome-devtools/css/

https://developers.google.com/web/tools/chrome-devtools/

https://www.youtube.com/watch?v=tP_kXBJWPhQ&t=200s

Cheers!

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.