Feature Box Conect will not center align - Forum | JoomShaper
Staff replied SP Page Builder

Feature Box Conect will not center align

Asked by Ross McIntyre 5 years ago Last activity 5 years ago

I have a feature box with an icon and text. Despite the content align set to center. The icon and text are left aligned as visible at the foot of this page:

https://www.borderhighlands.com/events/enter-events-online/virtual-show

When I work on the frontend editor, the view is centered but on the live page render it remains left aligned.

Thanks
Ross

13 replies

Ross McIntyre Asked this

Meant to say content in the title

Mehtaz Afsana Borsha Staff

Hi

Give me a screenshot of your issue please

Ross McIntyre Asked this

How do I do that on this forum?

Anne Staff

Hello Ross McIntyre,

Thanks for contacting with us. Please use a online screenshot taking tool like lightshot or https://imgur.com/upload

-Regards

Mehtaz Afsana Borsha Staff

Hi

Use this custom css


@media only screen and (max-width: 1024px) and (min-width: 768px)  {
#sppb-addon-1626533495492 h2.sppb-addon-title{
    position:relative;
    left:10px;
    white-space:nowrap;
}
}
@media only screen and (max-width: 1600px) and (min-width: 1024px)  {
#sppb-addon-1626533495492 h2.sppb-addon-title{
    position:relative;
    left:200px;
    white-space:nowrap;
}
}

@media (max-width: 767px){
#sppb-addon-1626533495492 h2.sppb-addon-title{
    position:relative;
    left:60px;

}
}

Add this css code inside the custom.css file.
Note: Path towards custom CSS:
Extensions>Templates>Styles>
Click on your current default template name then choose Template Options.
Then find custom CSS within the custom code.
https://prnt.sc/pu705g
https://prnt.sc/pu70zn
In Extensions>Template> Template Options > Custom Code > Custom CSS please add this
Thanks

Pavel
5 years ago · edited

Hi. Mehtaz, it should be much easier. Use position: relative; in such cases is a very harmful advice. Crouch it out of your practice. Learn browser code inspector and Flexbox CSS at least.

For Icon

#sppb-addon-1626533495491 {
    text-align: center;
}

For text. All field values must be filled if at least one value is used. Can not be left empty

Mehtaz Afsana Borsha Staff

Thanks Pavel

Pavel

You are always wellcome

Ross McIntyre Asked this

I appreciate these responses. I am not really skilled enough to understand how to implement them to solve the issue. I know this is my failing but any more pointers as to how to implement into my use case would be good.

Ross

Log in to reply.