If you are using WordPress for your website, you may want to left align a div or other element or item on your website. Just add this WordPress Code Snippet to your CSS stylesheet in your current WordPress theme in order to left align a div or other item in WordPress.
/**
* Left align element
*
* @author WPSnacks.com
* @link https://www.wpsnacks.com
*/
#yourdivname {
text-align: left;
}
Just replace #yourdivname with whatever element, either a id(#) or class(.) that you want to have it’s interior elements left aligned. Hope this helps with your WordPress problem, enjoy.
Leave a Reply