Sunday, January 8, 2012

Help with Font wanna have each line in a different font...HTML...?

%26lt;head%26gt;


%26lt;title%26gt;Hi%26lt;/title%26gt;


%26lt;/head%26gt;


%26lt;body style="background-color:#cccc99; font-family :arial;"%26gt;


%26lt;div%26gt;


%26lt;dt%26gt;Association Football%26lt;dt%26gt;








Wanna have association Fotball in Sans-serif any suggestion?


lets say that i make a list how can i make each part of the list have a different font?|||Try this:





%26lt;dt%26gt;%26lt;font face="WHATEVERFONTUWANT"%26gt;Association Football%26lt;/font%26gt;%26lt;/dt%26gt;





(Be sure that you open and close the tags in the correct order. For example, if you opened the %26lt;dt%26gt; tag first, you must close it last or the coding will not work.)





If you are making a list, for example:





%26lt;ul%26gt;


%26lt;li%26gt;%26lt;font face="FONT1"%26gt;Example 1%26lt;/font%26gt;


%26lt;li%26gt;%26lt;font face="FONT2"%26gt;Example 2%26lt;/font%26gt;


%26lt;li%26gt;%26lt;font face="FONT3"%26gt;Example 3%26lt;/font%26gt;


%26lt;/ul%26gt;





Try this, and if it doesn't work, you might need to add an %26lt;HTML%26gt; tag in the beginning of your document.





I hope this works for you! Good luck!|||Simply wrap each part of the list with the following tag:





%26lt;span style="font-family: Sans-serif;"%26gt; *content goes here* %26lt;/span%26gt;





And change the font named after "font-family: " for each part of the text. For example:





%26lt;dl%26gt;


%26lt;dt%26gt;%26lt;span style="font-family: Arial;"%26gt;Line one%26lt;/span%26gt;%26lt;/dt%26gt;


%26lt;dt%26gt;%26lt;span style="font-family: Sans-serif;"%26gt;Line two%26lt;/span%26gt;%26lt;/dt%26gt;


%26lt;/dl%26gt;





Please Note: You should only ever use standard system fonts such as Arial, Tahoma, Vedana etc. because custom fonts will not work on many computers and browsers. The code above is also not very valid and you should look into using CSS to set fonts and other visual attributes.|||for the sans serif:





%26lt;font face = "sans-serif"%26gt;%26lt;dt%26gt;Association Football%26lt;dt%26gt;%26lt;/font%26gt;





font: opens a font tag


face: changes the font


I think that will do it, but it's been a while since I've used HTML. You could also use CSS...

No comments:

Post a Comment