Blog

Latest Articles about PHP, CSS, jQuery and ∞

Cross-browser transparency

Cross-browser transparency

How to do it? You can make any element transparent by using “opacity” property and a value the only thing is, this declration is treated totally differently in all browsers. With four separate declrations, you can cover all browsers and fortunately they don’t interfere with each other. In this example I’ve used 70% transparency: .transparent_element { -moz-opacity:...

Read More

Accordion with jQuery and CSS

Accordion with jQuery and CSS

The jQuery accordion plugin works with nested lists or just nested divs. There are also some options available to specify the structure, the active element (to display at first) and to customize animation. This plugin will come in handy when you are dealing with orgonizing a good chuck of content. HTML Markup In this markup I’m using nested divs, an <h3> is the heading of accordion...

Read More

Dropdown with jQuery and CSS

Dropdown with jQuery and CSS

Here is a solution for a very simple drop down menu system. All you need is jQuery and these below few lines of JavaScript and CSS. The features of this menu system are: Unordered list as menu structure Absence of mouse events within html Timeout effect Cross-browser compatible (even IE 6) Multi-level and retains “trail” Easy to adopt styling Minimal JavaScript How to do...

Read More

Conditional Stylesheets for IE

Conditional Stylesheets for IE

We all have dealt with IE issues and bugs but you don’t have to keep banging your head against the wall when you can fight with IE problems with conditional stylesheet. This way you can code hack-free and you don’t have to worry about how dangerous hacks will behave in future, you also get to keep your main stylesheet clean and valid. You can also use conditional tags for loading...

Read More

Useing glob() to Find Pathnames

Useing glob() to Find Pathnames

The glob() function searches for all the pathnames matching pattern according to the rules used by the libc glob() function, which is similar to the rules used by common shells. The downside of this function is it will not work on remote files as the file to be examined must be accessible via the server’s filesystem and it isn’t available on some systems (e.g. old Sun OS). glob() ...

Read More

Redirecting with .htaccess

Redirecting with .htaccess

Using the following .htaccess code, you can redirect your users to another destination. In this example we are redirecting the visitors to a "Under Construction" page (construction.php). Make sure you upload your .htaccess files in ascii mode, sending it up as binary will break it and usually make your server unhappy and don’t forget that .htaccess does not work if you’re on...

Read More