Total members 10261 | Gratitudes |It is currently Tue May 22, 2012 4:23 pm Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 1 post ] 
Author Code Snippet
 Code subject: Using two different fonts in the same webpage
PostPosted: Thu Feb 23, 2012 12:48 am 
Offline
Mastermind
User avatar

Joined: Tue Mar 27, 2007 10:55 pm
Posts: 2279
Location: Earth
Has thanked: 39 time
Have thanks: 61 time

In this example we use two font families in the same html page using CSS attributes .

Code:
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<
head>
  <
title>Use two different fonts in the same webpage </title>
  <
style rel="stylesheet" type="text/css">

div.FontOne {
  
font-familyVerdanaArialsans-serif;
  
font-size18px;
  
width:200px;
   
color:#541264;
}
div.FontTwo {
  
font-familyArialHelveticasans-serif;
  
font-size18px;
  
width:200px;
  
color:#541264;
}


</
style>
</
head>

<
body>
<
div class="FontOne">

<
>In this example we use VerdanaArialsans-serif font family</p>
</
div>
<
br/>
<
div class="FontTwo">

<
>In this example we use ArialHelveticasans-serif font family</p>
</
div>
</
body>
</
html>
 

_________________
Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )


TOP
 Profile Send private message  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 1 post ] 
Quick reply


  

 Similar topics
 redirect webpage using meta tag
 Fonts in java
 Use TrueType Fonts in php

All times are UTC [ DST ]


Users browsing similar codes

Users browsing this forum: No registered users and 1 guest



Jump to:  
Previous Code Snippet | Next Code Snippet 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team