|| Simple WebPages | Formatted WebPages |
Cascading style sheets (CSS) can be used to determine the appearance of HTML commands such as headings, paragraphs and tables. They are not complicated and there is plenty of help available on the internet. Nevertheless, producing a working example can involve some trial and error.
This page may help those who wish to generate web pages from Excel macros. The following VBA code can create an HTML page header which includes some CSS formatting instructions and classes.
The following items have had these CSS instructions applied.
A default paragraph which is not defined in this particular set of CSS instructions.
The following table uses a CSS class to format the blue header cells: <class='msblue'> The table itself uses the default <table> instructions.
The following example uses various CSS classes to format some of the cells. <td class='msblue'> The table itself uses a class to add a border: <table class='styleborder'>.
The following paragraph has been given a CSS attribute in order to reduce its size and change its colour and case.
|© meadinkent.co.uk 2014
|Last updated Aug14