The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> FOnts, How to get desired fonts and colors?
Zenism182
post 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?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Oct 22 2006, 06:03 AM
Post #2


.
********

Group: WDG Moderators
Posts: 9,678
Joined: 10-August 06
Member No.: 7



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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Zenism182
post 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...
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Zenism182
post 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*
blush.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 1st June 2024 - 01:43 PM