djtizzlemaster
Programmer
i am trying to position spans a certain way within a div.
this ^ is pretty much how i want it to look, but so far i am doing this using absolute positioning, and i know there has to be some easier way to do it.
here's the code i'm currently using:
in case this helps, here's the xhtml i'm using:
isn't there some easier way to push span.entrydate, for example, to the far right of the div?
this ^ is pretty much how i want it to look, but so far i am doing this using absolute positioning, and i know there has to be some easier way to do it.
here's the code i'm currently using:
Code:
div.entry {
border: solid;
width: 500px;
margin:0 auto;
text-align: left;
}
div.entrycontent{
padding-top: 20px;
}
span.entrydate {
position: relative;
left: 250px;
}
span.entrytitle {
font-weight: bold;
left: 130px;
position: relative;
}
in case this helps, here's the xhtml i'm using:
Code:
<div class="entry">
<span class="entryname">
billie jean
</span>
<span class="entrytitle">
interesting stuff
</span>
<span class="entrydate">
1999.12.31
</span>
<div class="entrycontent">
here's an entry. it's about stuff and quite frankly i find it to be extremely interesting.
</div>
</div>
isn't there some easier way to push span.entrydate, for example, to the far right of the div?