Archive

Posts Tagged ‘CSS’

Coding Standards for CSS, HTML, JavaScript, Python, C and others by Google

Jul 21st, 2012

Google has made coding standards and style guide for CSS, HTML, JavaScript, Python, C++ and Objective C. If you work on any of these then you may like to have a look at those page. As usual the guidelines writing is simple yet useful. For CSS and HTML there are… (Continue)

CSS: Z-index is Not Working

Jan 16th, 2012

If you are tired of correcting z-index and it is still not working then check the following points in your CSS code:
1. z-Index only works for positioned elements:
So, value with position:absolute, position:relative, or position:fixed will respond to z-Index.
2. If you are setting z-index to menu kind of… (Continue)

CSS Overlay: Text at the Bottom of Image or Text Ribbon

Dec 5th, 2011

Here is a working sample with code for CSS overlay on Images. It is not using any JavaScript library. It is just HTML and CSS. It is very simple to create. Just you need to adjust the css for making the alignment very specific if you HTML is different. Important… (Continue)

nth-Child and Two class selector

Oct 26th, 2011

I recently used nth-child() selector and two class selector.
Uses of nth-child() is simple. Just need to remember the small syntax. The below CSS will make table’s row alternate in color. Table’s id is poslist as used here.
#poslist tr:nth-child(even) {background: #DDD;}
#poslist tr:nth-child(odd) {background: #FFF}
 
I need to… (Continue)

Default List Design using CSS (UL/OL/LI)

Aug 20th, 2010

Designing List using CSS is not a big thing. Generally I need to use few lines for simple setting of List (<li>). One things that creates problem every time is IE6 and IE7. I always see by surprise why why so much padding/margin IE6 and IE7 getting whereas IE8 and… (Continue)

Compressing CSS Files on the Fly

Jul 21st, 2010

Compression can be done using Apache or PHP settings. If you are not using those two methods and using this method of clearing cached CSS file on Client side then the code below by Reinhold Weber can be useful.
Using the below method for trimming whitespace and comments may not… (Continue)

CSS for Print Media for your Web Site

Mar 21st, 2010

All blogger spend time making his blog beautiful. Blogger want to style his blog or web site by selecting right template for his blog. For WordPress user, there are plenty of themes available free of cost and premium ones also. After selecting a very good, suitable for his content template,… (Continue)

Image Swap with Text for Search Engine Optimization

Nov 29th, 2009

This article is for CSS Image swap with text for SEO purpose. This article is also for the following reasons:
I need to create a template kind of system on a page, so that new row can be added easily without any new consideration of the styling. All image was… (Continue)

Fast Load JavaScript and CSS Files

Oct 15th, 2009

Want to decrease response time of your webpages? Decreasing the size of JavaScript and CSS files is one of the techniques used for better performance of websites.
Yahoo Compression tool for JavaScript and CSS is excellent tool for minifying JavaScript and CSS files. It can achieve over 20% compression. I… (Continue)

Adding Content Before & After HTML Tags using CSS

Aug 15th, 2009

Using css2 we can add content before or after any HTML elements. This gives us control over the dynamically generated content.
Suppose, some HTML contents are coming through widget, And we do not have any control over them. Then, we can either use server side scripting language to get the… (Continue)