CSS
hi there! i've got a (simple) question 'bout style-sheets.
i designed a site using them. some time later i changed some things (font from times to arial, ...).
now: with IE these changed things are visible. with N not, it takes the default from the browser settings...
i'm somehow - hm - desperate, i just don't know why N does that... it supported the 1st version of my sheet, why not the second?! BTW: i haven't changed any name of a file.
do you have any idea WHY N doesn't do what i want it to?!
thnx a lot for any help!
Tom Knight posted this at 18:22 — 6th January 2000.
They have: 48 posts
Joined: Dec 1999
There are certain CSS comands which are not supported with NS, but hopefully they will with NS5
------------------
Do you want to have fun?
TomWorld
Do you want to have fun?
TomWorld
cds posted this at 02:01 — 7th January 2000.
They have: 359 posts
Joined: Mar 1999
Check to see if anywhere in your html tags, ie <body>,<td>, etc if the <font face="Times New Roman" or something similar is there. NS will read these commands and ignore the CSS command where IE is more forgiving. If you leave everything default, then it will use the CSS command.
------------------
Dan
CDS Web Design
Dan
Recycle Video Games Network
Stupidity killed the cat, curiosity was framed!
merlin posted this at 15:04 — 7th January 2000.
They have: 410 posts
Joined: Oct 1999
thank you both for your replies, but both you suggest, isn't the problem...
i don't have any design-tags in the body (as <font face=...> or similar) and the css-commands are not too special (only font-family and similar).
and: the 1st version was displayed correct in N too, only with the changes of the 2nd version it started to show different things...
cds posted this at 16:37 — 7th January 2000.
They have: 359 posts
Joined: Mar 1999
Maybe if you posted the url so we can take a look at it.
merlin posted this at 07:27 — 11th January 2000.
They have: 410 posts
Joined: Oct 1999
ou yeah, what a great idea!
http://www.inventazo.ch/about.htm is the url...
[This message has been edited by alibababa (edited 12 January 2000).]
merlin posted this at 16:20 — 12th January 2000.
They have: 410 posts
Joined: Oct 1999
no idea?
Vincent Puglia posted this at 01:44 — 15th January 2000.
They have: 634 posts
Joined: Dec 1999
Hi Alibaba,
I haven't used external css sheets yet, but do you need the style tags or is it like *.js files where you omit the tags?
Vinny GrassBlade: cut&paste javascript
Where the world once stood
the blades of grass cut me still
merlin posted this at 08:45 — 18th January 2000.
They have: 410 posts
Joined: Oct 1999
what do you mean with style-tags? i don't get that exactly, sorry!
Jack Michaelson posted this at 09:12 — 18th January 2000.
He has: 1,733 posts
Joined: Dec 1999
Vincent Puglia,
External CSS go like this:
<link rel="stylesheet" href="YourPath" type="text/css">
Put this in the <head>
Alibababa,
Style tags go like this:
<input type="text" style="border-color:blue;border-width:2;" name="alibababa">
Jack.
[This message has been edited by Jack Michaelson (edited 18 January 2000).]
Shakespeare: onclick || !(onclick)
Vincent Puglia posted this at 03:11 — 19th January 2000.
They have: 634 posts
Joined: Dec 1999
Hi Jack & Alibaba,
Sorry, my lack of specificity. I meant I personally have never used external *.css tags. What I was trying to ask was whether the "<script>" tag itself should be included within the *.css file and that perhaps that was causing Alibaba's problems.
From what I remember, Alibaba has the tags within the file.
Again, sorry for the confusion.
Vinny GrassBlade: cut&paste javascript
Where the world once stood
the blades of grass cut me still
merlin posted this at 07:11 — 19th January 2000.
They have: 410 posts
Joined: Oct 1999
i have the tags in an external file, so i go with <link rel...> (as jack says).
i was thinking 'bout inserting the tags in the html file but this can't be the way because i have quite some files to edit if something changes. only to check if it would work like this.
but still, if it would work, i'd be even more confused about the whole thing....
Jack Michaelson posted this at 12:41 — 19th January 2000.
He has: 1,733 posts
Joined: Dec 1999
Vincent,
You cannot use a <script> tag in a *.css file. What language would you enter there?
CSS is not a language.
Or am I misunderstanding your question again? (my knowledge of the English language can be better)
Jack.
Shakespeare: onclick || !(onclick)
Vincent Puglia posted this at 20:15 — 19th January 2000.
They have: 634 posts
Joined: Dec 1999
Hi Jack,
No, you didn't. I'm just not that fluent in external css. All of the stuff I've done with it has either been with the head tags or inline. I know with js you can include the tags if your include statement is of the <!-- #include ... type. I extrapolated from that and assumed the same could be done with css files. (As Felix of "The Odd Couple" once said: 'Never assume...U make an...' -- a hard lesson to learn.)
Sorry for the confusion.
Vinny GrassBlade:cut&paste javascript
Where the world once stood
the blades of grass cut me still
Jack Michaelson posted this at 09:27 — 20th January 2000.
He has: 1,733 posts
Joined: Dec 1999
Yes,
but external js files can be done like this also:
<script language="javascript" src="YourPath"></script>
When visitors view your source they can't find any of the javascript-functions then. With the <!--include//-->-option they can.
Now I know that's not really a problem, but when you're really proud of your selfcreated js-functions and don't want everybody to copy it easily you might want to use it.
And about external CSS-files:
don't use:<style></style>
Jack
Shakespeare: onclick || !(onclick)
merlin posted this at 12:14 — 20th January 2000.
They have: 410 posts
Joined: Oct 1999
there are no ideas how to solve my problem i suggest?
RC posted this at 13:11 — 20th January 2000.
They have: 89 posts
Joined: Sep 1999
I hope nobody uses the <script language="javascript" src="YourPath"></script> to stop people from viewing the source because this will not work.
Example:
go to www.microsoft.com and view the source. You will see this near the top:
<script language="JavaScript" src='/library/toolbar/toolbar.js'></script>
<script language="JavaScript" src='/library/toolbar/en-us/global.js'></script>
<script language="JavaScript" src='/library/toolbar/en-us/local.js'></script>
The only way I know how to do this is with Windows Netscape 4.7 (and maybe lower) so you have to have that for this example to work. In windows explorer go to Program Files/Netscape/Users/*YOURUSER*/Cache and delete everything in the directory except for the file fat.db. The in Netscape goto the microsoft page again. Then look in the cache directory and you will see 4 files. You will see fat.db and three randomly named .js files, which correspond to the .js files from the page. You can also capture .css files this way, and I have even seen .asp files in there before although I think they were created on the fly as they had no code.
Anyway, not trying to teach people how to "steal" code, just letting people know that anything you put in your online public folder can be seen by the world.
cheers
Jack Michaelson posted this at 13:46 — 20th January 2000.
He has: 1,733 posts
Joined: Dec 1999
RC,
I said "...and don't want everybody to copy it easily you might want..."
(no offense)
A lot of people still don't know that something like a cachefolder exists.
Alibabababababababa,
Thought your problem was solved?
Jack.
[This message has been edited by Jack Michaelson (edited 20 January 2000).]
Shakespeare: onclick || !(onclick)
merlin posted this at 14:59 — 20th January 2000.
They have: 410 posts
Joined: Oct 1999
no sorry, it's not solved yet...
but i got some hints:
- background-colour is white with N, still i have defined a kind of blue (IE shows the right one)
- font is Times New Roman with N, still i defined it as arial, sans-serif in the css (IE shows the right one)
- the size of some classes isn't shown as i want it to with N (IE does it right)
i tried it with internal and external style-sheets, you may have a look at: http://www.inventazo.ch/ausbildung.htm (internal) or http://www.inventazo.ch/ausbildung_2.htm (external).
thanx for comments!
John Pollock posted this at 20:29 — 21st January 2000.
He has: 628 posts
Joined: Mar 1999
I'll take a closer look when I get NS reinstalled (new computer). For grins, you might try matching the case (in the style sheet you have BODY but in the page you have <body>. I doubt that's it but it could be worth a try. I'll get a closer look when I can.
------------------
John Pollock
http://www.pageresource.com
http://www.javascriptcity.com
Java Script: A Beginner's Guide
Page Resource
John Pollock posted this at 19:23 — 22nd January 2000.
He has: 628 posts
Joined: Mar 1999
OK, here it is!
NS had a problem with the font:Arial part of the code in the body declaration. The font set by itself is supposed to be used as a shortcut to writing font-family, font-size, etc. individually. Apparently the font-family or the font were trying to override each other and made NS give up. To fix it, just get rid of the font:Arial and instead of font-family:sans-serif just use font-family:Arial (Arial is sans-serif anyway from what I recall). So make it like this in the css:
BODY { font-family:Arial; font-size:12pt; background-color:6378CB;}
Fixed it for me in NS 4.7, hope it works for you too.
------------------
John Pollock
http://www.pageresource.com
http://www.javascriptcity.com
Java Script: A Beginner's Guide
Page Resource
merlin posted this at 20:38 — 23rd January 2000.
They have: 410 posts
Joined: Oct 1999
thank you john! i'll try it out tomorrow (it's sunday evening, i'd say i won't touch that thing now... )
i'll comment it after trying.
merlin posted this at 10:22 — 24th January 2000.
They have: 410 posts
Joined: Oct 1999
yeah great, it worked! finally i solved this problem with your help! thank you all!!!!!
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.