Hey im looking for a simple way to redesign my data report to display without Table
Before i started redesigning the tables were outputing data in a semi formated order
Product : Detail
Product : Detail
The Table cells made sure that the product name and the details all started at the same point on the page just like all posts on the message boards start at a point
i have all this content inside 1 div now, displaying using <p> for paragraphs and breaking where needed
but my information looks like this
Product : details
Extended Version : details
ID : details
sanity : details
making it slightly harder to read, ive bolded the left hand side of the : to make it a little better but id prefer if i could somehow make
it read
: details
: details
: details
: details
as i read down with the titles to the left still but there is spacing between the say
product
and the
:
ive tried
but it aligns so badly it makes me want to cry
any help on this would be great
Cool, I thought that was it. Basically the div’s will take up as much space as their child elements inside. The width is done to expand all divs to the same width, so text will align properly based on the width.
I ran into this issue today while trying to layout tabular-like data. I wanted to do it with a table but was told to do it with divs and css.
The problem I came across is that I needed a containing div to have padding and a border, then I need to create divs inside of this to act as table rows. But some of these table rows have 2 column within them, others have three. And once I started floating things, it just became a mess.