FreeHostia Forums
https://forum.freehostia.com/

CSS style file content missing
https://forum.freehostia.com/viewtopic.php?f=8&t=63277
Page 1 of 1

Author:  Qingshan [ Tue Oct 09, 2012 6:14 am ]
Post subject:  CSS style file content missing

I encountered this strange thing:
My website is http://www.yisee.org
I have a CSS style file Geshi.css
because the web pages didn't show as planned, I downloaded the entire page to desktop for analysizing.
Then I found this:

This Geshi.css file on the server side has this content:

#nav0 #container #nav #nav00 a,
#nav1 #container #nav #nav01 a,
#nav2 #container #nav #nav02 a,
#nav3 #container #nav #nav03 a,
#nav4 #container #nav #nav04 a,
#nav5 #container #nav #nav05 a,
#nav6 #container #nav #nav06 a,
#nav7 #container #nav #nav07 a,
#nav8 #container #nav #nav08 a,
#nav9 #container #nav #nav09 a,
#na10 #container #nav #nav10 a,
#na11 #container #nav #nav11 a,{color:gold; background:url(00Comm/red.jpg);}

but the downloaded Geshi.css file doesn't have this content.

What caused this problem, how can I fix it?

Author:  Qingshan [ Wed Oct 10, 2012 5:43 am ]
Post subject:  Re: CSS style file content missing

by try and correct, I solved this problem by adding a body before the sign #, like this:

body#nav0 #container #nav #nav00 a,
body#nav1 #container #nav #nav01 a,
body#nav2 #container #nav #nav02 a,
body#nav3 #container #nav #nav03 a,
body#nav4 #container #nav #nav04 a,
body#nav5 #container #nav #nav05 a,
body#nav6 #container #nav #nav06 a,
body#nav7 #container #nav #nav07 a,
body#nav8 #container #nav #nav08 a,
body#nav9 #container #nav #nav09 a,
body#na10 #container #nav #nav10 a,
body#na11 #container #nav #nav11 a,{color:gold; background:url(00Comm/red.jpg);}

But my intention of highlighting current page with css still can't be realized, although it worked quite good on the simulator.

Can anybody tell me how to highlight current page with css on this server?
Is there ay success story to share?
Thank you!

Author:  Qingshan [ Fri Oct 12, 2012 3:22 am ]
Post subject:  Re: CSS style file content missing

My primary purpose is to highlight the current page.
Since the html css combination doesn't solve this problem, I turned to php "if...else" clause, and solved it.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/