Friday, December 12, 2014

Media Queries

On Thursday and Friday I worked on media queries which turned out to be more annoying than expected. On Friday, Sam found out that my style was not being applied even without the media query which is obviously a problem. I applied a text color to <h1> which is what I should of done in the beginning. I don't know why the background color was not changing though but I should be able to do more with the media queries now. Anyway, right now the list is set to green all the time and black when the device width is more than 480px but I also got orientation working so that when the phone is landscape the text changes to pink.

1 comment:

  1. Ahh, the joys of debugging! :-( Once you start mixing CSS and JavaScript, the interactions can become quite complex. That means lots of awful (I mean fun and challenging ;-) opportunities to debug. You need to learn to do it, and hopefully do it well. There is no getting away from it.

    ReplyDelete