Forum Moderators: not2easy
<style>
div#mainDiv {
position: absolute;
width: 600px;
left: 50%;
margin-left: -300px;
padding: 2px;
}.label {
font-weight: bold;
width: 100px;
}.value {
}
</style><div id="mainDiv">
<span class="label">
label
</span>
<span class="value">
value
</span>
<div>
so I tried absolutely positioning the 2nd span:
<style>
.value {
position: absolute;
left: 100px;
}
</style>
Which sorta worked until my label or value got too large to fit in the mainDiv.
To make a long story short, I've tried changing the spans to floated divs (including a clearing div), which doesn't work if the value gets large enough to wrap.
Should I just use a table? The more I think about it, this type of layout actually is what tables are supposed to be for right? In my zeal to convert out old table layouts to divs, have I gone too far?