Pages

Showing posts with label HTML. Show all posts
Showing posts with label HTML. Show all posts

1/03/2014

Putting code example in HTML documents

Use the XMP tag
<pre><code><xmp>
   ...code...
</xmp></code></pre>

3/20/2011

Code in text box with scroll bars

The following is the CSS used in my template to quote code with <PRE> <CODE>:

pre { 
 font: 100% courier,monospace; 
 width: 100%;
 overflow-x: auto;
 max-height: 400px
 border: 1px dotted #281;
 border-left: none;
 background-color: #fff;
 padding-bottom: 16px;
 font-size: 1em;
 word-wrap: normal;
}

code { 
 font: 100% courier,monospace; 
}

11/09/2009

Website Redirection

I seem to be looking this up every time. Say I have a website with an app in a subfolder. I want to redirect to website/appfolder/default.htm so I don't make the user type https://website/appfolder.
Take this and save it to default.htm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>TITLE</title>
<meta http-equiv="REFRESH" content="0;url=https://info.domain.com/reaction"></HEAD>
<BODY>
Please wait while you are being redirected.
Click<a href="https://website/appfolder">here</a> to go there immediately.
</BODY>
</HTML>

If you want to redirect from unsecure (http) url to a secure (https) url then it is necessary to customize the 403.4 error message text to be the HTML code above.
Do this for IIS by replacing C:\WINDOWS\help\iisHelp\common\401-4.htm with above.
You can revert to the default anytime:
  • right-click the website and choose properties
  • Click Custom Errors tab
  • Click on the 401;4 entry and hit "Set to Default"

  • 5/27/2009

    HTML


    Spent some quality time today working on my project journal site. I tried getting fancy with CSS to try to figure it out. I'm left with kind of a hybrid mess until I have more time to spend on it. I now have a table formatted page, but with an external style sheet taking the place of the STYLE section of my header.
    Some good links:
    http://www.wpdfd.com/issues/70/css_from_the_ground_up/

    http://www.cryer.co.uk/resources/javascript/html5_fun_with_bullets.htm#MenuStyleBulletList

    3/28/2008

    HTML::Style Sheet::Page Breaks


    This is a wonderful thing:

    <STYLE TYPE="text/css">
    HR {page-break-before: always}
    </STYLE>