Jump to content

Apply style to more than one block

Recommended Posts

Posted

This is a very basic coding question....

I understand how to apply style to a block, using it's Block ID but how do I apply the style to TWO or more Blocks without repeating the code for each one?

So instead of:

div#block-yui_xxx{
  padding-top:0;
}

div#block-yui_yyy{
  padding-top:0;
}

 

I get something like 

div#block-yui_xxx AND div#block-yui_yyy{
  padding-top:0;
}

 

Sorry - I found it....

div#block-yui_xxx, div#block-yui_yyy{
  padding-top:0;
}

  • Replies 1
  • Views 1.4k
  • Created
  • Last Reply

Archived

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.