Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Centering div over slider

Featured Replies

Hello :-)

 

Hoping some fresh eyes will be able to help me out. I am trying to put a static title over the top of a slider, but centered both horizontally and vertically. I thought I had cracked it but realised it's not quite central vertically. Can anyone see where I am going wrong?

 

Live URL here.

 

Css is:

#portfolio-single-gallery{
	position: relative;
    top: 0;
    left: 0;
    width: 100%;}
	
.title-overlay{
    top: 50%;
	width:100%;
	text-align:center;
	z-index:99;
	position: absolute;}
	
.title-overlay h1{
	color:#fff;}
	
#portfolio-single-gallery .slider-nav{
	margin:20px 0px;
        z-index: 10;
        width: 100%;}

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.