Skip to main content


Showing posts from April, 2022

CSS Tips and Tricks on How to Get Common Things Done

CSS stands for Cascading Style Sheet and is the styling part of HTML (though not just limited to HTML). It is the primary part of modern WWW alongside HTML and JavaScript. CSS is designed to separate the presentation or the appearance part of a web page so that there is more control and flexibility, and less repetition owing to the fact that the same CSS file can be shared across all or many of the pages of a website. You can make changes just once and it will reflect in all the pages as modern websites use a certain style for most if not all the pages. In this article we are going to learn how to make certain styling with CSS in an HTML page . See this article for ways to change CSS with JavaScript. How to Center an Image HTML <img src="" class="center-img" /> CSS .center-img { display: block; margin: 0 auto; } Please note that the image needs to be smaller in width to be centered. You can also change the width by