473,387 Members | 1,650 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Font Style Not Working...

chunk1978
224 100+
hey... i'm trying to write some HTML without using a CSS Style list in the page head... but the font i'm writing in doesn't seem to be working as the web browser will just display the font as the default font for the browser... the color and size works though, but not the font itself... here is my code:

Expand|Select|Wrap|Line Numbers
  1. ... style="font:Verdana; font-size:12px; color:#999999; text-align:justify">
  2.  
i want it to display in verdana font, but it's displaying in Times font (default browser font)... the code begins with a "..." because the style is on lots of tags... like "<TD STYLE..." or "<TABLE STYLE..." or "<DIV STYLE..."... i think you get it...

so any ideas why the browser is ignoring my font and using the default browser font instead?
Apr 17 '07 #1
3 1880
KevinADC
4,059 Expert 2GB
"font" is the shot-hand property, change it to "font-family" and see if that helps.
Apr 17 '07 #2
chunk1978
224 100+
"font" is the shot-hand property, change it to "font-family" and see if that helps.
worked perfectly! thanks!
Apr 17 '07 #3
KevinADC
4,059 Expert 2GB
oops, I meant to say "short-hand" property, not "shot-hand".
Apr 17 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Clive Everett | last post by:
I thought it would be rather fun to try out @font-face, but I cannot get it to work. I used Microsoft WEFT to generate several embedded fonts and find that the example below works when I use my...
3
by: CSS problem | last post by:
Hi, I'm having a problem with a CSS defined font size on www.casajac.org I have a few links to different language pages on the top right of the banner. ("English, Nederlands ...) I had the link...
0
by: Paul D. Sullivan | last post by:
I've been trying to find out how to increase the font size in the text entry fields in Invision Power Board 1.3 for a while. The part where you enter your post and do the quick reply and all that...
13
by: al jones | last post by:
I think I need to degrade this to make it work so I'll ask a really basic question. I'm trying to display a set of fonts that are *not* installed but are present on my computer. Is there any...
7
by: xformer | last post by:
Hello everybody, today I was working on a web site when I found a strange effect. Take the following html document: ----begin---- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01...
2
by: Geethu03 | last post by:
Hello My PHP code is <?php $headers .='From: support@epcindex.com'; $link = mysql_connect("localhost", "username", "pwd") or die ("Error connecting to mysql:"); ...
18
by: Diogenes | last post by:
Hi All; I, like others, have been frustrated with designing forms that look and flow the same in both IE and Firefox. They simply did not scale the same. I have discovered, to my chagrin,...
10
by: Andrew Poulos | last post by:
How do you apply a CSS font-family (say, Times, "New Century Schoolbook", serif) to an object? This obj.style.fontFamily = "Times, 'New Century Schoolbook', serif"; seems to ignore everything...
2
by: kheitmann | last post by:
OK, so I have a blog. I downloaded the "theme" from somewhere and have edited a few areas to suit my needs. There are different font themes within the page theme. Long story short, my "Text Posts"...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.