Home>Support>Hero slider with centered h1 and h3

Hero slider with centered h1 and h3

Hello. Sorry to bother you but I’ve spent the whole evening and am stuck.

I am trying to add text on top of a Hero slider. In the Content section I have added one h1 (that shows correctly) and one h3 with a color background. I’ve set the h3 to display:table to keep the coloured background tight around the text. No matter what I do the h3 aligns to the left. If I change the sliders max-width I can force it more to the center. I have added rows with parallax images with centred h3 displayed as display:table to other pages, but I can’t manage it with the Hero slider.

This is what it looks like

CSS not working

.sow-slider-image-wrapper h3 {

	font-size: 1.4rem !important;
	text-transform: uppercase;
	background: rgba(237, 30, 37,0.4);
	display: table;
	margin: auto;
text-align: center !important;
}

This is what I want (this is not a Hero slider, but row with a parallax image background).

CSS for this (works), I’ve added the class .top-parallax to the row

div.top-parallax h3
        {
        color: #fff; 
        background: rgba(237, 30, 37, 0.6);
	font-size: 24px !important;
	display: table;
    	line-height: 28px;
	margin: auto;
	padding: 0 3px;
	text-transform: uppercase;
	text-align: center !important;
}

Any help would be much appreciated.

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 8 years, 4 months ago Alex S
    Hi, I Work Here

    Hi Magnus,

    Do you have a public URL where we can take a look at what’s going on? If you need to keep this URL private from other users, just select “Private Reply” on the bottom right of the comment box.

  2. 8 years, 4 months ago Private Message - Magnus

    This is a private message.

  3. 8 years, 4 months ago Private Message - Alex S Hi, I Work Here

    This is a private message.

  4. 8 years, 4 months ago Private Message - Magnus

    This is a private message.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More