LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 06-19-2004, 11:55 AM   #1
linuxzouk
Member
 
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, 12:54 PM   #2
The_Nerd
Member
 
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, 04:09 PM   #3
coolman0stress
Member
 
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, 04:54 PM   #4
darthtux
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, 10:03 PM   #5
linuxzouk
Member
 
Registered: Apr 2004
Location: Malaysia
Distribution: Fedora Core
Posts: 93

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


Reply



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 07: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 03:48 PM
large font size in web browsers only pogopunk Linux - Software 1 10-04-2003 09:34 PM
Web Site Font Size OldBob Linux - Newbie 5 06-13-2003 10:58 PM
font size happy hippo Linux - Newbie 0 10-18-2001 04:23 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:10 AM.

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