[CODE] free codes & stuffs
#14
QUOTE (Zalen Damaichu @ Dec 13 2011, 05:54 PM)
Here's another I made today for myself. If anyone can tell me how to change the color of and add quotation marks automatically to bolded/speech words I'd love to hear it!
[/quote]

[html]
<style type="text/css">
.NAME b {color:#555; font-weight:bolder;}
.NAME b:before { content:open-quote;}
.NAME b:after { content: close-quote;}
</style>

You mean like this??
[/html]


You have to use a class or id and style it in CSS like....

this for class (.) (divs you want to use multiple times in your code):
Code:
[dohtml]
<style type="text/css">

.NAME b {color:#555; font-weight:bolder;}
.NAME b:before {    content:open-quote;}
.NAME b:after {    content: close-quote;}
</style>

<div class="NAME"> Text goes <b>right</b> here. </div>
[/dohtml]

this for id (#) (divs you only want to use once in your code):
Code:
[dohtml]
<style type="text/css">
#NAME b {color:#555; font-weight:bolder;}
#NAME b:before {    content:open-quote;}
#NAME b:after {    content: close-quote;}
</style>

<div id="NAME"> Text goes <b>right</b> here. </div>
[/dohtml]


Messages In This Thread

Forum Jump: