achudars / adaptable-cookery-book

Other
2 stars 0 forks source link

Recipe Page Dietary Info #86

Closed shnuggie-dan closed 10 years ago

shnuggie-dan commented 10 years ago

I've now added the dietary information to the recipe pages, if there is any (so vegetarian, colieac, vegan).

I wasn't entirely sure if we wanted it on that page, but it's there now and I think it makes sense.

It needs styling how you want it, though.

achudars commented 10 years ago

Dan, in future projects, please try to avoid using <br> or <br /> (this incorrectly breaks the HTML) Same applies to using <strong>, <bold>,<small> or <em> (these should be handled by CSS)

shnuggie-dan commented 10 years ago

What exactly do you mean by "breaks the HTML"?

small is supported and encouraged by Twitter Bootstrap and search engines are built to place emphasis on content within a strong tag. If you place the styles in CSS for a strong tag it will look the same, I'd agree. But that's not the point of a strong tag - it's for semantic emphasis more than anything.

achudars commented 10 years ago

separate presentation [CSS] from the structure [HTML]

achudars commented 10 years ago

regarding br : http://stackoverflow.com/questions/1726073/is-it-sometimes-bad-to-use-br