I'm a web designer and front end developer from Delhi, India and I love designing and internet spheres. I started dabbling with graphic and web design at a young age and with the time, I jumped into development to know the web deeply. As of now, I do freelancing sometimes and also working with one of the best employer 'Sourcefuse Technologies' and spend most of my day time playing with these following tools.
SASS provides us a way to define variable and style-rules like you define classes and objects in other language and you can re-use them throughout your stylesheet. you can also perform calculations on-the-fly using sass variables.
Although, you can access the wordpress database directly through the inbuilt API/functions like ‘the_content’, ‘bloginfo’ and others. But there might come a time when you are required to go down, right into the database to fulfill your specific needs. In such cases, you have the ability to use $wpdb class and SQL, to get your data directly.
Vertical CSS margins can be little tricky sometimes, when designing a layout. So, if you have begin to work on your layout and if you are not getting the expected vertical spacing between elements, go and explore whether or not, margin collapse is the culprit.