Jump to content

[SOLVED] Black list


Azu

Recommended Posts

You know how normally when you define the elements that CSS applies to, it is white list based, where you have to list all of the ones you want it to effect? Like a,b,c,d,e{css:stuff;}?

 

How can I make it blacklist based, so that I put in !f{css:stuff;} and it will apply to all elements except f? I really need this for cutting down on my CSS size please ^^

 

And also, my CSS file is generated by PHP, some of it is changed to match the browser the person is using.

But each browser should only need to download it once.

So how can I make it so that it is only downloaded once?

I tried

header("Cache-Control: public");

header("Expires: ".gmdate('D, d M Y H:i:s',time()+99999999)." GMT");

But it didn't work. The whole thing is still downloaded on every page view.

 

And is there a way that I can replace </td><td> with a single character, preferably some high ASCII one that isn't normally used?

Link to comment
Share on other sites

In short, you can't create that sort of black list. If you get a full grasp on the concept of the cascading, though, you can almost always come up with better ways of combining parent elements into fewer calls. Also, if you have some overarching things you want to apply to everything up front so you can create your exception elements afterward, you could use the '*' wildcard declaration. This is closer to what you're after, but still not a true black list.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.