This will have a receiver sender fixed the left side and your date hugging the right of your window. No JavaScript!
<html>
<head>
<title>SO</title>
<style>
#content
{
margin-right: 10px;
width: 100%;
}
#receiver, #sender, #subject, #date
{
padding-right: 5px;
}
#receiver
{
width: 50px;
}
#sender
{
width: 50px;
}
#subject
{
width: 100%;
overflow: hidden;
}
#date
{
width: 50px;
}
</style>
</head>
<body>
<table id="content">
<tr>
<td>
<div id="receiver">
Receiver
</div>
</td>
<td>
<div id="sender">
Sender
</div>
</td>
<td id="subject">
<div style="height: 20px;">
This is my long subject that hides its self when the window is too narow.
</div>
</td>
<td>
<div id="date">
May 6
</div>
</td>
</tr>
</table>
</body>
</html>
You may change the content
width
to what percentage
you would like or auto
and or set margin
s.
You may not that it works better than Google in the sense that if the subject is too long then it gets hidden also. I just mixed mine up and put sender there when it should be in the order of sender
receiver
subject
emailContent
Date
but you get the point im sure.