Jump to content

CSS Code For Menu Header Alignment of Dropdowns: Partial left, partial right

Recommended Posts

Site URL: https://bluebird-decagon-tlaa.squarespace.com/

Hi there,

 

I'm looking for some help on alignment of my menu header title dropdown lists, somewhat related to previous threads in this forum. However, what I'm trying to do differently is make it so that only some of my menu options are left-aligned for the dropdown list, while others are right aligned. So for example, I want the "Our Work" and the "Connect" tabs to remain left aligned, but would like the "Stories" and "About Us" tabs to be right aligned.

 

Here is the custom code I've used to get to this point-- any insight would be helpful!

a.header-nav-folder-title:hover + div, .header-nav-folder-content {
    text-align: left !important;
    position: absolute;
    left: 0% !important;
    right: unset !important;
    background: solid !important;
}

.header-nav .header-nav-item--folder .header-nav-folder-content {
  padding: .25em!important;
  .header-nav-folder-item a {
    padding: 1em 1em!important;
    border-bottom: 1px solid #a02f7b;
  }}

 

Screen Shot 2022-05-13 at 4.11.06 PM.png

Screen Shot 2022-05-13 at 4.11.13 PM.png

Screen Shot 2022-05-13 at 4.11.19 PM.png

Screen Shot 2022-05-13 at 4.11.25 PM.png

Link to comment
  • Replies 1
  • Views 293
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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.