Straight Lines: Distance of a point from a line

The distance between point P= (x0, y0) and Line L: ax +by+c=0 is shown in the figure below. For the general equation L= ax + by +c =0 m = -a/b The shortest distance between a point, P and a line is a perpendicular line segment. The slope of the perpendicular line formed from the … Read more

CSS Transforms

To translate, rotate, scale, and skew elements the CSS3 transform property is used. Transformation, in general, is an effect. It changes the shape, size, and position of an element. CSS3 supports both 2D and 3D transformation. CSS 2D Transforms: To modify the structure of an element as translate, rotate, scale, and skew, the CSS 2D … Read more

CSS 3D Transforms

To move an element relative to all three axes, i.e., the X-axis, Y-axis, and Z-axis the CSS 3D transforms are used. 3D transforms methods: Function Uses matrix3D(n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n) Used to define a 3D transformation by using a 4×4 matrix of 16 values. translate3D(x,y,z) Used to define a 3D translation. translateX(x) Used to define a 3D translation … Read more

CSS User Interface

Features like resizing elements, outlines, and box-sizing are a part of the user interface features facilitated by CSS. Some common properties of the CSS3 user interface are listed below. Values Uses appearance Used to make elements as user interface elements. box-sizing Used to fix elements in the area in a clear way. icon Used to … Read more

CSS Media Queries

To create a responsive web page that can adapt to conditions such as varied screen resolution, the CSS Media Query module was recommended by the W3C. It was first introduced in CSS3 and became a W3C recommendation in June 2012. The media-dependent stylesheets that were used in different media types (i.e. screen and print) found … Read more