This has got me. I am actually wondering if this is a bug or my theme hindering the visual composer styles. I got a row which has row settings - stretch row. Till here everything's fine. What is I cannot accomplish is to center align a widget (say text block) in it. The widget tends to align left. Changing row settings doesn't do anything. It has an option to vertically align a text but not horizontal align? Basically I want my content of rows exhibit text-align:center
.
I also use WPBakery from time to time for designing Wordpress websites and you do not have a setting for horizontal alignment directly. You must use custom CSS code to do that. You have a few options but if you ask me the best option is to use Flexbox which is a relatively new CSS aspect. So here are the thing that you should do.
- In Responsive options of the column that you want to center select something like this:
10 columns - 5/6
- Select the row settings and in additional class name write something like this
center-content
- Lastly, on the page you design there is a section that you can write page-only CSS find it and write this code:
.center-content {
display: flex;
justify-content: center;
}
I hope this will help someone out there in the same situation.
Try margin: auto. Can you share a link?
You can either do this CSS or the wpbakers has a place where you can adjust padding and margins inside the tool.
https://wpexplorer-themes.com/total/docs/visual-composer-spacing/
I've found this, on the demo of my them (revolution theme) they put on the "addtitional class name" this text: text-center align-center
Apparently there are no basic button that permit to do that. You have to enter your css class manualy. This is strange for a builder like this ...
© 2022 - 2024 — McMap. All rights reserved.