Click to See Complete Forum and Search --> : tags?


DanUK
07-18-2003, 08:33 AM
hi, seeming as I want my *whole* site in the same font, and size, is it possible, isntead of having loads of <font>...</font> tags to just put a <font>... under the beginning of <BODY>, and then </font> above </BODY>?

Thanks if you can help.

Da Warriah
07-18-2003, 08:36 AM
yes that should work...but not if you have tables...if you use tables in your design, only the "face" attribute will work both inside and outside the table...for the other settings like "color" and "size", youll have to set it inside the table as well...

DanUK
07-18-2003, 08:37 AM
ok that's great thanks it''ll save a lot of space :)
I'll just add tablets with their own font tag :) Thanks again.

DaveSW
07-18-2003, 08:49 AM
Why not discover the world of css?

http://www.w3schools.com/css/default.asp

Robert Wellock
07-18-2003, 08:53 AM
A superior method would have been to set the font styles via CSS for example;

<style type="text/css">
<!--
body {font-family : Arial, Verdana, Helvetica, sans-serif; background-color : white; color : black; font-size : 16px;}
-->
</style>

This machine is on a time lag...

Da Warriah
07-18-2003, 09:20 AM
youd still have to set the font-size attribute separately for the table...i just tested it out - now both color and font-family work, but the size wont change inside the table...

<style type="text/css">
<!--
body {font-family : Arial, Verdana, Helvetica, sans-serif; background-color : white; color : black; font-size : 16px;}
table {font-size : 16px;}
-->
</style>

DaveSW
07-18-2003, 09:23 AM
<style type="text/css">
<!--
body, table {font-family : Arial, Verdana, Helvetica, sans-serif; background-color : white; color : black; font-size : 16px;}
-->
</style>

it's easier

DanUK
07-18-2003, 03:21 PM
ok great, so if i have a .css file and a ref to it, i don't have to specify *any* <font>..</font> tags?

DaveSW
07-18-2003, 03:27 PM
yes. but the code above is designed to be inserted as it stands within the head section of your document.

external css style sheets (what you are referring to) are ideal for multiple pages with the same styles.