I have to divisions, "abar" and "meat". I want "abar" to float left, with "meat" running beside it on the right. That part works. Where I'm running into trouble is that I need a bit of padding or margin for the content in "meat" so it doesn't start right at that left edge of "abar". I've run my css through the w3 validator and it comes up clean, but I'm not getting the content to move at all. The CSS:
As you can see, in my desperation I tried both padding and margin on the left side. Neither one has any effect.
As for the html, it's totally straightforward...
Where am I going wrong here?
Code:
#meat
{
margin-top: 0px;
margin-left: 50px;
padding-left: 50px;
height: auto;
font-family: tahoma;
font-size: 12px;
font-weight: 500;
color: #663333;
text-align: left;
}
As you can see, in my desperation I tried both padding and margin on the left side. Neither one has any effect.
As for the html, it's totally straightforward...
Code:
...<div id="abar">Content</div><div id="meat">More Content</div>...
Where am I going wrong here?