Hide elements on mobile version using CSS

Problem You designed a web page and a particular element needs to appear only when the user visits the page from their Desktop. If the user visits the page from a smaller device, like a mobile or tablet, the element needs to be hidden. Solution CSS has a feature called media rules. Media rules allow […]

How to make an item transparent in CSS

Transparency in CSS Problem On a web page an HTML element is placed on another and the first one wish to look and feel transparent. Solution The CSS has a declaration called opacity. Example We have an example HTML page with solid background color and a button placed on that. HTML The code looks like […]