Hidden CSS

liunx

Guest
Is it possible to set your server so that people can't Download your CSS code?

I ask because I've been looking at <!-- w --><a class="postlink" href="http://www.businesslink.gov.uk">www.businesslink.gov.uk</a><!-- w -->, and when I try to get to the CSS files I always draw a blank (eg <!-- m --><a class="postlink" href="http://www.businesslink.gov.uk/syntegra/css/menu_basic.css">http://www.businesslink.gov.uk/syntegra ... _basic.css</a><!-- m --> doesn't load). Any ideas?No, I don't think so. I loaded their CSS file just fine.i see it fine as well. is there a chance someone slipped acid into your Pepsi?

#left {
BORDER-RIGHT: white 0px solid; BORDER-TOP: white 0px solid; Z-INDEX: 4;
LEFT: 8px; BORDER-LEFT: white 0px solid; WIDTH: 170px; COLOR: #669;
BORDER-BOTTOM: white 0px solid; POSITION: absolute; TOP: 120px
}
#left A:hover {
COLOR: #339; TEXT-DECORATION: underline
}
#left A:visited {
COLOR: #333; TEXT-DECORATION: none
}
#left A:hover {
COLOR: #339; TEXT-DECORATION: underline
}
#left A:link {
COLOR: #333; TEXT-DECORATION: none
}
#left STRONG {
FONT-WEIGHT: bold
}
#left P {
PADDING-RIGHT: 0px; PADDING-LEFT: 13px; FONT-SIZE: 12px;
PADDING-BOTTOM: 0px; MARGIN: 0px; LINE-HEIGHT: normal; PADDING-TOP: 0px;
BACKGROUND-REPEAT: no-repeat; BACKGROUND-COLOR: white
}
#left TABLE {
FONT-SIZE: 12px; LINE-HEIGHT: normal
}
#left TABLE TD.marker IMG {
PADDING-RIGHT: 0px; DISPLAY: block; PADDING-LEFT: 0px;
PADDING-BOTTOM: 0px; MARGIN: 0px -10px 0px 0px; PADDING-TOP: 0px
}
#left TABLE TD.marker {
WIDTH: 10px
}
#left P.home {
PADDING-LEFT: 0px; BACKGROUND-IMAGE: none
}
#left P.menufinance {
BACKGROUND-IMAGE: url(/syntegra/images/leftnav_finance.gif)
}
#left P.menugrowthandinnovation {
BACKGROUND-IMAGE: url(/syntegra/images/leftnav_growthandinnovation.gif)
}
#left P.menustartingabusiness {
BACKGROUND-IMAGE: url(/syntegra/images/leftnav_startingabusiness.gif)
}
#left P.menugrantsandadvice {
BACKGROUND-IMAGE: url(/syntegra/images/leftnav_grantsandadvice.gif)
}
#left P.menubuyingandselling {
BACKGROUND-IMAGE: url(/syntegra/images/leftnav_buyingandselling.gif)
}
#left P.menutaxandreporting {
BACKGROUND-IMAGE: url(/syntegra/images/leftnav_taxandreporting.gif)
}
#left P.menuemployingpeople {
BACKGROUND-IMAGE: url(/syntegra/images/leftnav_employingpeople.gif)
}
#left P.menuhealthandenvironment {
BACKGROUND-IMAGE: url(/syntegra/images/leftnav_healthandenvironment.gif)
}
#left P.menuinternationaltrade {
BACKGROUND-IMAGE: url(/syntegra/images/leftnav_internationaltrade.gif)
}
#left P.menuitandecommerce {
BACKGROUND-IMAGE: url(/syntegra/images/leftnav_itandecommerce.gif)
}
#left P.menusalesandmarketing {
BACKGROUND-IMAGE: url(/syntegra/images/leftnav_salesandmarketing.gif)
}
#left P.menusellingabusiness {
BACKGROUND-IMAGE: url(/syntegra/images/leftnav_sellingabusiness.gif)
}
#left P.menuinyoursector {
BACKGROUND-IMAGE: url(/syntegra/images/leftnav_inyoursector.gif)
}
#left P.hr {
PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: 1px;
PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
#left P.hr IMG {
PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
#left #opencategory TD.spine {
VERTICAL-ALIGN: top; WIDTH: 5px; BACKGROUND-COLOR: #9c9
}
#left #opencategory TD.spine IMG {
PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
#left #opencategory P.title {
PADDING-RIGHT: 0px; PADDING-LEFT: 1px; PADDING-BOTTOM: 3px; PADDING-TOP: 3px
}
#left #opencategory P.subtitle {
PADDING-RIGHT: 0px; PADDING-LEFT: 1px; PADDING-BOTTOM: 3px; PADDING-TOP: 3px
}
#left #opencategory TR.highlight {
BACKGROUND-COLOR: #e0f0e0
}
#left #opencategory TR.highlightfirst {
BACKGROUND-COLOR: #e0f0e0
}
#left #opencategory TR.highlightlast {
BACKGROUND-COLOR: #e0f0e0
}
#left #opencategory TD.level0 P.title {
PADDING-LEFT: 4px; FONT-WEIGHT: bold
}
#left #opencategory TD.level0 P.subtitle {
PADDING-LEFT: 4px; FONT-WEIGHT: bold
}
#left #opencategory TD.level1 P.title {
PADDING-LEFT: 12px
}
#left #opencategory TD.level1 P.subtitle {
PADDING-LEFT: 12px
}
#left #opencategory TD.level2 P.title {
PADDING-RIGHT: 8px; PADDING-LEFT: 8px
}
#left #opencategory TD.level2 P.subtitle {
PADDING-RIGHT: 8px; PADDING-LEFT: 8px
}
#left #opencategory TD.level2 P.hr {
PADDING-LEFT: 8px
}
#left #opencategory TD.level3 P.title {
PADDING-LEFT: 13px
}
#left #opencategory TD.level3 P.subtitle {
PADDING-LEFT: 13px
}
#left #opencategory TR.marked TD.level1 P.title {
PADDING-RIGHT: 0px; PADDING-LEFT: 0px
}
#left #opencategory TR.marked TD.level1 P.subtitle {
PADDING-RIGHT: 0px; PADDING-LEFT: 0px
}
#left #opencategory TD.marker {
PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; WIDTH: 10px; PADDING-TOP: 0px
}
#left #opencategory TD.level1 {
PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; WIDTH: 155px; PADDING-TOP: 0px
}
#content #left {
FLOAT: left; WIDTH: 200px; POSITION: static
}
#content #left P.hr {
PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: 1px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
#content #left P {
PADDING-LEFT: 15px
}Firefox loads it for me, IE does not.Pyro's right; we were all using Firefox! :D

That's curious, though, do you think they have a header that maybe sends an "empty" content type if the file is requested by itself?Originally posted by Jona
Pyro's right; we were all using Firefox! :D

That's curious, though, do you think they have a header that maybe sends an "empty" content type if the file is requested by itself?

That would be... risky, I would think, wouldn't it? Since the browser makes an independant request for the styles?

Isn't that the whole point of CSS, that the stylesheet is Download ed only once, no matter which page you're on?

There may be some .htaccess wizardry that could be accomplished, but I dunno.Originally posted by mikepurvis
There may be some .htaccess wizardry that could be accomplished, but I dunno.

That's what I meant.Originally posted by TimeBandit
i see it fine as well. is there a chance someone slipped acid into your Pepsi?

DOH!
Obviously, it was not acid in your Pepsi, but crack in my Twinkies!
 
Back
Top