Barbara69
asked on
Drop Cap
I understand how to use drop cap within <p>, but how do you use drop cap when using document.writeln?
ASKER
I'm not sure I understand. I tried what you suggested and nothing happend. I have document.writeln("Hi, my name is Barbara....") and I want to use drop cap on the H in Hi.
Like this
document.writeln('<div style="float:left;font-size: 75px; line-height: 60px; ">H</div>i, my name is Barbara....')
ASKER
Wouldn't it be better to put the style in your suggestion in a css and do a <div class=""> or <p class=""> within the writeln?
ASKER
I pressed enter before I was finished. I created a style, put it in my css file and put <p class=""> within the writeln.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
e,g,
document.writeln('<div style="add styles here">test</div>')