Question: I have a parent div and child divs with different width and height. How can I float the parent div with child's max effective without loss a space by absolute positioned elements.

The example:

<http://jsfiddle.net/KSbjT>

What kind of direction do I need to dig?

HTML

```
<div class="parent" style="width: 500px; height: 500px; border: 1px solid #000; background: red; position: relative;">
    <div style="width: 100px; height: 200px; border: 1px solid #000; background: blue;"></div>  
    <div style="width: 200px; height: 500px; border: 1px solid #000; background: green;"></div> 
    <div style="width: 100px; height: 200px; border: 1px solid #000; background: yellow;"></div>
    <div style="width: 100px; height: 200px; border: 1px solid #000; background: aqua; position: absolute; top: 200px"></div>
</div>

```

CSS

```
.parent div {
    float: left;
}

```

Answer: 
Having a build action - content does not embed the file into the .dll, it is deployed into your assembly directory (usually \bin), then in the same folder structure that you have the template in. That was confusing to write, so here is an example:

```
Project Directory    

    -Templates

       -EmailTemplateA

```

When complied and deployed, EmailTemplateA would be in the following location: `\bin\Templates\EmailTemplateA`

Now that we know where it is at, we need to use it. Below is a code snippet that would load a template, replace some values and then send your email

```
public void SendRegistrationConfirmation(string toAddress, string confirmUrl)
{
   const string subject = "Your Registration";

   //load the template
   var template = File.OpenText(AssemblyDirectory + " \\Templates\\NewProgramRegistration.Template").ReadToEnd();

   //replace content in the template
   //We have this #URL# string in the places we want to actually put the URL
   var emailContent = template.Replace("#URL#", confirmUrl);

   //Just a helper that actually sends the email, configures the server, etc
   this.SendEmail(toAddress, subject, emailContent);
}

```
You could store your templates in Local Storage:

<http://convective.wordpress.com/2009/05/09/local-storage-on-windows-azure/>