Previous Message
Next Message

Recipe Card (Tabular data vs CSS)

Sent by David Dorward on 4 September 2005 19:07


On 04/09/05, Sam Leathers [EMAIL-REMOVED]> wrote:
> I'm getting ready to build a recipe database interfaced with php. Would
> a recipe card make more sense to be displayed in a table, or using css?

The whole thing wouldn't be in a table, because it is clearly not tabular data.

I would expect to see something like this:

* The name of the recipe (h1)
* Some prose describing it (paragraphs)
* The ingredients <tr><th>Ingredient</th><th>Quantity / Weight</th></tr>
* An ordered list of the steps one takes to make the recipe (ol/li).

> If using css how would you break it up, would you have a separate div
> for title, ingredients, and instructions?

That would depend on how much grouping they needed for styling. With
just the above there isn't really any need to group them further, so
no divs would be needed.

-- 
David Dorward <http://dorward.me.uk><http://blog.dorward.me.uk>
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: