Chapter 20: Code snippet for style.css shows as undefined

When I reached this part of the book “Cookies” when creating a footer for the accept cookies message, the code shows as “undefined”:


Fortunately I was able to find the correct code from the final version of the project materials. I thought it would be helpful to report this incase anyone faced the same issue.

@alobaili thanks for letting us know! We’ve picked this up as a bug in our ePub renderer (because it’s a language we don’t typically use) and should be rolling out a fix and updated ePub version soon!

I’ve come across this too in the eBook for CSS snippets. Another option if you don’t want to dig the code out of the final project - you can grab it from the web version of the book: