Jump to content

used code to put a frame around a link, now it shifted everything!

Recommended Posts

Site URL: https://www.qbpsychology.ca/

Hi, I wanted to make a drop down that looked like a button so that I wouldn't have to have two buttons on my header. I found some css to make the folder "book an appointment" have the color and border of a button, but if you mouse over it its a drop down.

The issue is, that the text of my "button" is no longer in line with any of the other header links. More specifically, it caused all the other header links to shift up so that they are in line with the top of my "button", and are no longer in line with my company name. Can anyone please tell me what to do to change this? I would like the company name and all text in the header to be in the same horizontal alignment. Thanks!

header#header [href="/book-an-appointment"] {
    color: #ffffff;
    background-color: #54c057;
    border-color: #54c057;
    border-radius: 0.0rem;
    padding: 12.8px 18.736px;

Link to comment
  • Replies 3
  • Views 497
  • Created
  • Last Reply
On 1/15/2021 at 2:03 AM, KatherineS said:

hi, thanks for your response. I tried typing nav-class: flex; but it didn't seem to do anything. I'm not sure if that's what you meant. 

The password is psychology

would you mind taking another look?

Add to Design > Custom CSS

nav.header-nav-list {
    display: flex;
    align-items: center;


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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment


This topic is now archived and is closed to further replies.

  • 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.