web development
In this series, I’m going to take a look at both PHP’s error and exception models — what each is, how they work, and how and when to use the one or the other.
In this instalment, I’ll begin unfolding exceptions by expanding on the concept, as well as explain why they’re needed at all.
I didn’t quite know what to call this post, because I really want it to show up in search engine results. Why? Because I couldn’t find the solution online and it needs to be there! I guess the heading could have been any of the following:
Now you have a better idea what this post is about.
Posted by: Abraham
Categories: CSS
13 Aug 2010Most web developers know that you can apply multiple classes to an element in the form of a space-separated list:
<div class="comment author">...</div>
and then style the element with CSS based on either of those classes :
.comment { border: 2px solid #000; background: #F7F7F7; }
.author { border: 2px solid #F00; }
But what developers often don’t know, is how to target an element containing more than one class — not elements which contain only one of the classes, but only elements which contain all of the classes. So in this article, I’ll show you how to target an element which contains both (class X AND class Y), not just (class X OR class Y).
This topic can be very simple, but can also be a bit frustrating, depending on what exactly you want to do, so I will try to give a clean breakdown to simplify the process.
To enable a custom cursor whenever your mouse hovers over a certain area of a website, just use the css cursor property, like this:
An age old question with a simple answer:
How to position a div in the center of (any size) browser window?
Once you have created your html page, create the div you wish to have in the center of the window and give it an id:
<div id="container"> My center div... </div>
From here on we have two options: either CSS or Javascript (using JQuery) :
Let me show you how to copy data from one database to another in MySQL. First of all, you must be sure that you have the rights on both databases, with the user/connection you are currently logged in as. As soon as you have that, its really quite easy:
Part of doing Web Development is staying on top of your game and up to date with all the new techniques and technologies constantly coming out. Currently, the most prominent of these new toys are HTML5 and CSS3. In this series I’m going to be doing an overview of HTML5: What you can use now, what you should hold back on, and what you can do with it.
Part 1 will cover the structure of your html documents when switching from html4/xhtml to html5.
If you configure your site correctly and have a breadcrumb trail as part of your site, you can get that trail to display in google, as in the following image :
Posted by: Abraham
Categories: Javascript
27 May 2010In Javascript, how does one call a function when the name of the function is stored as a string in a variable, such as this :
var tmp = "function_name";
This is something I often encounter, especially when building larger AJAX applications where you’d like to be able to pass along the name of a function to call when the AJAX call completes, so I thought I’d post a quick note as reference.
Many newbie web developers struggle with this, so I thought I’d write a quick tutorial on how to force a user’s browser to download a file when a link is clicked, instead of the file (such as a pdf) opening within the browser.
Based in South Africa, we're a web-development company...
(3)
(5)
(4)
(9)
(6)
(5)
(14)
(2)
(2)
(2)