Blog Posts

Posted by: Brent Meacham on Apr 30, 2011

Learning little tricks

I have never been a web designer. I have avoided doing anything more than a “this is my web page” web page. I didn’t want to have to deal with making something pretty, as well as functional. Pretty has never really been my thing. So when I started in the class to learn simple css and html, I started at the beginning. For example, one of my first questions was, “What is a <div>?” since then I have learned some cool tricks, not necessarily to code, but to debug. There is this really cool thing in Chrome where you can inspect the element you are on.

It is pretty cool because you can find what is making the item look or act that way at run time. Often that changes depending on user input, so seeing what it looks like at any given time is pretty nice. Then you can copy that code and make other elements the same. (thank you Tiffany)

There is also a cool thing in visual studio where you can insert the namespace of an element by simply pressing control + period then enter, while on the name of the element. I cannot tell you how much time I have spent looking for the namespace of something. I would find some example code and it did exactly what I wanted, but when I put it in my code, it didn’t have the namespace. And there isn’t a nice easy place to find them that I could find. This trick makes me happy. (thank you Jason)

Other tricks I learned aren’t so much tricks, as they are how you do things, like center a div. So I will not go into detail. But lets just say that my previous attempt was to press space 20 times till my text was in the right place.


Add new comment
Please answer the question below: