I have experimented with this scenario so far,
My goal is to position two divs on the left and right sides within another div, using float:left and float:right resulted in them appearing on separate lines.
What I envision is something like this,
[[leftcap]................. TITLE ............... [rightcap]]
I apologize for not being able to provide a clearer representation.
HTML
<div id="shell">
<div id="title">
<div id='leftcap'>o</div>
TITLE HERE
<div id='rightcap'>x</div>
</div>
<div id="content">Content</div>
</div>
CSS
#shell {
width:500px;
height:300px;
background:lightGrey;
}
#title {
background:green;
padding:5px;
border-radius:25%;
text-align:center;
}
#content
{
text-align:center;
vertical-align:center;
}
#leftcap
{
width:10%;
}
#rightcap
{
width:10%;
}
#leftcap,#rightcap
{
height:100%;
width:10%;
background:red;
}
UPDATE: I managed to address the issue by using the float property. I now have another query - how can I vertically center align text within a container div?