Jump to content

Basic question regarding text alignment

Recommended Posts

Site URL: https://www.nickdavid.co.uk/lifestyle

Hi,

I am having an issue were I have some text that is on hover in the middle of my picture boxes on my website. The page is Summary: Wall.

Currently I am just using text-align: center, but while it is centered on left and right side, it is too far up from the middle. 

Any quick fix for centering the text properly?

.sqs-block-summary-v2 .summary-item:hover .summary-title a { 
    background-color: transparent !important; 
    opacity: 4 !important; 
    color: #000000 !important; 
    position: absolute !important;
    display: block !important;
    text-align: center !important;

Thank you,

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Add to Home > Design > Custom CSS

div#block-yui_3_17_2_1_1595515032829_5160 .summary-title {
    position: absolute;
    top: 50%;
    transform: translate(-50%,-50%);
    left: 50%;
    z-index: 999;
    width: 100%;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.