2 replies [Last post]
Bluenose
Bluenose's picture
Offline
Enthusiast
Last seen: 17 weeks 3 days ago
Timezone: GMT+1
Joined: 2011-10-11
Posts: 60
Points: 81

Hello

I have a 'test'site here:

http://proofreading4students.com/index_test.asp

I am trying to change the font face (to Ariel, verdana, or whatever), maybe the font colour, and dcertainly its size (it's too small at the moment), but I am unsure how to do it.

The index_test.asp file look like this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"> 
 
<head>
<title>mySite</title>
 
<meta http-equiv="content-type" content="text/html;charset=utf-8">
 
<LINK REL=StyleSheet HREF="index1.css" TYPE="text/css" MEDIA=screen>
 
</head>
 
<body>
 
 
<%@ Language="VBScript" %>
 
<%
Dim suffix
Select Case Day(Date())
    Case 1,21,31: suffix = "st"
    Case 2,22: suffix = "nd"
    Case 3,23: suffix = "rd"
    Case Else: suffix = "th"
End Select
Response.Write "<p class=""show_date"">" & WeekdayName(Weekday(Date())) _
             & " " & Day(Date()) & "<sup>" & suffix & "</sup> " _
             & MonthName(Month(Date())) & "</p>"
%>
 
</body>
 
</html>

And the index1.css file which it links to has the following:

p.show_date { 
    font-size: x-small;
text-align: right; 
 
 
}
p.show_date sup {
    font-size: xx-small;
}

Can anyone advise, please?:

Thanks.

Bluenose

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 1 year 1 week ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

Something like?

body { 
    color: #333;
    font: 100%/1.5 verdana, arial, sans-serif; /* 100% = font-size / 1.5 = line-height */
}

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

Bluenose
Bluenose's picture
Offline
Enthusiast
Last seen: 17 weeks 3 days ago
Timezone: GMT+1
Joined: 2011-10-11
Posts: 60
Points: 81

Hello Tyssen Very many

Hello Tyssen

Very many thanks! That's done it. I have been trying for an age to resolve that!

Cheers

Bluenose