Question: If I gave a tag a class, could I set it up so that text would automatically appear?
What I want is for this:
.webdesigner{
CSS
}
.artist{
CSS
}
<dl>
<dt><img src=http://www.webdeveloper.com/forum/archive/index.php/"URL" alt"comic#yadda"></dt>
<dd class="webdesigner">Yackyackyack</dd>
<dd class="artist">Yapyapyap</dd>
To show up like this:
(Comic)
JD Kraaikamp: Yackyackyack
Alex Ruhl: Yapyapyap
Is that possible with CSS?Originally posted by Mr Initial Man
Is that possible with CSS? Yes (<!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-CSS2/generate.html">http://www.w3.org/TR/REC-CSS2/generate.html</a><!-- m -->), but CSS generated content is not supported by inferior browsers like MSIE and the particular use you are describing is an abuse of CSS. You need to "[o]rganize documents so they may be read without style sheets (<!-- m --><a class="postlink" href="http://www.w3.org/TR/WCAG10/wai-pageauth.html#tech-order-style-sheets">http://www.w3.org/TR/WCAG10/wai-pageaut ... yle-sheets</a><!-- m -->)."I understand. I know, I'm lazy.
What I want is for this:
.webdesigner{
CSS
}
.artist{
CSS
}
<dl>
<dt><img src=http://www.webdeveloper.com/forum/archive/index.php/"URL" alt"comic#yadda"></dt>
<dd class="webdesigner">Yackyackyack</dd>
<dd class="artist">Yapyapyap</dd>
To show up like this:
(Comic)
JD Kraaikamp: Yackyackyack
Alex Ruhl: Yapyapyap
Is that possible with CSS?Originally posted by Mr Initial Man
Is that possible with CSS? Yes (<!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-CSS2/generate.html">http://www.w3.org/TR/REC-CSS2/generate.html</a><!-- m -->), but CSS generated content is not supported by inferior browsers like MSIE and the particular use you are describing is an abuse of CSS. You need to "[o]rganize documents so they may be read without style sheets (<!-- m --><a class="postlink" href="http://www.w3.org/TR/WCAG10/wai-pageauth.html#tech-order-style-sheets">http://www.w3.org/TR/WCAG10/wai-pageaut ... yle-sheets</a><!-- m -->)."I understand. I know, I'm lazy.