tried this with css in actuall stylesheet aswell, but i wont work. what have have I done wrong please?
<style>pullquote
{width: 145px;
background:gold;
color:black;
float: right;
border:1px solid maroon;
font-weight:bold;
line-height:140%;
padding:5px;
margin-top:10px;
margin-left:10px;
}
</style>
<script type="text/javascript">
function addPullquote(){
var myTextArea = document.getElementById("commentBox");
myTextArea.value = myTextArea.value + '[dohtml]<p class='pullquote'>
This is your pullquote.
</p>
[/dohtml]';
}
</script>
<input type="button" onclick="addPullquote();" value="Add a Pullquote"/>
<textarea id="commentBox"></textarea>