SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard rguy84's Avatar
    Join Date
    Sep 2005
    Location
    Durham, NC
    Posts
    1,659
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)

    Disabling Individual Stylesheets

    I am doing a review of a website that it is poorly made. The developer is doing some things, mainly in CSS he needs to take out. He is the type that says I am making stuff up. I have gone cross-eyed trying to figure out his code. Is there a way to enable/disable by stylesheet to find out what is happening?
    Ryan B | My Blog | Twitter

  2. #2
    Life is not a malfunction gold trophysilver trophybronze trophy
    TechnoBear's Avatar
    Join Date
    Jun 2011
    Location
    Argyll, Scotland
    Posts
    6,088
    Mentioned
    255 Post(s)
    Tagged
    5 Thread(s)
    If you use the Web Developer Toolbar for FF, there's a CSS menu and one of the options there is to disable individual stylesheets. Is that what you were looking for?
    Take plenty of exercise – walk round and round the garden
    or
    sign up now for the Isle of Jura 10K or Half Marathon!

  3. #3
    SitePoint Mentor bronze trophy
    John_Betong's Avatar
    Join Date
    Aug 2005
    Location
    City of Angels
    Posts
    1,806
    Mentioned
    73 Post(s)
    Tagged
    6 Thread(s)
    @rguy84

    If you are using PHP then you could use the following:

    PHP Code:

    <head>

      <?php if( ) { /* 0 == FALSE */ ?>
         <link type="text/css" href="style-001.css" rel="stylesheet" />
      <?php ?>

      <?php if( ) { /* 1 == TRUE */ ?>
         <link type="text/css" href="style-002.css" rel="stylesheet" />
      <?php ?>

      <style type='text/css' >
        .hhh {display:none}
       </style>
    <head>
    <body>


    <div class='hhh' >
    Nothing displayed
    ...
    ...
    </div>

    <table class='hhh'>
    ...
    ...
    </table>


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •