silvercircle/github/io
Twitter Facebook Google+ Google+ Email

Topic: Web development - overview

2 articles in this section. Page 1 of 1

Strange unwanted padding around images and how to fix

Last modified:
356 Words
12:19 | by AlexVie
Reading time: approx. 1 minute(s)

Sometimes, images enclosed by divs or other block level elements show apparently strange and unwanted 2-3 pixels of padding on the bottom edge even though the containing element has no padding set at all.


YouTube embedding with correct aspect and any width

Last modified:
525 Words
23:56 | by alex
Reading time: approx. 1 minute(s)

This is a HowTo and deals with the problem of embedding YouTube videos at any desired size. The size of the video should be determined by the surrounding container. No fixed width and height values are needed.

css