Jump to content

What's the best way to target specific rows?

Recommended Posts

Hi all, 

I'm just wondering how you go about using CSS to make changes to specific rows on one's website. For instance, I'm trying to target a row of text boxes so I can make them maintain equal height at all page widths using display: flex. I previously got help from @tuanphan(thank you) but the code and elements Tuan targeted don't apply to my real website. Meaning, when Tuan targeted a row using .span-12>.row on my test website, the same code does not work on my real website.

So I'd just like to know how to target certain rows on any website. I can't find any mention of targeting rows anywhere online so far.

Any help would be appreciated!

Thanks

Link to comment
  • Replies 3
  • Views 1k
  • Created
  • Last Reply
9 hours ago, tuanphan said:

Hi. Can you share link to real site?

Hi @tuanphan,

I don't have things ready on my real site, but I created a page on my test website that has the layout I want on my real website.

As you can see, I just want the grey text boxes shown below to maintain equal height at all screen widths (I outlined the row in question in red). How  do I make the grey text boxes maintain the same height?

I'm hoping your answer will be enough for me to reference it on my real website.

Website link: https://cobalt-endive-6g42.squarespace.com/

Website password: 123

842853057_TestPage.thumb.jpg.28b1dc1021f41e3671ab063e70d31720.jpg

Link to comment
On 3/8/2021 at 12:27 AM, roem said:

Hi @tuanphan,

I don't have things ready on my real site, but I created a page on my test website that has the layout I want on my real website.

As you can see, I just want the grey text boxes shown below to maintain equal height at all screen widths (I outlined the row in question in red). How  do I make the grey text boxes maintain the same height?

I'm hoping your answer will be enough for me to reference it on my real website.

Website link: https://cobalt-endive-6g42.squarespace.com/

Website password: 123

842853057_TestPage.thumb.jpg.28b1dc1021f41e3671ab063e70d31720.jpg

Test site - real site will need a different code

/* equal height text boxes */
@media screen and (min-width:992px) {
div#page-604506cb630cdc10783637b6 .span-12>.row:nth-child(2) .sqs-block-html>div {
    min-height: 200px;
}
}

 

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

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.