Change Styles Snippets


16 April, 2012   

This CSS code will change link font-size

You may add rounded corners to your CSS3-based elements, like a border or button. You can change the radius to increase or decrease the rounding of the corners. This is a styles definition rounding of each corner, it lets you individually round each of the 4 corners (still not supported in IE).

Sometimes it's desirable to change a style of the first and/or last elements in a container. You can do this by manually applying classes to your HTML elements: ("last-child" still not supported in IE8).

13 November, 2012   

Use this snippet to let your visitors change the background color of your Web page. Combined with a cookie, the setting could follow them through your whole site.

03 August, 2013   

Example shows bash code to change CWD to file's directory

18 January, 2011   

Now you can write IE specific styles in a regular stylesheet, by prefacing the CSS selectors with body.

03 June, 2013   

Plots a histogram from an external file with the frequency of each bin shown above each bar. The XTick is also the intervals of the histogram.

Change Date from dd/mm/yyyy to yyyy-dd-mm

06 March, 2013   

There are two methods for creating separate styles depending on the media type. both example given below:

07 April, 2012   

CSS code to change Text Selection Color

16 March, 2013   

CSS code example to change Text Selection Color

21 February, 2011   

Change Text Selection Color

jQuery code example to show content based on select option.

When placed in startup scripts, this snippet activates every time user opens a file. It then traverses the directory path backwards and looks for user created project folders. If one is found, script offers to switch it on. This is very useful when working with a number of projects at a time.

This PHP script will get the day of the week from the server date and then display an image (jpg or gif) to match.

30 April, 2011   

Countdown to the start of Summer in the Northern Hemisphere: June 21, 2011; 1:16 PM Eastern Daylight Time (EDT)

20 March, 2012   

HTML code example for Style HTML elements

26 December, 2011   

Example PHP code to navigate calender in HTML pages

03 January, 2013   

Choose a color scheme as found in the Display control panel applet

15 December, 2011   

Here shown Java code example - The protected keyword