![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi I have a glossary for Latin words. URL: http://www.vroma.org/help/glossary.html The list marked up as paragraphs for each entry, and that looked very well. We changed it to definition list though, since that is what we believe is the best semantical markup. Now, want the dd to be right next to the dt, since the dd contains grammatical properties of the dt which normally are written right next to the lemma (word entry). Example: (SHOULD BE) acta -orum: n. pl. a written record of events (IS) acta -orum: n. pl. a written record of events Aside: We felt that the "-orum" should not be part of the dt since it is a grammatical property to the entry, not the entry itself. |
|
Having one dl only surrounding the pairs has proven difficult. Right now, each dt/dd pair is enclosed in a dl container. This is the only way we could achieve the rendering as we want it (see above, or refer to the URL). I have tried every way I could think of, using floats and clears and inlines and margins, but apparantly, I must have missed a combination. |
|
I'd rather not user :after or :before because of browser compatibility. |
#3
| |||
| |||
|
|
Yes I see the problem. You've made dt and dl inline so they're next to each other, but you want each dt to start a new line. |
#4
| |||
| |||
|
|
Not that you were asking for quibbles, but I think the -orum belongs in the dt since it identifies the word. "educo, educere" is a different _word_ from "educo, educare". We're not dealing with two alternative definitions of the same word. |
|
What's wrong with: span class="word">acta</span span class="genitive">actionis</span |
#5
| ||||
| ||||
|
|
Ben C wrote: Not that you were asking for quibbles, but I think the -orum belongs in the dt since it identifies the word. "educo, educere" is a different _word_ from "educo, educare". We're not dealing with two alternative definitions of the same word. I see. Thanks. But that creates another problem: searching for "acta" won't return that definition; the search would then have to be "acta -orum" or "acta, -orum". I want users to find BOTH words "educo" when they search for "educo". |
|
The might not know that there are two. Besides the fact that they indeed are rooted in the same meaning: 'raise, bring forward'. |
|
But I see your point. What's wrong with: span class="word">acta</span span class="genitive">actionis</span The grammar. (SCNR) Syntactically, nothing wrong. Semantically - well, it _is_ a definition list, and the only (best) semantical markup for that are dls. |
|
Classes are not semantics... Another thing: would google's define find that that way? |
#6
| |||
| |||
|
|
It was a nice idea to use a dl, and CSS does provide at least two ways of styling it the way you want (:after and display: run-in), of which :after is fairly well supported. But if you need to support browsers that don't support :after you have choose your compromise. No real harm in inline dt/dd and putting a <br after every <dd>. |
#7
| |||
| |||
|
|
But thinking of it: what would the benefit of a _single_ enclosing dl be (as opposed to one for each pair)? |
#8
| |||
| |||
|
|
Daniel Jung schrieb: But thinking of it: what would the benefit of a _single_ enclosing dl be (as opposed to one for each pair)? A dl ist a definition _list_. What you created is a sequence of one-item definition lists. It's similar to ul li></li /ul ul li></li /ul |
#9
| |||
| |||
|
|
Johannes Koch wrote: Daniel Jung schrieb: But thinking of it: what would the benefit of a _single_ enclosing dl be (as opposed to one for each pair)? A dl ist a definition _list_. What you created is a sequence of one-item definition lists. It's similar to ul li></li /ul ul li></li /ul Not quite, since there _is_ a "list" (a pair). The term and the definition are _listed_, which your examples are not. It depends on how you define "item". |
#10
| |||
| |||
|
|
Ben C wrote: It was a nice idea to use a dl, and CSS does provide at least two ways of styling it the way you want (:after and display: run-in), of which :after is fairly well supported. But if you need to support browsers that don't support :after you have choose your compromise. No real harm in inline dt/dd and putting a <br after every <dd>. Thanks again, Ben. Your input is valuable to me. But thinking of it: what would the benefit of a _single_ enclosing dl be (as opposed to one for each pair)? |
![]() |
| Thread Tools | |
| Display Modes | |
| |