Help - Search - Members - Calendar
Full Version: FOnts
HTMLHelp Forums > Web Authoring > Cascading Style Sheets
Zenism182
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
QUOTE(Zenism182 @ Oct 22 2006, 11:16 AM) *

<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
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
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
Thanks a mill cj!
Now have to try and complete this html assignment of mine... *yawnz*
blush.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.