here's my code:
<div id="Notify" style="clear:both;">
<div style="text-align:right;">
<div style="text-align:left;">
Send Table to Standards By Email. (everything below is a placeholder)
<br /><br />
Saved at: @DateTime.Now.ToString()
<br />
Saved by: 107
<br /><br />
<input type="submit" value="Send Email" />
</div>
</div>
</div>
<br />
<br />
<div id="PTable">
Products Table Placeholder
</div>
When I try this, everything is aligned to the left. If I use float:right, then PTable and Notify are side by side. As opposed to PTable being below Notify.
What I would like is: Notify on top and all the text in its inner div aligned on the left border of the inner div. PTable under Notify aligned how the browser sees fit.
You want to use both float: right
and then text-align: left
on div#Notify
to achieve this effect. Further, to make sure PTable does not show up beside Notify, use clear: both
.
#Notify, #PTable {
clear: both;
}
#Notify {
float: right;
text-align: left;
}
JS Fiddle: http://jsfiddle.net/SDDG2/2/
This seems to work!
<div id="Notify" style="clear:both;">
<div style="float:right;">
<div style="text-align:left;">
Send Table to Standards By Email. (everything below is a placeholder)
<br /><br />
Saved at: @DateTime.Now.ToString()
<br />
Saved by: 107
<br /><br />
<input type="submit" value="Send Email" />
</div>
</div>
</div>
<br />
<br />
<div id="PTable" style="clear:both;">
Products Table Placeholder
</div>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With