Posts

Showing posts with the label html

IE8, Javascript Errors and console.log

Ran into an issue with IE8 and using the JQuery validation framework. Basically what was happening was that the validation framework was kicking in and identifying the errors (correct) but the form was still getting submitted to the server. (Incorrect!) Anyway after some investigation I found that it was the  console.log statements in the javascript code that was causing the issues. As I was using the developer toolbar provided with IE I wasn't seeing the issue this is because the console object gets created when you open the developer toolbar duh! So if you are getting some weird behaviour check that you don't have any console statements in you Javascript files.

CSS - Styling Tags

Sometimes I forget how CSS sees the relationship from one tag to another and how to apply different CSS styling rules so I'm writing this post to help me remember. I'm using the book 'CSS - The missing manual' as a reference. Ancestor : A HTML tag that wraps around another tag is its ancestor Decendent : A tag inside one or more tags is a descendent. The <title> tag is inside the <head> and <html>  tags Parent : A parent tag is the closest ancestor of another tag. The <head> tag is the parent of <title> Child : A tag thats wrapped by another tag is a child tag. Sibling : Tags that are children of the same tag are called siblings Styling Groups of Tags To style groups of elements for example to have all header tags to have the same font and color you can create the following rule:  h1, h2, h3, h4 {color: #0EF333;} The Universal Selector (Asterisk *) An asterisk * is a universal selector for selecting every elem...