Forum Moderators: not2easy

Message Too Old, No Replies

Setting the default font with CSS

default font using CSS

         

irishaff

5:08 am on Nov 11, 2003 (gmt 0)

10+ Year Member



Hi,

Im quite new to CSS , I was wondering if its possible to set a default font using CSS. Then not specify the font in each table, or insert a style tag.

The reason I want to is as follows.
1. I use dreamweaver
2. I am using a lot of tables.
3. When I insert the </h1> tag etc it sometimes gets highlighted in yellow ( I think I am putting it in the correct place and the markup works as expected ).
4. Somtimes these unwanted yellow markers disturb my tables, and send the page nuts.

Ok, sounded like an amatuer there, but then again,, Iam .

David

ukgimp

8:41 am on Nov 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



body {
font-family: Arial, Helvetica, sans-serif;
}

I think this may be what you are after.

DrDoc

3:06 pm on Nov 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Or, even better, since some browsers get inheritance wrong:

* {
font-family: Arial, Helvetica, sans-serif;
}

drbrain

6:23 pm on Nov 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The browsers that get inheritance wrong are those that don't have the doctype-switch, or those that do have the doctype switch and are in quirks-mode.

Be sure to set your doctype to a 'strict mode' to get inheritance to work (for IE6, Mozilla-based, Opera, Safari, etc.)

aevea

8:14 pm on Nov 11, 2003 (gmt 0)

10+ Year Member



The yellow highlighting is dreamweaver trying to tell you that either your end tags don't have a start tag or your nesting is messed up.

Adam