Hi, I'm currently learning Ruby on Rails using "Agile Web D. with Rails." I am using RadRails as my development environment. Everything has been going along well, until the end of chapter 7. Just before the end of the chapter, we set up our store pages so that they can be styled with the depot.css stylesheet. This is where I run into my problem. The stylesheet only seems to work partially. The divs have been moved properly, but I can apply no other styles to the "side" div. No matter what value I use for the "background" style it remains white, neither can I draw a border around it. Styles also do not work on the "main" div. Styles seem to work fine for the "banner" div. Perhaps someone who's been through this book has seen something similar? Or maybe it might ring a bell for someone else. I'd really appreciate any clues you can throw my way. Thanks!
on 2006-01-18 01:15
on 2006-01-18 01:54
Not sure what your issue could be. Have you tried downloading the code for the book and comparing it to your code? It has to be something in the HTML or CSS, not rails.
on 2006-01-18 02:03
I'm only using the code downloaded from the book's website. I agree that it shouldn't have anything to do with rails. I was mainly interested in finding out if anyone else had run into a similar problem.
on 2006-01-18 02:39
Hi, Terry, could you post the rendered page source and the css the page is loading. sometimes a few more pairs of eyes will see the problem... Regards Jan P.
on 2006-01-18 02:39
i went through the book last week and was able to change those styles, including the side div color. perhaps it's a browser issue, or a typo, like a missing quote? the errata for the book can be found here: http://books.pragprog.com/titles/rails/errata _______________________________________________ John McGrath http://fryolator.com <http://fryolator.com/>
on 2006-01-18 02:42
Hi all, Thanks for the help. I must have had a typo in my .rhtml code. I copied over the .rhtml code from the downloaded code and things are working now. Not only am I learning Ruby on Rails, I'm also trying to cram all this html and css in too. My brain hurts!