What is the difference between the Stack In ID and the Stack Out ID

Hello Stacks Developer and Developers… Needing to use the Stack ID to apply a descendent selector. Not sure which to use, e.g. id="stacks_out_70500_page0" or id="stacks_in_70500_page0".

  • I can see there is a lot going on with Stacks as it relates to developing. Looking to gain a top level understanding as to what the In and Out ID’s are for?

  • Which should I use when targeting an item via a descendent selector in this case “button”? See example below.

#stacks_out_70500_page0 button { border-radius: 3px 3px 0px 0px; padding: 8px 16px 16px 16px; }

Kind Regards,

Most developers use the stacks_in_xxx IDs as these are also available through the Stacks API. However you can use the outer div too. Whatever works for you.

To get a better understanding you can visit the Stacks API docs: http://api.yourhead.com/
We chat about API on our chat board. I’m not allowed to link to that here. But you can find the details on our Blog: http://blog.yourhead.com/beta-testing-time/



Hello Isaiah… Thank you for taking the time to provide me with guidance regarding the inner workings of Stacks. Also I hope it was OK to pose the question here as this might be a little off the normal RW Forum topic.

While I don’t have plans to develop stacks, this info goes a long way in helping me understand the how and why of things when it comes to the published code. Again many thanks for the resources.

Kind Regards,

1 Like