Topic: CSS: body in NS4 Pages that link to <a href="https://ozoneasylum.com/backlink?for=10562" title="Pages that link to Topic: CSS: body in NS4" rel="nofollow" >Topic: CSS: body in NS4\

 
Author Thread
GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

IP logged posted posted 05-08-2001 13:13 Edit Quote

are there known problems with the body-identifier in NS4?
i have the following line in my css-file:

code:
body { font-size: 10px; font-family: "verdana", "arial", "helvetica", sans-serif; }


but NS4 still shows me the default times new roman font.
it all works fine with IE and NS6.

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

IP logged posted posted 05-08-2001 13:30 Edit Quote

Try losing the quotes. You only need quotes if the name of the font is tow seperate words (seperate as in no hyphen...like "Lucida Console"....for example).

Also, just double check you don't have NN set to override the page font.

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

IP logged posted posted 05-08-2001 13:37 Edit Quote

hm. thanks for your help DL-44, but there's still no change.
i've removed all quotes...
and of course i have unchecked "override fonts..."

any other ideas?

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

IP logged posted posted 05-08-2001 14:54 Edit Quote

ahhhh! i got it!

i had my text in between <P> and </P>.
then i added:

code:
P { font-size: 10px; font-family: verdana, arial, helvetica, sans-serif; }


to my css and now it works fine....

another job well done.

u-neek
Bipolar (III) Inmate

From: Berlin, Germany
Insane since: Jan 2001

IP logged posted posted 05-08-2001 14:55 Edit Quote

i had the same problem some times ago, but didn't see any solution how NN handel the 'body {font-family}' thing. my last solution was, that i put the body text into the <span class="yourclass">-tag. this will set the font in NN.

u-neek
Bipolar (III) Inmate

From: Berlin, Germany
Insane since: Jan 2001

IP logged posted posted 05-08-2001 15:39 Edit Quote

hehe
this is also a solution, but p is a paragraph. so everytime u set <p> u get some blank space. <span> will do that without a blank space!

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

IP logged posted posted 05-08-2001 16:09 Edit Quote

not if i work with <p></p>! (as GoLive does)

la'dsasha
Neurotic (0) Inmate
Newly admitted Neurotic (0) Inmate
Newly admitted
IP logged posted posted 05-08-2001 17:13 Edit Quote

it is easier/more efficient if you do it like this:

body, p, td, li { font-size: 10px; font-family: verdana, arial, helvetica, sans-serif }

you will get the same problem with tables and lists in netscape. may as well plan ahead when you write your css.

------
this rose has a thorn...

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

IP logged posted posted 05-08-2001 23:33 Edit Quote

wohooo!
i didnt know you can do that in css.

btw: how can i write comments in css?

la'dsasha
Neurotic (0) Inmate
Newly admitted Neurotic (0) Inmate
Newly admitted
IP logged posted posted 05-09-2001 00:52 Edit Quote

i think the only "legal" method of commenting in css is like this: /* this is commented */ this is not commented.

------
this rose has a thorn...

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

IP logged posted posted 05-09-2001 03:17 Edit Quote

Annoyingly, Netscape Nav doesn't support the "cascading" part of "cascading style sheets"... what you originally had *should* have worked, but NN is evil.

- Slime

la'dsasha
Neurotic (0) Inmate
Newly admitted Neurotic (0) Inmate
Newly admitted
IP logged posted posted 05-09-2001 04:24 Edit Quote

well, the annoying part of css validation means that my sites will never validate because i dont define background-color for my paragraphs, tables, lists, etc. i rely on the "cascading" part of css to take care of that for me, since body is already defined with a bg color.

i refuse to add bg color to those elements because i rely on them to be the default "transparent" background most of the time.

------
this rose has a thorn...

twItch^
Maniac (V) Mad Scientist

From: the west wing
Insane since: Aug 2000

IP logged posted posted 05-09-2001 22:24 Edit Quote

then why not do a background-color : transparent; statement? That's validated, and works just fine if you want to declare something...


s t e p h e n

la'dsasha
Neurotic (0) Inmate
Newly admitted Neurotic (0) Inmate
Newly admitted
IP logged posted posted 05-10-2001 00:59 Edit Quote

apparently, youve missed my point. why must i define something that is already that way by default? not all browsers have default white background (i believe ie3 and ie2 are both grey, probably a few others as well), but i dont know of a single browser that does not have default paragraph background as anything other than transparent.

------
this rose has a thorn...



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu