Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 06-19-2004, 12:55 PM   #1
Registered: Apr 2004
Location: Malaysia
Distribution: Fedora Core
Posts: 93

Rep: Reputation: 15
web page, font and font size

I like my web page output's font and font size when i open it with mozilla in linux

in windows (mozilla and ie), the web page font will be different

how do i hard code my web page's font and font size to look exactly the same eventhough in windows?
Old 06-19-2004, 01:54 PM   #2
Registered: Aug 2002
Distribution: Debian
Posts: 540

Rep: Reputation: 32
It will never look exactly the same on different browsers. However, you can get the same font by doing so:

<FONT FACE="Arial" SIZE="3">Something I have to say</FONT>

You must make sure however that you select a font the is native to both Windows and Linux.

Look up HTML Tags on google, you will find a complete reference and examples.
Old 06-19-2004, 05:09 PM   #3
Registered: Jun 2003
Location: Toronto, Ontario, Canada
Posts: 288

Rep: Reputation: 30
More info (from the people who handle the standard.

I'd recommend looking at CSS for a better way of handling formatting and styling of web elements.
Old 06-19-2004, 05:54 PM   #4
Senior Member
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
Because browsers are made different, you can't make the fonts look the same in all. Not even in all browsers on Linux.

I would use stylesheet. Set the font-family and the size there.
Old 06-19-2004, 11:03 PM   #5
Registered: Apr 2004
Location: Malaysia
Distribution: Fedora Core
Posts: 93

Original Poster
Rep: Reputation: 15
thanks for all the info


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
font size antipop Linux - Software 5 06-30-2004 08:33 AM
I sometimes get HUGE size font on the web and some programs in my Laptop, please help zLinuxz Linux - General 5 12-19-2003 04:48 PM
large font size in web browsers only pogopunk Linux - Software 1 10-04-2003 10:34 PM
Web Site Font Size OldBob Linux - Newbie 5 06-13-2003 11:58 PM
font size happy hippo Linux - Newbie 0 10-18-2001 05:23 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:16 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration