Sometimes you hate the designer's work ....
Results 1 to 4 of 4

Thread: Sometimes you hate the designer's work ....

  1. #1
    Settled 4 red convertible dalecosp's Avatar
    Join Date
    Jul 2002
    Location
    Accelerating Windows at 9.81 m/s....
    Posts
    8,525

    Sometimes you hate the designer's work ....

    Especially when they tag every element on the page with inline styles ...

    Code:
    <script>
    function badTimes() {
       eles = new Array('p','td','tr','ul','li','table','span','div','a');
       for (i=0; i< eles.length; ++i) {
          this_element = eles[i];
          jQuery(this_element).css("fontFamily","Tahoma,Arial,Sans");
       }
    };
    badTimes();
    </script>
    /!!\ mysql_ is deprecated --- don't use it! Tell your hosting company you will switch if they don't upgrade! /!!!\ ereg() is deprecated --- don't use it!

    dalecosp "God doesn't play dice." --- Einstein "Perl is hardly a paragon of beautiful syntax." --- Weedpacket

    Getting Help at All --- Collected Solutions to Common Problems --- Debugging 101 --- Unanswered Posts --- OMBE: Office Machines, Business Equipment

  2. #2
    High Energy Magic Dept. NogDog's Avatar
    Join Date
    Aug 2006
    Location
    Ankh-Morpork
    Posts
    14,888
    WTF?
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

  3. #3
    Senior Member cluelessPHP's Avatar
    Join Date
    Apr 2015
    Location
    Scotland
    Posts
    493
    Quote Originally Posted by NogDog View Post
    WTF?
    I was about to say the same
    Once you had a good excuse, you opened the door to bad excuses ― Terry Pratchett, Thud
    Fresh start
    Github version
    Current date 14/10/17
    Finish date "should be" 14/04/18

    Vote on your preferred indentation method

  4. #4
    Settled 4 red convertible dalecosp's Avatar
    Join Date
    Jul 2002
    Location
    Accelerating Windows at 9.81 m/s....
    Posts
    8,525
    Heheh ... they call me the webmaster, and the CSS for this site has sans-serif fonts in every location. But the PHB has final approval on everything and the designer submitted a new page with TNR fonts (and all the CSS is inline inside the HTML). I mentioned that the rest of the site is "sans-serif", that this page looks wrong in context, but gained no traction with either of them.

    The JS shown is wrapped in a PHP test/conditional that makes sure that everyone inside the office we get to see the TNR, but the general audience will see consistency in fonts
    Last edited by dalecosp; 04-20-2017 at 03:43 PM.
    /!!\ mysql_ is deprecated --- don't use it! Tell your hosting company you will switch if they don't upgrade! /!!!\ ereg() is deprecated --- don't use it!

    dalecosp "God doesn't play dice." --- Einstein "Perl is hardly a paragon of beautiful syntax." --- Weedpacket

    Getting Help at All --- Collected Solutions to Common Problems --- Debugging 101 --- Unanswered Posts --- OMBE: Office Machines, Business Equipment

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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