Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

text type

Posted on 2006-06-22
7
Medium Priority
?
346 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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 320 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

886 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