How do you make a .css file that...

  • HKt0p5
  • Graduate
  • Graduate
  • User avatar
  • Posts: 135
  • Loc: Bulgaria

Post 3+ Months Ago

Can it be made a .css file that is uploaded in the main dir and applies to all pages, instead of adding the style thing on each one?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • dyfrin
  • Expert
  • Expert
  • User avatar
  • Posts: 503
  • Loc: WI

Post 3+ Months Ago

with php/asp you can.
or apache with mod_rewrite you can do something like:

Code: [ Select ]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/(.*)MSIE
RewriteRule (.*)style.css$ $1style_ie.css [L]

RewriteCond %{HTTP_USER_AGENT} ^Mozilla/(.*)Firefox
RewriteRule (.*)style.css$ $1style_ff.css [L]
  1. RewriteCond %{HTTP_USER_AGENT} ^Mozilla/(.*)MSIE
  2. RewriteRule (.*)style.css$ $1style_ie.css [L]
  3. RewriteCond %{HTTP_USER_AGENT} ^Mozilla/(.*)Firefox
  4. RewriteRule (.*)style.css$ $1style_ff.css [L]
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

Unless you use a complicated output filter, you're going to have to put something in each page.
  • HKt0p5
  • Graduate
  • Graduate
  • User avatar
  • Posts: 135
  • Loc: Bulgaria

Post 3+ Months Ago

I wonder how that would work for divs and plain text links. Hmm.. ohwell, thankies!

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 65 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.