Search wcDogg
Raised by Wild Corndoggs

How does anyone ever come up with a screenname?

When my sister and I were young, we called each other corndogs. When I was older, I found a small, bright orange pin that read, "I was raised by a pack of wild corndogs".

A pack of wild corndogs

My sister begged me for that pin and I, being the generous sort that I am, relented with her promise to return it to its rightful owner someday.

Someday never arrived, but the Internet did. I use the screen name wcDogg because it reminds me of something funny and because I can't resist busting on my sister. Anyone with siblings understands.

Statistically...

If you are reading this from your own computer, you are among less than 1% of the world’s people who have had the opportunity.

Knowledge is free to share and expensive to obtain because it is priceless to posses. Please support:

Standardized technologies

Free and low-cost Internet access

Anticensorship

Open-source and shareware projects

« Best Web Calendar | Main
Monday
07Sep2009

Squarespace Buttons

Since moving my domains over to Squarespace, I've been diggin' it – smart, flexible, simple. While I appreciate that Squarespace hides a lot of the layout CSS to keep newer folks from destroying the simplicity, it would be nice if button styles were accessible via the Appearance Editor.

The Files

Here I've compiled two files with all of my notes about Squarespace buttons to date.

Squarespace Button Selectors (CSS)
Squarespace Button Methods (CSS)

The Selectors

The .button class targets all Squarespace buttons. With the help of the Web Developer toolbar (a Firefox plugin) I've narrowed down the selectors for the following buttons:

  • "Log In"  (all)
  • Search ">>" (all, page, widget)
  • Email / custom forms "Submit" (all, page, widget)

Discussion and Guestbook pages, as well as the Post a Comment form, use the following buttons:

  • "Create Post"
  • "Preview Post"
  • "Confirm Post"
  • "Make Changes"

The Methods

I've tested three methods of working with Squarespace buttons:

Method 1: Repeat-X with System Text

This is the easiest method for targeting all Squarespace buttons. It allows you to customize font color and size, border color and size, normal and hover background images, and height. This method is the cleanest to implement because width continues to be controlled by Squarespace defaults.

Method 2: No repeat with System Text

This method is best when you want rounded corners. It uses the normal and hover background images for height, width, and border and allows you to set font color and size. The main problem with this method is that the image sets the width. What works for "Preview Post" does not work for ">>".

To understand the possible solutions to this dilemma, you have to understand some of Squarespace's quirks, which I give further down.

One work around is to confine larger buttons to the Content column and target with #Content, and confine smaller buttons to the Sidebar columns and target with #sidebar1 and #sidebar2.

Another solution is to target the longer buttons with the .button class, target "Submit" buttons with the .submit-button class, and target the ">>" button with the .queryButton class.

Method 3: No repeat with Image Text

This method uses a an image with text as a button. Squarespace does not assign unique selectors to all buttons. For this reason, the best and only use of this method would be as a simple way to replace ">>" with "Search".

The Quirks

Like I said, Squarespace does not assign unique selectors to all buttons. This is a problem in two places I've seen.

The Squarespace email form and custom forms both use the .button and .submit-button classes. This means there is no simple way to use a no repeat image with text (method 3) to replace these buttons. Bummer, I really wanted that button to say "Send Email".

While Squarespace assigns unique selectors to the "Create Post", "Preview Post", and "Confirm Post" buttons, the "Make Changes" button is stuck with just the .button class. This means when you want to use a no repeat image with system text (method 2), you will also have to use one of the work aorunds (or suggest another).

Good luck in your button endeavors!