What I am trying to do is create two columns of text within a fixed width, but I don't want to specify the width of the individual columns. I thought DIVs or SPANs could do this with the right CSS but I haven't been able to get it to work. Perhaps this is a case where a table should actually be used? (and please don't suggest a UL!)
This is what I want the text to look like. The - would be in one column and the rest of the text in another.
This is the code I thought would do it.
But it makes the text look like this.
Any suggestions?
This is what I want the text to look like. The - would be in one column and the rest of the text in another.
Code:
- ksdjf djisdf sdkoflpsdj sdfj dfsdfsdf sdfs sdf fs dfs sdf sdfsd
Code:
<div style="width:300px"> <div style="float:left">- </div> <div style="float:left">ksdjf djisdf sdkoflpsdj sdfj dfsdfsdf sdfs sdf fs dfs sdf sdfsd</div> <div style="clear:left"></div> </div>
Code:
- ksdjf djisdf sdkoflpsdj sdfj dfsdfsdf sdfs sdf fs dfs sdf sdfsd
Comment