Image

Imagebellazirka wrote in Imagewebdev

Listens: bruxaria :: arto lindsay+miho hatori

Classes and divs, once and for all

Some helpful folks here have enlightened me to sorted out the main difference between classes and divs and how to use them. But I see something defined this way in the style sheet:
[Error: Irreparable invalid markup ('<div#divname>') in entry. Owner must fix manually. Raw contents below.]

Some helpful folks here have enlightened me to sorted out the main difference between classes and divs and how to use them. But I see something defined this way in the style sheet: <div#divname> and also <div.divname>. What is the difference between those and good old fashioned <#divname>? I've used <#divname .class name> to define a class inside a div, and I mostly get that. But what about the other variations?

Also, what is the point of defining a class inside of a div (such as <#divname .class name>)? I've tinkered around a bit and sometimes noticed a difference between defining a class in a div versus just having the class defined independently, but if someone can summarize it for my memories section that would be great. Thanks!