Reply to topic
cpnet


Joined: 03 Nov 2004
Posts: 135
Reply with quote
"font-family" defines the family of fonts to use for the element/class you're defining the style for. You can specify one or more fonts in "font-family". The reason for multiple specifying multiple fonts is that not all users will have all fonts available. What
Code:
... font-family: "Arial, Helvetica, sans-serif"; ...
is saying is to use Arial if it's available. If not, use Hevetica. If that's not available use "sans-serif". If the user doesn't have that either, then just use the default. If you define a font-family for the <body> element, then that should provide a base font for everything except tables I think. I don't think tables inherit their font from their parent element, so if you want to have TNR as your base font, and you may use tables, then your stylesheet should include
Code:
body {font-family: "Times New Roman"}
table {font-family: "Times New Roman"}
Josh
Forum Regular

Joined: 01 Apr 2004
Posts: 1031
Location: Felton, Delaware
Reply with quote
what you may want to do is provide css for a span or div that changes your styles accordingly:

.poem, .author {
font-family:"fonts";
font-size:10pt;
}
.author {
font-style:italic;
}

and then just wrap your text in tags:

<span class="poem">This is a poem about a gnome who used to live in a tree.<br />He's little and ugly, has a big nose, and has a thing for me</span><br /><span class="author">U. No Hoo</span>
Allen
Forum Regular

Joined: 06 Apr 2004
Posts: 410
Location: Willcox, AZ
Reply with quote
Thanks fellas, I got the idea. I haven't tried the web thing yet and probably won't until late tomorrow. I gotta prepare for a court date tomorrow. For the first time in my life I'm having to sue someone. It isn't over a big amount, just $600, but the principle of the thing was my main motivator.

Dang Josh, I didn't know you was a poet!! Are you the mystery U. No Hoo? Smile My verse is quite different however, it might be compared to 17th century metaphysical poetry such as this one I did:

REALITIES, LOGIC AND ROPING WIND
Where did you blow to, my yesternight mind,
were you breezed by logic as daily defined?
Like brainstorms reek of emotions I've got,
for logic may rain is a worthwhile thought.
Countless logics our own minds never doubt,
tho never lassoed nor its wind do we mount.
A.O. Kime (1941- )


(It looks better in courier new, 10 pt, centered tho)
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
this is what i was telling u about in other threads and using css

i didnt read all this thread so sorry if its been covered but

the search engines spyders dont read font sizes, in fact the tag "font" has been depreciated.

it see's the <h1> or <h2> (and so on) as a major emphises and therefor puts heavy concideration in those tags.

i looked at a few of the messages and i would suggest that u dont alter the css code straight on the page but keep it in a seperate css file, that just makes more junk for the spyders to go through, remember all that?
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
well u should try and keep the class call outta the span tag but in this case we'll let it slide Wink
Josh
Forum Regular

Joined: 01 Apr 2004
Posts: 1031
Location: Felton, Delaware
Reply with quote
loftboy wrote:
well u should try and keep the class call outta the span tag but in this case we'll let it slide Wink


Care to elaborate? This is the first I've heard...
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
some browsers still dont have proper support for variables in the span tags, i dont remember the specifics but i remember it being some weird issue cause thats where most editors put them. I pretty much always did it, the site im working on now is the 1st one i havent
Josh
Forum Regular

Joined: 01 Apr 2004
Posts: 1031
Location: Felton, Delaware
Reply with quote
That's the first I've heard... that's why I asked for some more info Wink I'll have to start keeping that in mind... no problem w/ div tho, right?
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
i actually think i saw it on a css/xhtml video i got from lynda.com, if i watch it again i will give u the details
like i said the site im doing right now is the first 1 im trying it on

was hoping to do a total tabless design but only was given 4 dayz to finish the site (today is day 4), so its not done yet but has to be today but if u wanna see who i encorporated the tags

http://denveralumnaegpb.com/main.cfm

actually is pretty easy
on this one i just made a header, a footer both enclosed in tables which i was hoping to avoid and then a main section with a main table split into 2 rows, one the contect, one the nav, then one more table to hold the main content. Then just filled it with divs, seemed to be ok but took looked like **** on ie but im slowly getting it all fixed

on the LINKS page i did put a few class tags in the spans cause i didnt know how else to do it, if u look at source u will see what i mean
Josh
Forum Regular

Joined: 01 Apr 2004
Posts: 1031
Location: Felton, Delaware
Reply with quote
nice... the only funny thing that I see (and maybe it only bugs me) is that the Guestbook like on the nav bar causes the div to resize really strange... it causes a shift. At least in IE it does (looks fine in FireFox), if you're interested in making it good for all browsers.

I struggle with coding for IE everytime I have to do anything... but I have to get out of the habit of using Tables for everything. My problem is that when I was learning somebody showed me tables and told me to stay away from layers... so now I struggle with getting the layout the way I want... *sigh*

Tables work fine, but the da[]V[]n layers catch me everytime. Someday...
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
i did the guestbook at about 4am this morning with a blaring migraine so i havent checked it against ie yet

the main problem i get with ie is that the default state is center and everything else is left
soon as i get the calendar done i will be validating against the browsers
calendar = flash, xml & cfm, whoo hoo

tables are hard to give up, trust me i know!
i was kinda scared like on the guestbook to do the cfm output without them but it works, i just will need to tweak the css

the hardest part of the guestbook was making the bottom dotted line work, go figure
Titles and <h1> tags
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 2 of 2  

  
  
 Reply to topic