Categories
Uncategorized

How to override all styles in CSS

I recently came across a very unique requirement, I wanted to change all font-family(s) I had used for this site. I had defined font-family at many different places in divs, spans, h1s, h2s and where not, so I wanted some shortcut way to do this. Here is what I had used, {code type=CSS} * { […]

Categories
Uncategorized

Give a common CSS to all input tags

You may want to give all input tags a common CSS. That is you want all your Text Fields, Password Fields, Radio button, Submit buttons etc… all to have a common CSS. This can be done easily by simply including the below code in your CSS file as shown below. Here I am giving all […]

Categories
Uncategorized

Remove a div / text using CSS

To remove a div or some text, I had used the display:none ;property. Another option is using the visibility: hidden; visibility: hidden will hide the element, but it will still take up space in the layout. display: none removes the element completely from the document and will not take up any space, even though the HTML […]