I'm trying to use a relatively positioned <div> to create a positioning context
for a <p> such that the <p> will render within the <div> near the right edge.
I'm using XHTML 1.0 strict. My page validates in the W3C validator properly.
However, I'm not getting the correct results in IE or Mozilla for the PC.
I put screenshots here:
http://www.somerandomcrap.com/temp/cssscreenshots.htm
The word "Home" is the thing I'm trying to position. It's supposed to be inside
the horizontal blue bar, near the right edge. The blue bar is the <div>.
(I realize "Home" is also blue. I intend to correct that after I solve this
problem.)
Here's an excerpt from the code:
[...]
<body>
<div id="all">
<div style="position: relative;
background-color:#003399;
padding:3px;
margin: 12px 0 0 0;">
<h1 style="margin: 0;
padding: 0;
color:#ffffff;
font:Arial, Helvetica, sans-serif;
font-size: 12px;">
ASA Notes
</h1>
<p style="color:#ffffff;
font:Arial, Helvetica, sans-serif;
font-size: 12px;
position:absolute;
right:4px;">
<a href="/~ethan/meetingnotes/index.htm">Home</a>
</p>
</div>
[...]
Any assistance would be greatly appreciated.
Thanks.