SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Nov 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can't use an external style sheet - suggestions for good design

    Hello everyone,

    I'm responsible for managing a site within my organization's Intranet. However, all I can edit is what goes between the <body> tags - no header access, and no ability to upload a separate stylesheet. Does anyone have suggestions for creating a reasonably modern looking website? Embedded CSS is fine so long as it can go within the <body> tags. I recognize that the days of html-only templates are long gone, and for good reason...nevertheless, I have to make the best of what I've got.

    I am looking to create pages for linking to instructional material - some text with screenshots, some video tutorials, some links to outside websites. Clear navigation is key. This site is for the library at a medium-sized hospital network.

    Thanks!

    ETA:
    I forgot to mention: a good chunk of our users are still running IE6. Many of the younger physicians and nurses use Firefox, but it's not installed on all hospital computers. This is - to me - ridiculous, but it will not change within the near future and it's beyond my control.

  2. #2
    Non-Member
    Join Date
    Jun 2010
    Location
    4727′35″N 2618′0″E
    Posts
    1,789
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Though not a good practice, you can always use a <style> element inside the <body> element, instead of how it should be, inside the <head> element. Like this:
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 
      "http://www.w3.org/TR/html4/strict.dtd">
    
    <html lang="en"><head>
    
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <title>Odd style element: inside body element</title>
    
    </head><body>
    
      <style type="text/css">
      
        h1 {
          color:blue;
        }
        
        p {
          color:red;
        }
        
        p#house {
         color:green;
        }
    
      </style>
      
    <h1>Take a look</h1>
    <p>It's not the way you should do it, doctor.</p>
    <p id="house">But if it means you have to break the rules, than you should know I very much like House M.D. ;)</p>
    
    </body></html>
    You should also know, Microsoft has IE6 on DNR policy

  3. #3
    SitePoint Member
    Join Date
    Nov 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Smile

    Thanks! I'll try that.

    I've given up on good practice when it comes to the Intranet...I appreciate your help with breaking the rules!


    Take care!

  4. #4
    Non-Member
    Join Date
    Jun 2010
    Location
    4727′35″N 2618′0″E
    Posts
    1,789
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    And welcome to Sitepoint!


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
  •