that text however you like. For example, you (Web hosting comparison)
that text however you like. For example, you can select a chunk of text and use options on the Formatting toolbar to make it bold, change its font, or whatever. Items enclosed in square brackets are Label controls that are bound to data in the underlying database table or view. Those you can format in a similar manner. But you don t drag the mouse pointer through the item as you would with regular text. You just click the item to select it. Then choose options from the Formatting toolbar. To select multiple Label controls, click one to select it. Then hold down the Ctrl key while clicking others that you want to select. You can also rearrange things in the ItemTemplate to change how things look on the page. Moving things around can be a little awkward, especially if you re trying to align controls side-by-side. That s because the items wordwrap within the template, just as they would in a word processing program. To get things side-by-side, you may need to widen the control. To do so, click the top of the DataList control to select it. Then use the sizing handle on its right border to widen or narrow the control. To move an item, just drag it to where you want to put it. Or, click the item to select it, press Ctrl+X to cut it, click where you want to put the control, and press Ctrl+V to paste it. If you want a space to appear between items in the page, make sure to insert a blank space between the items within the template. Figure 12-43 shows an example where I deleted all the text labels, leaving only the bound Label controls. Those I rearranged so that the ItemNameLabel is on the top. The ItemDescriptionLabel, OurItemIdLabel, and ItemPriceLabel controls are side-by-side on one line, with one space between them. Chapter 12: Using Data in Web Pages 299 Blank lines in a DataList control Though you can t see them, any extra carriage returns at the bottom of the control will add height to the control, and will also put extra space between each record on the Web page. (A carriage return is an invisible character that gets added every time you press the Enter or Return key.) To reduce the height of a DataList control, you may need to remove some of those extra carriage returns. You ll need to be in the Edit Templates mode, like Figure 12-42, to do that. Click inside the template, then move the cursor to the bottom of the template (press Ctrl+End). From there, each time you press Backspace you ll remove one carriage return (one blank line). If you go too far and delete a control within the template, press Undo (Ctrl+Z) to undo the deletion.
We recommend cheap and reliable webhost to host and run your web applications: Coldfusion Web Hosting services.