FOnts, How to get desired fonts and colors? |
FOnts, How to get desired fonts and colors? |
Zenism182 |
Oct 22 2006, 04:16 AM
Post
#1
|
Group: Members Posts: 3 Joined: 22-October 06 Member No.: 519 |
Sorry guys, newbie here.. the instructions and guides are confusing me, tt's why i need peopl to help me with this.
well, i want to get the font Lucida console in MS word in my work. <style type = "text/css"> P { font: 12pt/14pt sans-serif } P { font: 80% sans-serif } P { font: x-large/110% "Comic sans", serif } P { font: bold italic large Palatino, serif } P { font: normal small-caps 120%/120% fantasy } BODY {color:fuchsia} </style> how come my Unordered List are not affected by the change of the font as stated? what shud i change to get the font? i've create a table, how can i mange to keep the overall font as Lucida Console, but keeping my table font at Times new Roman? |
Christian J |
Oct 22 2006, 06:03 AM
Post
#2
|
. Group: WDG Moderators Posts: 9,678 Joined: 10-August 06 Member No.: 7 |
<style type = "text/css"> P { font: 12pt/14pt sans-serif } P { font: 80% sans-serif } P { font: x-large/110% "Comic sans", serif } P { font: bold italic large Palatino, serif } P { font: normal small-caps 120%/120% fantasy } BODY {color:fuchsia} </style> You don't specify Lucida Console in the CSS above. Instead you repeatedly specify various font properties for P, so were they conflict only the last one will be used. See also http://htmlhelp.com/reference/css/structure.html BTW you shouldn't use the pt unit for screen media, it's meant for print. Percentages work best for screen font sizes. QUOTE how come my Unordered List are not affected by the change of the font as stated? what shud i change to get the font? Since you only specify fonts for P elements it will not affect UL elements. You must either specify the font for the UL or for BODY. If you use it on BODY the font style will be inherited by both P and UL. QUOTE i've create a table, how can i mange to keep the overall font as Lucida Console, but keeping my table font at Times new Roman? You can specify the BODY font as Lucida, and the table's TD font as Times. |
Zenism182 |
Oct 22 2006, 07:59 AM
Post
#3
|
Group: Members Posts: 3 Joined: 22-October 06 Member No.: 519 |
thanks christian!
but can anyone care to explain how the actual format should be like? i'm thinking of adding Lucido Console in, but i do not know which part of the equation should i add it in... |
Christian J |
Oct 22 2006, 01:58 PM
Post
#4
|
. Group: WDG Moderators Posts: 9,678 Joined: 10-August 06 Member No.: 7 |
QUOTE how can i mange to keep the overall font as Lucida Console, but keeping my table font at Times new Roman? This should work: CODE body { font-family: "lucida console", sans-serif; } td { font-family: "times new roman", serif; } To get the same style in two kinds of elements (like P and UL) you can do CODE p, ul { font: ....; } You can read more about this in the link to the CSS reference. |
Zenism182 |
Oct 23 2006, 08:45 AM
Post
#5
|
Group: Members Posts: 3 Joined: 22-October 06 Member No.: 519 |
Thanks a mill cj!
Now have to try and complete this html assignment of mine... *yawnz* |
Lo-Fi Version | Time is now: 1st June 2024 - 01:43 PM |