spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / html / tutorials / 19 / 4

index123456

Tutorial 19: CSS Positioning, Part II

Developer News
MicrosoftÂ’s Automated Agent: Can We Talk?
Borland Finally Sells CodeGear
Red Hat Heads For The JON 2.0

Placing elements below columns

As I explained in Tutorial 18, absolutely positioned elements are completely removed from the document flow. So, placing elements after the two columns will cause the browser to display them below the element before them in the document, which is the DIV with an ID of body. This element's height is governed by its contents which in this case is only the right columns, because the left column is absolutely positioned and does not affect the layout of the rest of the document. The consequence of all of this is that any elements placed after our columns will be displayed below the right column. This is not a problem most of the time in our example, but it might be a problem if the left column is taller than the right column; in such a case, the left column would overlap the elements below it.

The only solution to this problem, unfortunately, is to make sure that the contents of the absolutely positioned column (which could be the left or right column; our example positioned the left column in the right column's padding, but you could do it the other way around) should take up significantly less space than that of the fixed-positioning column. The reason they have to be significantly shorter is that their width is fixed (in this case, to 10ems) while the right column takes up all the available space left. If the viewport of the browser is wide enough, this might mean considerably more than 10ems.

Here is our example, with a copyright example placed below the two columns. You can view the example here.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
 "http://www.w3.org/TR/html4/strict.dtd">
<HTML>
 <HEAD>
  <TITLE>Acme Computer Corporation Home</TITLE>
  <LINK REL="stylesheet" HREF="acme.css">
  <LINK REL="stylesheet" HREF="layout.css">
 </HEAD>
 <BODY>

  <DIV ID="header">
<P><A HREF="about/">About Acme</A> &#8212;
<A HREF="products/">Products</A> &#8212;
<A HREF="support/">Support</A> &#8212;
<A HREF="tips/">Tips</A> &#8212;
<A HREF="feedback/">Feedback</A></P>
  </DIV>

  <DIV ID="body">
   <DIV ID="intro">

<H1>Welcome to Acme</H1>

<P>Acme Computer Corporation is a world leader 
in object transfirbulation technology. We offer 
a variety of server, client and developer software 
that will cover all of your transfirbulation needs.
Our team of experts will help you integrate 
transfirbulation technology into your existing IT 
infrastructure, whatever the size of your
organization or the platform you are using.</P>

   </DIV>
   <DIV ID="main">

<H1>Acme News</H1>

<H2>MORONS Server 4.1.2 SP3 Build 4356 
Released!</H2>

<P>The newest MORONS server brings increased 
reliability, performance and a wealth of new features. 
With Version 4.1.2 Service Pack 3 Build 4356 you can 
improve your transpose transfirbulation factor by up 
to 35% with proxy garfing. Deploying MORONS Server 
couldn't be easier than the new FancyConfigurator 
made especially for MORONS. And of course, all the
familiar features of MORONS Server 4.1.2 SP3 Build 
4355 are still available!</P>

<H2>Transfirbulation Tips Featured Article: 
Proxy Garfing for MORONS.</H2>

<P>Iain T. Kidinn, head of the Proxy Garfing 
team that created the new Proxy Garfing features 
in MORONS. Server 4.1.2 SP3 Build 4356, explains
how you can use proxy garfing to raise transpose 
transfirbulation factors in this article in 
<I>Transfirbulation Tips</I>, our online magazine for 
MORONS users. Optimizing for partially transfirbulated 
data is the key, Iain points out.</P>

<H2>MORONS in the News: MORONS Suite 2000 
passes Transfirbulation Week's lab tests with 
flying colors</H2>

<P>The January issue Transfirbulation Week 
magazine, a leading publication on object 
transfirbulation technology, has put all of 
the components of MORONS Suite 2000 through 
their exhaustive set of lab tests, concluding 
that <I>"[MORONS Suite 2000] receives an 
overall score of 98%, the highest ever rating 
for any originating name sequencer we have tested."</I></P>

   </DIV>
  </DIV>
  <DIV ID="footer">
<P>&copy; 2000 Acme Computer Corporation. 
All Rights Reserved.</P>
  </DIV>
 </BODY>
</HTML>

index123456

http://www.internet.com/



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
Microsoft Article: HyperV-The Killer Feature in WinServer ‘08
Avaya Article: How to Feed Data into the Avaya Event Processor
Microsoft Article: Install What You Need with Win Server ‘08
HP eBook: Putting the Green into IT
Whitepaper: HP Integrated Citrix XenServer for HP ProLiant Servers
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 1
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 2--The Future of Concurrency
Avaya Article: Setting Up a SIP A/S Development Environment
IBM Article: How Cool Is Your Data Center?
Microsoft Article: Managing Virtual Machines with Microsoft System Center
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Intel Video: Are Multi-core Processors Here to Stay?
On-Demand Webcast: Five Virtualization Trends to Watch
HP Video: Page Cost Calculator
Intel Video: APIs for Parallel Programming
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Sun Download: Solaris 8 Migration Assistant
Sybase Download: SQL Anywhere Developer Edition
Red Gate Download: SQL Backup Pro and free DBA Best Practices eBook
Red Gate Download: SQL Compare Pro 6
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
How-to-Article: Preparing for Hyper-Threading Technology and Dual Core Technology
eTouch PDF: Conquering the Tyranny of E-Mail and Word Processors
IBM Article: Collaborating in the High-Performance Workplace
HP Demo: StorageWorks EVA4400
Intel Featured Algorhythm: Intel Threading Building Blocks--The Pipeline Class
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES
webref The latest from WebReference.com Browse >
Perl Pragma Primer · Implement Drag and Drop in Your Web Apps: Part 2 · How to Create an Ajax Autocomplete Text Field: Part 5
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
SQL Server 2005 Express Edition - Part 22 - Upgrading from Microsoft SQL Server Desktop Engine (MSDE) · Vyatta: Downgrades that Pay Off · NetMotion Brings Cross-Network Support to Wireless VoIP

Legal Notices.

URL: http://www.webreference.com/html/tutorial19/4.html

Produced by Stephanos Piperoglou
Created: March 08, 2000
Revised: August 15, 2000