Saturday, June 6, 2020

CSS left panel layout sample

HTML code:

<!--Force IE6 into quirks mode with this comment tag-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>CSS Left Panel Layout</title>
<link rel="stylesheet" href="index.css"/>

<script type="text/javascript">
/*** Temporary text filler function. Remove when deploying template. ***/
var gibberish=["Ular melingkar di atas pagar.", "Satu Ribu, Dua Biru, Tiga Ribu, Empat Biru.", "Kelapa di Parut, Kepala di Garuk."]
function filltext(words){
for (var i=0; i<words; i++)
document.write(gibberish[Math.floor(Math.random()*3)]+" ")
}
</script>

</head>

<body>

<div id="leftpanel">
<div class="inner-content">

<h1>CSS Left Panel Layout</h1>
<h3>Sample text here</h3>

</div>
</div>


<div id="main-content">
<div class="inner-content">

<h2>Right Panel Title</h2>
<p><script type="text/javascript">filltext(125)</script></p>
<p style="text-align: center">Footer: <a href="#">CSS Left Panel Layout</a></p>

</div>
</div>


</body>
</html>

CSS code:

/* liquid layout with the left column being static, always in view. Tested and works in IE5+, Opera7+, and Firefox. */
body{
margin: 0;
padding: 0;
border: 0;
overflow: hidden;
height: 100%;
max-height: 100%;
}

#leftpanel{
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 200px; /*Width of left div*/
height: 100%;
overflow: hidden; /*Disable scrollbars. Set to "scroll" to enable*/
background: #f0f0f0;
color: black;
}

#main-content{
position: fixed;
top: 0;
left: 200px; /*Set left value to Width Of Left Div*/
right: 0;
bottom: 0;
overflow: auto;
background: #fff;
}

.inner-content{
margin: 15px; /*Margins for inner DIV inside each DIV (to provide padding)*/
}

* html body{ /*IE6 hack*/
padding: 0 0 0 200px; /*Set value to (0 0 0 WidthOfFrameDiv)*/
}

* html #maincontent{ /*IE6 hack*/
height: 100%;
width: 100%;
}

Reference:
http://www.dynamicdrive.com/
https://trinket.io/

Friday, June 5, 2020

How to insert fraction in Microsoft Word

Method 1a using Microsoft Word field

Fraction equation in Microsoft Word of field:
{EQ \f(x, y)}

Just make sure you insert regular field braces by pressing Ctrl+F9, and replace x with your numerator number and y with your denominator number.

Method 1b using Microsoft Word field

Fraction equation in Microsoft Word of field:
{ EQ \s\up2(9)/\s\do2(11) }

Just make sure you insert regular field braces by pressing Ctrl+F9, and replace x with your numerator number and y with your denominator number. The result is a fraction using a horizontal divider between the numerator and the denominator.

The result look like this:
1/2

Method 2 using Equation Editor 3.0

requirement:
Equation Editor 3.0 objects will still display normally if you have MT Extra font installed (if you don't have the font, you can search on search engine and download it, or you can download it here https://www.microsoft.com/en-us/download/details.aspx?id=56828).

In Microsoft Office Word 2003 and may some before version:

  1. In Word, place the insertion point where you want the math symbol or template to insert.
  2. From the Insert menu, select Object...
  3. The Object dialog box appears.
    • Windows: From the Object type scroll box, select Microsoft Equation 3.0
    • Macintosh: From the Object type scroll box, select Microsoft Equation
  4. Click OK
    • Windows: The Equation Editor and Equation toolbar appear.
    • Macintosh: The Equation dialog box appears containing the Equation Editor and Equation toolbar.
  5. Use the fraction on the Equation toolbar or dialog box to add fraction to your document.
  6. Finish.

In Microsoft Office Word 2007 and new version:

  1. Click Insert tab, in the Text group, click Object.
  2. In the Object type box, click Microsoft Equation 3.0, and then click OK.
  3. Use the fraction on the Equation toolbar to add fraction to the equation. If you finish, then to return to your document, click anywhere in the document.
  4. Finish.

Method 3 using built-in equation

  1. Choose Insert > Equation
  2. then click "Inset New Equation".
  3. After you insert the equation then Equation Tools Design tab opens with symbols and structures that can be added to your equation.
  4. Then add your requirement fraction on Fraction group in Ribbon.
  5. Finish
Reference:
https://www.teachucomp.com/
https://www.uwec.edu/
https://word.tips.net/
https://www.myofficetricks.com/
https://support.microsoft.com/

Related Topic:

Wednesday, June 3, 2020

VBA Word Document Object 1

Dim variable_name As Document

' binding variable name object to document object
Set variable_name = ActiveDocument

Set variable_name = ThisDocument

Set variable_name = Documents("file name.extension")
' or
Set variable_name = Documents("file name.extension")

' the first document in the Documents collection.
Set variable_name = Documents(1)

Monday, April 20, 2020

Word VBA Examples List

Word VBA Examples List:

Select / Go To
    Bookmarks
    Document
    Columns
    Font
    Insert
    Loops
    Paragraph

Word VBA Macro Tutorial
Simple Word Macro Example

    Word Macro Basics

Word Document Object

    Application

Documents

        ActiveDocument
        ThisDocument
        Document Variables
    Document Methods
        Open Document
        Create New Document
        Save Document
        Close Document
        Print Document

Range, Selection, Paragraphs

    Range
        Set Range Text
    Selection
        Move Selection
    Paragraphs
    Word VBA Tutorial Conclusion

Word Macro Examples

    PowerPoint VBA FAQs
        What is a Word Macro?
        Does word have VBA?
        How do I use VBA in Word?

Microsoft Word VBA Snippet Code 1


when you want to operate in Microsoft Word more lightly you can using Microsoft Word VBA ( Visual Basic Application ). How to add Microsoft Word VBA or Macro:

  1. First you can access by opening your Microsoft Word software.
  2. Then press Alt+F11.
  3. Click menu Insert > Module
  4. Add sub procedure by typing Sub and name with every suitable name that follow Microsoft Visual Basic notation.
  5. And you can copy paste or type any of this following Microsoft Word VBA snippet code.


for typing after our selection or our cursor:
Selection.InsertAfter "Some text"

the following statement copies the contents of the current selection to the Clipboard:Selection.Copy

Select paragraf
Selection.StartOf wdParagraph, wdExtend

same as press Backspace
Selection.TypeBackspace

reference:
https://sourcedaddy.com/
https://www.automateexcel.com/

Sunday, April 19, 2020

Wildcards Character and Operator in Microsoft Word

Wildcards Character and Operator

The question mark matches any single character;

Asterisk are wildcard characters that represent characters in the search text. The asterisk matches any group of characters (commonly called a text string).
For example, searching for wo*d finds text such as word, world, and worshipped.

To use these wildcard characters, select the Use wildcards check box in the Find and Replace dialog box:

Friday, April 17, 2020

Script Compile Java NppExec di Notepad++

Di bawah ini adalah Script Compile Bahasa Pemrograman Java dengan menggunakan plugin NppExec di software text editor Notepad++:

::compile and run sqlite jdbc
NPP_SAVE
cd $(CURRENT_DIRECTORY)
javac $(FILE_NAME)
if $(EXITCODE) == 1 GOTo  exitscript
npp_run cmd /c java -cp .;"C:\portable\library\sqlite-jdbc-3.23.1.jar" $(NAME_PART)
:exitscript

Topik yang berhubungan dengan Java dan Notepad Plus Plus: