Solved

text type

Posted on 2006-06-22
7
323 Views
Last Modified: 2013-12-03

hi team,

sometimes i see a nice font type but cant findout in the source code of the website wich kind of font is used.

i read the following thing:

 <script type="text/javascript" language="JavaScript1.2" src="menu/stm31.js"></script>
<script language="JavaScript" type="text/JavaScript">

how can i findout wich font is used?
and wich fonts are websave to use inorder to display good on moste pc's?

thanks  

0
Comment
Question by:khaled22
  • 4
  • 3
7 Comments
 
LVL 7

Expert Comment

by:geordie007
ID: 16961172

the code you've posted is javascript. that doesn't effect the font - of course, it *can* but 99 times out of 100, that won't be what you're after. what you need to look for is:

<link rel="stylesheet" type="text/css" href="css/css.css" />

or:

<style type="text/css" media="screen">@import "/css/css.css"; </style>

or basically any reference to a .css (style sheet) file. open that and do a search/find for "font" and/or "font-family". that will show you the font that is being used (or a list of fonts that the developer wanted to use in order of preference).

as for system fonts (web safe as you say), always do a google for this whenever you want to use a font that you're not sure about. it's better to always do a search, as obviously things can change with new operating systems, upgrades, service packs, etc.

a current search brought up this for windows:

http://www.kayskreations.net/fonts/fonttb.html

but you'd need to do one for macs aswell and see which ones appear on both.

cheers
0
 

Author Comment

by:khaled22
ID: 16962438

hi,

thanks for your answer but how and where to open this .CSS file from out of the sourcecode?

i have found the following:

<link href="css/incredible.css" rel="stylesheet" type="text/css">

is that the same?

thanks!
0
 
LVL 7

Expert Comment

by:geordie007
ID: 16962481

ok. hopefully you use firefox. if you do, use this as an example:

you go to www.website.com, view source, and you see this:

<link href="css/incredible.css" rel="stylesheet" type="text/css">

if you're using firefox (or safari), you can now simply visit www.website.com/css/incredible.css and you will see the stylesheet in your browser.

if you use internet explorer, it's a little trickier. you'll need to download the file. to do this, you could just create a link to it on an html page, open it in internet explorer, right click, and "save target as..." to your desktop. you can then open it in - for example - notepad.

if this doesn't make sense, post the link of the site that you like the font, and i'll post the stylesheet.

cheers

0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

Author Comment

by:khaled22
ID: 16962845

thanks man!

i use ie but have installed firefox to try it and indeed i found the following:

body {
      font-family: Verdana, Arial, Helvetica, sans-serif;
      font-size: 10px;
      color: #000000;
      margin: 0px;
      background-color: #666666;
      background-image: url(../images/site_bg.gif);
}

now tell me,wich one has thiswebmaster used then?Verdana,Arial or Helvetica?or is all?

thanks!
0
 
LVL 7

Accepted Solution

by:
geordie007 earned 80 total points
ID: 16962897

when there is a list of fonts, like that, the developer is basically saying "if this user has verdana, use that. if the user hasn't, use arial. if the user doesn't have that either, use helvetica. if we still haven't got a match, use any sans-serif font". as verdana is available on both PC and Mac, i'd bet my last penny that you are looking at verdana when you view that webmaster's site.

cheers
0
 

Author Comment

by:khaled22
ID: 16963127

and how do i know wich font is used for the buttons(dropdown buttons)?

thanks
0
 
LVL 7

Expert Comment

by:geordie007
ID: 16967221

exactly the same way. just do a search/find for all the references to font or font-family. that will build you a list of every font used. i guess by "buttons(dropdown buttons)" you mean <select> elements, so just look for what font was specified for select elements.
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question