content column
All templates are XHTML 1.0 and CSS2/ tableless.
2 columns / menu fixed, content dynamic.
2 columns layout grid. The navigation column is fixed, the content column is dynamic and adjusts itself to the browser
window.
The layout also works with an absolute height template 100% height
more nice and free css templates
html {
padding:0px;
margin:0px;
}
body {
background-color: #e1ddd9;
font-size: 12px;
font-family: Verdana, Arial, SunSans-Regular, Sans-Serif;
color:#564b47;
padding:0px 20px;
margin:0px;
}
#content {
margin-left: 200px;
background-color:#fff;
overflow: auto;
}
As Figure 7-8 reveals, we have what we wanted. The
order of the values is obviously important, and follows this pattern:
margin: top right bottom left
Figure 7-8. Uneven margins
A good way to remember this pattern is to keep in mind that the four
values go clockwise around the element, starting from the top. The
values are always applied in this order, so in
order to get the effect you want, you have to arrange the values
correctly.the placement of a floated element. They are vaguely similar to those
that govern the evaluation of margins and widths and have the same
initial appearance of common sense. They are as follows:
1. The left (or right) outer edge of a floated element may
not be to the left (or right) of the inner edge of its parent
element.
Straightforward enough. The furthest to the left the outer left edge
of a left-floated element may go is the inner left edge of its parent
layout, but we're going to modify it slightly. Instead of four
cells, it will only have two: the sidebar and the rest of the screen.
The navigation bar will become part of the main display, and the
blank "spacing" table cell will be eliminated entirely.
This will leave us with the following:
<TABLE CELLSPACING=0>
<TR>
<TD>sidebar</TD>
<TD>navigation bar and main display</TD>
WARNING
Note that none of this applies to table elements.
CSS2 introduces new properties and
behaviors for handling tables and table content, and these new
features behave in ways fairly distinct from either block-level or
inline formatting. See Section 10.1, "Changes from CSS1" for an overview.
The simplest category of XML Java applications is the kind of Java application that stores information in XML documents (files). This is illustrated in Figure 1. By using XML to create your own markup languages (i.e. your own file formats for your information) in an open way, you don't have to use propietary and binary file formats. Using XML over proprietary binary file formats, allows your applications to have immense inter operability across platforms, applications and even programming languages. Since any kind of markup language can be defined using XML (you can even formalize it by creating a DTD for it) applications can store their information using their own markup languages. For example, address book information can be stored in an AddressBookML file. A few commercial programs currently available allow saving their application data to XML files, e.g., Framemaker can save its documents as XML files.
In order to create applications of this category, you might have to define a DTD for your information. Then you have to write classes to import and export information from your XML document(s) (validating using your application's DTD if you have one). You must also write the classes which create the user interface in your application. The user of your application can view and modify information using the GUI (graphical user interface), and they can save (and load) their information to (and from) an XML file (that might use your DTD); in other words, they can save (and load) their information to (and from) an ApplicationML file (where Application is the name of your application). Some examples are AddressBookML, MathML, SVGML, etc.
The classes that import and export information from your ApplicationML file must use the parser and SAX or DOM API in order to import the information. These classes can access this information by using one of the following strategies:
-
Use DOM to directly manipulate the information stored in the document (which DOM turns into a tree of nodes). This document object is created by the DOM XML parser after it reads in the XML document. This option leads to messy and hard-to-understand code. Also, this works better for document-type data rather than just computer generated data (like data structures and objects used in your code).