#day14

Img

Hello everyone! Today i will be telling you few tricks for CSS 1) * selector The * enables you to select all elements of a particular selector. For example, if you used *p and then added CSS styles to that, it would do it to all elements in your document with a

tag. 2) Overriding elements: You can avoid overriding of element in later part of code by adding !important in front of that element. Example: .section h2 { color:red !important; } 3) Centering is tricky, because it depends on what you’re trying to center. Let’s take a look at the CSS of items to be centered, based on content. * centering text is done using "text-align:center;" * centering other elements of HTML is done using "margin: auto;" Thank you! done forget to check other programming posts on my account and follow! #day14

Read More