I have a slight problem with a div in Opera. Here is the HTML:
Here is the CSS:HTML Code:<div id="sidebarcol1"> <div id="side1row1">Account value</div> <div id="side1row2">Account funds</div> <div id="side1row3">Open P/L</div> <div id="side1row4">Today's P/L</div> </div>
As you can see, this is a column of data with four rows inside. I put a border around the rows and I can see that the column expands in width to fill its container instead of contracting to fit the rows. Is there any way for me to get around this? What am I doing wrong?Code:*{ float:left; display:inline; } ... div#sidebarcol1{ color:#898989; position:relative; margin:12px 0px 0px 10px; border:1px solid #f00; /* For Testing */ } div#sidebarcol1 *{ clear:left; text-align:right; font-weight:bold; margin:3px 10px 0px 0px; border:1px solid #00f; /* For Testing */ }



Reply With Quote

Bookmarks