Clikpic User Guide/Formatting Text Using Html/Assigning other styles

Formatting Text Using Html

Assigning other styles

You can assign other styling elements using CSS styling. This works by using the style attribute of the tag you are styling. There are two tags you can use depending on whether you need to style a whole “block” of text or just a bit of text inside a paragraph (“inline”).

Block elements – the <div> tag

To assign styles to a block of text, surround the text with <div> and </div> tags. Then place your styling information inside the start tag, e.g.

<div style="padding:4px;">...</div>

Inline elements – the <span> tag

You can use the span tag to style words within a block, e.g.

Special offers for August – <span style="color:red;">BOOK NOW</span>

Style values

The values of the style attribute can include the following:

Border-width*

Enter a numeric value AND the units, usually px for pixels. 1px is recommended for most orders.

Border-color*

Enter a hex value preceded by a # sign. For more info on hex colours, see the Customisation guide, available for download on the Style settings page

Border-style

Solid or dashed are generally the values supported by most browsers.

Margin*

Enter a numeric value AND the units, usually px for pixels.

Padding*

Enter a numeric value AND the units, usually px for pixels.

Color

The colour of text within the element. Enter a hex value preceded by a # sign. For more info on hex colours, see the Customisation guide, available for download on the Style settings page

Font-weight

The weight of text within the element. Use "Bold" or "normal".

Font-size

The size of text within the element. Try to use a percentage value, such as 110%.

*Margin, border-width and padding can take 1, 2 or 4 values. These allow you to specify the same value for all sides, the values for horizontal and vertical, or the values for top, right, bottom, and left respectively (like the points of a compass).

E.g. border-width:1px; A one pixel border.
  border-width:0 0 4px 0; A four pixel border UNDER the element only.
  margin:4px 0; Four pixel margin above and below an element.

Separate multiple values with a semi-colon, e.g.

style="margin:4px 0; padding:2px;color:#333333;"

 
 

Printed from www.clikpic.com - Websites for photographers and artists