Author: Mr Stratton

Computing teacher and a PT at Coltness High School.

Using a message box to make a choice

It is possible to use a MsgBox to make a choice in your program. You first of all assign a integer variable to the MsgBox then you change the buttons attributes to vbYesNo. vbYesNo is a VB constant that represents a value, the use of the constant means that you do not need to memories the number, vbYes and vbNo are other examples of these VB constants. An IF statement is then used to make the selection.

N5

Align and Float Images

These notes were prepared using this article.

  • When an image is aligned it is just moved on the page to the left, centre or right. This just effects the position of the image and not the reaction of the text surrounding it. The inline version is given below.
    • <div style=”text-align: center”><img src=”your-image.png” width=”100″ /></div>
  • When an image is floated it can either be on the right or the left of the page. The text is forced to wrap around it. The inline version is given below.
    • <img style=”float: right” src=”page1.gif” />

Using the box model it is possible to float other sections of the page, such as the <NAV> area.

You can find more information on CSS Floats, from the links on the page or here.