Skip to main content

Posts

Showing posts from 2016

Solution to "child margin affects parent" in CSS

The browser implementation is that when the parent has no content and the child requests for margin, the parent is brought down instead of child going down. The solution for these are listed below with their side effects. floats , You  have  to float elements border-top , This pushes the parent at least 1px downwards which should then be adjusted with introducing  -1px  margin to the parent element itself. This can create problems when parent already has  margin-top  in relative units. padding-top , same effect as using  border-top overflow: hidden , Can't be used when parent should display overflowing content, like a drop down menu overflow: auto , Introduces scrollbars for parent element that has (intentionally) overflowing content (like shadows or tool tip's triangle) See the Pen Relative with Margin by Manikanta ( @immnk ) on CodePen .

First time to America

I'm here to explain my first experience in travelling to the United States Of America. I went on B2 visa which is for travel or medical treatment visa. Visa application and process is straight forward for me and with little hassle. This document is an overview post the visa approval. First thing is we need to book a ticket. Checking online only doesn't give you the best prices. Do check with travel agencies for a good price. Baggage is strict and make sure you don't take more weight. While thinking to choose between window or aisle seat, always go for aisle. You might be excited to take a window seat for first time but you will be bored within no time and sleep. Aisle seat makes you move out of our seat whenever you want and go around the plane without disturbing others. Buy good quality bags because luggage is always handled rough and do not expect cheap quality bags to withstand that. Do read your transits properly so that you are not confused and left strand