Making GUI elements in the same relative place in any resolution

How do I make it so that my GUI textures stay in the top right/left no matter the pixel size. And in the middle on the top. because my problem is my screen on one of my computers is huge compared to the tiny resolution on my laptop. So when I play my game on the laptop you can see the health bar or instructions cause they are to high. So how do you make it so that your GUI textures are allays able to be seen. I need them to be on the top right.. and the top middle. Thanks in advance.

From http://unity3d.com/support/documentation/Components/gui-Basics.html

You can use the Screen.width and Screen.height properties to get the total dimensions of the screen space available in the player.

/* Screen.width & Screen.height example */

function OnGUI () {
GUI.Box (Rect (0,0,100,50), "Top-left");
GUI.Box (Rect (Screen.width - 100,0,100,50), "Top-right");
GUI.Box (Rect (0,Screen.height - 50,100,50), "Bottom-left");
GUI.Box (Rect (Screen.width - 100,Screen.height - 50,100,50), "Bottom-right");

}

If you create a GUITexture there will be a public variable in the inspector called texture. You can add your own 2D texture here. You can change the position in the transform component X and Y settings. (0, 0) is bottom-left, (1,1) is top right.

You could also follow Ben's advice, change Box for Label and add something like the code bellow in the script. This way you'll get full control of the style settings.

From Reference Manusal Scripting Guide

/* Overriding the default Control Style with one you've defined yourself */

var customLabel : GUIStyle;

function OnGUI () {
    // Make a button. We pass in the GUIStyle defined above as the style to use
    GUI.Label (Rect (10,10,150,20), "I am a Custom Label", customLabel);
}

void OnGUI()
{
float rx = Screen.width / 720.0f //or whatever with do you want;
float ry = Screen.height / 1280.0f //or whatever height do you want;

		Matrix4x4 oldmat = GUI.matrix;
		GUI.matrix = Matrix4x4.TRS(new Vector3(0,0,0),Quaternion.identity,new Vector3(rx,ry,1));
}

useful code here but i suggest to do it like this:

var rx : float = Screen.width / Screen.width; //or whatever with do you want;
	var ry : float = Screen.height / Screen.height; //or whatever height do you want;
	 
	var oldmat : Matrix4x4  = GUI.matrix;
	GUI.matrix = Matrix4x4.TRS(new Vector3(0,0,0),Quaternion.identity,new Vector3(rx,ry,1));

It will stay in right places, for me atleast, tried several resolutions too