Create CSS Code
With HTMLPad, you can easily create and edit CSS code with little or no typing.
The following topics provide more information:
- Working with selectors and rules
- Editing common properties
- Using Inspector
- Using Auto Complete
Working with selectors and rules
Selectors can be easily created, deleted and duplicated using CSS menu and toolbar.
Following CSS menu and toolbar commands are available for working with selectors:
Create Selector opens New Selector dialog box which builds new selector(s) based on options you chose.
Duplicate Selector opens New Selector dialog box which builds new selector(s) based on options you chose, using rules of current selector.
Delete Selector deletes current selector.
Editing common properties
You can easily and quickly modify common formatting properties using CSS menu and toolbar without any typing.
Following CSS menu and toolbar commands are available for quick modification of current selector's common properties:
Font displays Select Font dialog box and creates font-family property based on selected font(s).
Bold adds or removes font-weight: bold.
Italic adds or removes font-style: italic.
Underline adds or removes text-decoration: underline.
Left adds or removes text-align: left.
Center adds or removes text-align: center.
Right adds or removes text-align: right.
Justify adds or removes text-decoration: justify.
Set Line Height creates line-height prop erty.
Set Text Color displays Color Picker dialog box and creates color property based on selected color.
Set Background Color displays Color Picker dialog box and creates background-color property based on selected color.
CSS toolbar displays Font and Font Size drop down boxes for modification of font-family and font-size properties.
Using Inspector
You can use Inspector to quickly add, remove and modify style properties and property values without editing the code directly.
Once caret is inserted inside { and } brackets, Inspector displays a list of supported properties. Code is automatically updated as you cnahge property values.
To enable Inspector, on the View menu click Inspector.

Using Auto Complete
Auto Complete allows to reduce the amount of typing, by displaying list of valid property names that can be inserted with a mouse double click or Enter key.
Auto Complete window is displayed automatically as you type the code. You can also call the Auto Complete by pressing Ctrl+Space. |