Jump to content

Custom Bullet Point. Change the top margin

Recommended Posts

Hello,

 

I have custom bullet points on my site, but the first bullet point is way down from the top of the block.

I'd like to move it closer, move the bullet points to be inline with the text (and hide the built in bullet points), and shrink the boxes to fit the content.

I'm using CSS to do this, how do I make it work like the images below?

the website is imaginativeslp.com

(This is how it currently is)

image.thumb.png.71acab733b9efff290fae8e6d31532aa.png

 

(This is how I want it to look)

image.thumb.png.9d34fd0d56134e63025c0be4b9bfbc42.png

 

 

 

 

Here is the current CSS

#block-63f18965fc991b75eabd0318  ul {
  list-style-type: none !important;}

#block-63f18965fc991b75eabd0318 .sqs-block-content li:before {
    content: " " !important;
    display: block;
    height: 55px;
    position: relative;
    top: 50px;
    left: -60px;
    width: 60px;
    margin-top: 0pt;
    margin-bottom: 0px;
    background-image: url(https://images.squarespace-cdn.com/content/5f331ab5d0074150a92e176f/9d7e9845-ad4f-45af-afef-e5092e0f2629/Star+Cluster_3.png?content-type=image%2Fpng);
    background-size: contain;
    margin-right: 5px;
	}

 

Edited by ImaginativeSLP
Link to comment

Add to Design > Custom CSS

div#block-63f18965fc991b75eabd0318 li {
    display: flex;
    align-items: center;
}
#block-63f18965fc991b75eabd0318 .sqs-block-content li:before {
    position: static;
    background-size: contain !important;
}
div#block-63f18965fc991b75eabd0318 ul {
    padding: 0px;
}

 

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

Hello @tuanphan,

I still need some help with this when you get a chance.

In addition if you have a moment I am also trying to make the arrow keys in the testimonials section change the background color on hover, but I can only get it to work for the outside part of the colored circle. I can't get the arrow hover event, only the background hover event.

 

section[data-section-id="63da0d96a2da9f1289ae15a8"] .user-items-list-banner-slideshow__arrow-icon-background-area:hover {
   background-color: #c951f4;
}

/* testimonial arrow hover color, not working */

/*
section[data-section-id="63da0d96a2da9f1289ae15a8"] .user-items-list-banner-slideshow__arrow-icon:hover + section[data-section-id="63da0d96a2da9f1289ae15a8"] .user-items-list-banner-slideshow__arrow-icon-background-area {
  background-color: #c951f4;
}

 

EDIT:

I was able to solve the arrow keys background color with a child selector!

 

Here is the code

section[data-section-id="63da0d96a2da9f1289ae15a8"] .user-items-list-banner-slideshow__arrow-button--left:hover > .user-items-list-banner-slideshow__arrow-icon-background-area  {
  background-color: #c951f4; //check if the user is hovering over the left button, then use the child selector to select the background color element and change it
}

section[data-section-id="63da0d96a2da9f1289ae15a8"] .user-items-list-banner-slideshow__arrow-button--right:hover > .user-items-list-banner-slideshow__arrow-icon-background-area  {
  background-color: #c951f4; //check if the user is hovering over the right button, then use the child selector to select the background color element and change it
}

 

Edited by ImaginativeSLP
Link to comment

I still need help.

 

I can't get the margin/padding on the top of the block to go away without other things breaking.

 

Here is the current css

 

// Custom Bullet Points
#block-63f18965fc991b75eabd0318 .sqs-block-content ul li p::before {
    display: none !important;
}
div#block-63f18965fc991b75eabd0318 ul {
    padding: 0px;
    margin-left: 30px;
}
#block-63f18965fc991b75eabd0318 .sqs-block-content li:before {
    content: '' !important;
    display: block;
    height: 55px;
    position: relative;
    top: 70px;
    left: -60px;
    width: 60px;
    margin-top: 0pt;
    //margin-left: 30px;
    background-image: url(https://images.squarespace-cdn.com/content/5f331ab5d0074150a92e176f/4143368b-8051-4234-a41b-6f0650f32ef1/Star+Cluster_3.png?content-type=image%2Fpng);
    background-size: contain;
    margin-right: 5px;
  background-repeat: no-repeat;
	}

 

Link to comment
On 2/28/2023 at 4:22 AM, ImaginativeSLP said:

I still need help.

 

I can't get the margin/padding on the top of the block to go away without other things breaking.

 

Here is the current css

 

// Custom Bullet Points
#block-63f18965fc991b75eabd0318 .sqs-block-content ul li p::before {
    display: none !important;
}
div#block-63f18965fc991b75eabd0318 ul {
    padding: 0px;
    margin-left: 30px;
}
#block-63f18965fc991b75eabd0318 .sqs-block-content li:before {
    content: '' !important;
    display: block;
    height: 55px;
    position: relative;
    top: 70px;
    left: -60px;
    width: 60px;
    margin-top: 0pt;
    //margin-left: 30px;
    background-image: url(https://images.squarespace-cdn.com/content/5f331ab5d0074150a92e176f/4143368b-8051-4234-a41b-6f0650f32ef1/Star+Cluster_3.png?content-type=image%2Fpng);
    background-size: contain;
    margin-right: 5px;
  background-repeat: no-repeat;
	}

 

You mean this padding?

https://www.imaginativeslp.com/

image.thumb.png.8f66a95e13f42ac6bfe0ed67576c32c5.png

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.