ElkArte Community

Project Support => Support => Topic started by: Egbune on July 15, 2017, 03:56:43 am

Title: Center align Portal Homepage
Post by: Egbune on July 15, 2017, 03:56:43 am
Hi support, would love it if my simple portal home page was aligned to the center.

pls where can I access the css for my simple portal hompage css, the code to center align it and where to place it. Thanks!
Title: Re: Center align Portal Homepage
Post by: Spuds on July 15, 2017, 08:40:49 am
the portal css file is called portal.css

It is in the /themes/default/css directory

I'm not sure what you are trying to do, but turning off the right and left columns and then placing all blocks in the top/bottom areas should be centered.
Title: Re: Center align Portal Homepage
Post by: Egbune on July 15, 2017, 09:43:56 am
I did that already, but its still not centered. I could remember in SMF a code for aligning css. But the problem is where to place the code and can I use the same code for elkarte
Title: Re: Center align Portal Homepage
Post by: emanuele on July 15, 2017, 10:39:20 am
@Egbune do you mean center the text in all the blocks in the home page?
Title: Re: Center align Portal Homepage
Post by: Egbune on July 15, 2017, 12:01:19 pm
Quote from: emanuele – @Egbune do you mean center the text in all the blocks in the home page?

yes, just that! I would like to center the text in the hompage alone
Title: Re: Center align Portal Homepage
Post by: emanuele on July 17, 2017, 02:31:33 pm
I need a (clean) SP install to check it out, but I guess something like:
Code: [Select]
.action_home .sp_block_container {
    text-align: center;
}
may work.