CSS-P: Demystifying HTML Element Positioning Contexts By Evan Egalite
The purpose of this article is to show how to use Cascading Style Sheets to control the layout of nested HTML elements on a page, and to demystify the confusing absolute and relative element positioning scheme used by the browser.
The Problem with HTML Tags HTML tags become a problem when you use them to manage both content and how the content is displayed. Consider the following HTML code: This is a sample sentence, fiend.
Let’s say we want to apply bold formatting to the word ‘fiend’. We simply add the b (bold) HTML tag. This is a sample sentence, fiend.
Now let’s say we want to apply italic formatting to the whole sentence. This is a sample sentence, fiend.
We would also like a certain font and font size.
This is a sample sentence,
fiend.
You can see how this can become a problem. Every time you want to add a new style, you have to add another set of formatting tags. The amount of formatting is proportionally to the number of formatting tags. HTML code written this way is difficult to read and maintain.
If we could separate the content code from the presentation code, then we could centralize the formatting code is a separate location – like a file. Then whenever we wanted to change the way the content is presented, we could simply modify the formatting code. Luckily, such a technology exists, it is called Cascading Style Sheets (CSS).
Easily send e-mail directly from your custom applications. Works with all 32-bit Windows development environments and includes Paradox, Access, and Visual Basic examples.

$29.95 Sale...$22.50 |
psSendMail DLL psSendMail™ is a Windows™ DLL that provides the ability to send e-mail messages. The purpose of this DLL is to make e-mail capability possible for those development environments that are capable of communicating with a DLL but cannot send e-mail directly. There are two interfaces to the DLL. The first interface, or Standard Interface, does not limit the length of the strings passed into each of the functions. This allows the calling program to add as many addresses as desired in the To, CC, and BCC fields. It also allows for unlimited length in the subject and the body of the e-mail. The downside, however, to this interface is that the calling program must make a call to each step in the process and must utilize PChars (Pointer to array of character, null terminated). The second interface, or Quick Send Interface, is a wrapper function that internal makes a call to each of the appropriate functions from the first interface. The downside to this interface is that you cannot supply CC or BCC addresses and the To, Subject, and Message Body are each limited to 255 characters, but they are passed as standard strings.
Pre-Pay Support Hours @ a Discount Pre-pay for support hours at $75 per hour. Hurry, our pre-paid support rate is going back up to $92 per hour February 5! Our regular (not pre-paid) support rate is $110. This offer applies to NEW AND EXISTING clients!
Delphi, Paradox, Access, VB, and ASP!
The Fine Print: To take advantage of this offer, you MUST use our online store to purchase pre-paid support hours. The pre-paid support hours apply to any work done on or after the date of purchase. Sorry, pre-paid hours do NOT apply to past work.
Open a Support Account Open a support account with us instantly online. If your business doesn't have a computer department or your computer department is over extended, Prestwood can help. Use your Prestwood support account for code audits, to get developer help, complete projects and for maintenance type work.
ASPSuite Beta Program Still Accepting Applications! Become part of our beta team and receive $659.00 in software for FREE! We will be releasing our Prestwood ASPSuite web application suite in January and we need your help to test it. As a reward, we will give you a complimentary copy and license of Prestwood ASPSuite and all current modules.
Prestwood ASPSuite allows you to easily add dynamic content to your web site such as a members database, eStore, private areas, knowledge base, online articles, news, press releases, resume database, and jobs database.
Learn More about ASPSuite:
See a live demo:
Apply to become part of our ASPSuite Beta Team
|