Sending Email with AJAX: Building a Small Application
AJAX has become ubiquitous, thanks to the fact that it gives web developers the ability to create applications that make http requests without reloading the page on which the application is running. It is also extremely versatile and powerful. This article, the first in a series, will start you on the way to creating an AJAX-based email application.
Sending Email with AJAX: Building a Small Application - Spicing things up: writing the CSS rules for the AJAX email application (Page 3 of 4 )
To keep things really simple, the whole structure of the user interface you just saw will be comprised of only three DIV elements. The first one will be the containing block that will wrap up both the left and right panels respectively. With reference to the process for collecting message data, I’ll use only two regular forms, handy for adding new contacts as well as for sending email messages.
As you can see, the user interface utilized by the program is quite simple, so here are the CSS styles that will give the look and feel for each (X)HTML element included in the web document:
As shown in the CSS declarations above, I’ve styled the three DIVS mentioned before, together with the buttons and form fields that make up the respective web interface. Also, I’ve specified some additional styles for <h1> headers and links, but as I said earlier, feel free to write the CSS rules that best suit your specific needs.
At this point, I’ve shown you the CSS styles tied to the (X)HTML markup. Now, let’s move forward and define the structure of the web document, in order to finish building the application’s user interface. Scroll down the page and keep on reading.