MohamedG's Log

TW9oYW1lZCBFbC1HZWlzaA==

Making HTML Elements Scrollable

I’ve been styling my blog recently to make it more Win8-like (thank you for noticing!). I created some custom CSS file, but I ran into a problem with code. I use wide screens at work and at home, so I tend to break the guidelines and write more than 120 characters in a line of… Read more

Margin in XAML vs. CSS

According to W3C: “The ‘margin’ property is a shorthand property for setting ‘margin-top’, ‘margin-right’, ‘margin-bottom’, and ‘margin-left’ at the same place in the style sheet” respectively. Here’s the example W3C used to illustrate the order of properties in the shorthand: margin: 10px 20px 30px 40px; Top padding is 10px, right padding is 20px, bottom padding… Read more