Wednesday, November 17, 2010

Changing font type and size?

Hi! This code is working fine, but I'm not quite sure how to change the font size and type. I want Verdana, size 2 or 3 (doesn't matter).



I put in 'HEADER EX 1,' 'Text text text,' etc. just to fill the space.



Here's the code...



%26lt;h3 onClick=';expandcontent('sc1')'; style=';cursor:hand; cursor:pointer; ';%26gt;HEADER EX 1%26lt;/h3%26gt;

%26lt;div id=';sc1'; class=';switchcontent';%26gt;

Text text text etc.

%26lt;/div%26gt;



%26lt;h3 onClick=';expandcontent('sc2')'; style=';cursor:hand; cursor:pointer';%26gt;HEADER EX 2%26lt;/h3%26gt;

%26lt;div id=';sc2'; class=';switchcontent';%26gt;

Text text text

%26lt;/div%26gt;



%26lt;h3 onClick=';expandcontent('sc3')'; style=';cursor:hand; cursor:pointer';%26gt;HEADER EX 3%26lt;/h3%26gt;

%26lt;div id=';sc3'; class=';switchcontent';%26gt;

Text text text

%26lt;/div%26gt;



10 points to best answer.



Thank you all!!Changing font type and size?
Add to the style attribute:



font-size:18px;font-family:verdana;Changing font type and size?
18px Verdana does look kind of boldish. It's the font. Either make it smaller or use a different font. Try Corbel - it's a lighter font (not much lighter, though).

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.