I list below all topic groups, which I have done according to subjects, which they handle. You can return to this topic group by using this menu and the link Table of topic groups on the top of the each page.
| ||||||||||||||||||||
![]() | Table of topic groups > Front page of CSS-guide > Practice > Model, test and example pages |
|---|
I list in this page referred model, test and example pages in my CSS-tutorial. They are related HTML, XML or CSS encoding. Some of them are very simple, but some are quite complex. I handle them in the same order as they are in my CSS-site, but it is a little bit inconsistent, because the numbering of the model pages isn't fully consistent. In addition I have put comparison pages and screen capture images. These can be use in practising.
![[S]](../Kuvat/buttons/S.gif)
- text
without any structure. It does have also a comparison page:
![[S]](../Kuvat/buttons/S.gif)
- text
with a simple structure.![[S]](../Kuvat/buttons/S.gif)
-
organized text.![[S]](../Kuvat/buttons/S.gif)
- a simple paragraph.![[S]](../Kuvat/buttons/S.gif)
- a document tree.![[S]](../Kuvat/buttons/S.gif)
- a centered paragraph.![[S]](../Kuvat/buttons/S.gif)
- an example of linked CSS.![[S]](../Kuvat/buttons/S.gif)
- comparison between a page
without style sheets and a the page 2,
which use style sheets.![[S]](../Kuvat/buttons/S.gif)
- an
example of simple XHTML-document.![[S]](../Kuvat/buttons/S.gif)
- a model of the usage of the
style attribute. Concerns also the page 11, How to put CSS into Web pages
(position:absolute).![[S]](../Kuvat/buttons/S.gif)
- a model
of the usage of the style attribute and external
style sheets.![[S]](../Kuvat/buttons/S.gif)
- a model
of the usage of the STYLE element and external style
sheets.![[S]](../Kuvat/buttons/S.gif)
- an example of an incorrect
set @import at-rule and concerning the page 4, What are selectors, classes and id-attributes examples of
invalid named selectors. It has also a parallel model page ./Models/Model6NoDTD.html![[S]](../Kuvat/buttons/S.gif)
.![[S]](../Kuvat/buttons/S.gif)
-
demonstrations of the differences of various browsers.![[S]](../Kuvat/buttons/S.gif)
- a model of using shorthand
properties (concerns also the page 8, How to set CSS for backgrounds and borders).![[S]](../Kuvat/buttons/S.gif)
- a model page of the usage of
text colors.![[S]](../Kuvat/buttons/S.gif)
- another
model page of the usage of text colors.![[S]](../Kuvat/buttons/S.gif)
- a model
page of the usage of relative font-size values.![[S]](../Kuvat/buttons/S.gif)
- a
comparison page of xx-small - xx-large
font sizes.![[S]](../Kuvat/buttons/S.gif)
- an example of the usage of
universal selectors.![[S]](../Kuvat/buttons/S.gif)
- a model
of the usage of an element type selector (H2).![[S]](../Kuvat/buttons/S.gif)
-
grouping examples. It has also a model of a table resembling
list, which concerns the page 9, How to set CSS for list elements.![[S]](../Kuvat/buttons/S.gif)
- a model
of the usage of class selectors.![[S]](../Kuvat/buttons/S.gif)
- a model
of the usage of attribute selectors.![[S]](../Kuvat/buttons/S.gif)
- a model
of the usage of id-selectors.![[S]](../Kuvat/buttons/S.gif)
- a test to attribute and
id-selectors.![[S]](../Kuvat/buttons/S.gif)
- a model
of the usage of paragraph related pseudo-elements.![[S]](../Kuvat/buttons/S.gif)
- a model
of contextual selectors.![[S]](../Kuvat/buttons/S.gif)
- another
model of contextual selectors. Concerns also the pages 9, What is the processing order of CSS.![[S]](../Kuvat/buttons/S.gif)
- a selector test with list
elements. Concerns also the pages 9, What is the processing order of CSS.![[S]](../Kuvat/buttons/S.gif)
- a model
of the usage of the !important rule.![[S]](../Kuvat/buttons/S.gif)
- models
of defining the FONT element.![[S]](../Kuvat/buttons/S.gif)
- a model
of basic font definitions to the BODY element.![[S]](../Kuvat/buttons/S.gif)
- a model
of defining the H2 element.![[S]](../Kuvat/buttons/S.gif)
- a model
of defining shorthand properties of font property
(concerns also the page 8, How to set CSS for backgrounds and borders).![[S]](../Kuvat/buttons/S.gif)
- in this place was intention to have a test concerning supporting the @font-face at-rule but I don't have a suitable font file at this moment. That's why there is not really a test.
-
demonstrates the usage of link and dynamic pseudo-classes.
-
tests the property display with image links. Concerns also the page 11, How to put CSS into Web pages.![[S]](../Kuvat/buttons/S.gif)
- a model
of border properties to a BLOCKQUOTE element.![[S]](../Kuvat/buttons/S.gif)
- demonstrates problems with
borders to inline level elements.![[S]](../Kuvat/buttons/S.gif)
- another
page, which has an example, which demonstrates problems with
borders to inline level elements.![[S]](../Kuvat/buttons/S.gif)
- a
model of using box dimension properties with following screen
captures:
- this
is ok.
.
.margin:33%; width:66%):
- ok (also Netscape 6.x
renders correctly).
.
- demonstrates the
previous problem. Concerns also the page 11, How to put CSS into Web pages
(position:fixed).
- test
supporting of background-attachment:fixed and
position:fixed; I have taken three screen captures
of the page:
- this is ok.
. A small background color problem, which is fixed in Mozilla 0.9.
.
.![[S]](../Kuvat/buttons/S.gif)
- an
example of form elements and a screen capture ../Tests/model000.gif
from Mozilla 0.7. In this page is used dynamic
pseudo-classes, when this model concerns also the page 7, How to set CSS for anchors and links.![[S]](../Kuvat/buttons/S.gif)
- a model
of the usage of the list-style-image property.![[S]](../Kuvat/buttons/S.gif)
- an
example of using small faces as list markers.
- test indents, when margin:0, but the padding is
undefined. I took two screen captures of it:
.
- also Opera shows
approximately at the same way.![[S]](../Kuvat/buttons/S.gif)
- tests
generated contents, quotes and some values of the display property. This model concerns also the page 11, How to put CSS into Web pages. ../Tests/Quotes.html
is an additional test page for quotes.![[S]](../Kuvat/buttons/S.gif)
-
demonstrations of border-collapse,
border, background and some other
properties in tables.![[S]](../Kuvat/buttons/S.gif)
-
another model, which demonstrations of
border-collapse, border and
background properties in tables.![[S]](../Kuvat/buttons/S.gif)
-
demonstrations of caption-side, border,
background and some other properties in tables.
-
an example of a heavy table, which use the
table-layout:fixed table layout model.![[S]](../Kuvat/buttons/S.gif)
- a model
of using the float property.![[S]](../Kuvat/buttons/S.gif)
- another
model of using the float property.
- an example page of using the float property. If you have Opera 4.x+, it gives also in the full screen mode an example of a "slide show" (change "slides" with PageUp/PageDown keys).![[S]](../Kuvat/buttons/S.gif)
- a model
of the usage of the position:absolute.![[S]](../Kuvat/buttons/S.gif)
- a model
of the usage of the display property as an
alternative to the visibility property. In this page is used
dynamic pseudo-classes, when this model concerns also the page 7, How to set CSS for anchors and links.![[S]](../Kuvat/buttons/S.gif)
- a model
of the usage of the visibility property as an
alternative to the display property. In this page is used
dynamic pseudo-classes, when this model concerns also the page 7, How to set CSS for anchors and links.![[S]](../Kuvat/buttons/S.gif)
- a
model of the usage of the display:none to hide
elements.![[S]](../Kuvat/buttons/S.gif)
- a model
of the usage of the position:fixed.![[S]](../Kuvat/buttons/S.gif)
-
another model of the usage of the
position:fixed.
- model of
the usage position:fixed and
margin:auto. I have screen captures of it:
-
ok.
- the page is in
a lowered window, which cause horizontal offset. Fixed in Mozilla 0.9.
-
margin:auto doesn't work in this situation.
- a comparison
screen capture image of this site, if I would have defined
margin:auto and max-width properties to
the HTML element (Opera 5.01).![[S]](../Kuvat/buttons/S.gif)
- an example of XML + CSS,
which tests especially the display-property. It has
following comparison pages and a screen capture:
![[S]](../Kuvat/buttons/S.gif)
- a HTML version.![[S]](../Kuvat/buttons/S.gif)
- a XML + XSL(T) + CSS
version.
-
a XSL-fo version.![[S]](../Kuvat/buttons/S.gif)
- a screen capture from the
XML version (Opera 4.x).
- another
XML-example, which use the display-property.![[S]](../Kuvat/buttons/S.gif)
- an XML example page, which most
elements inside the head element are visible. It has
some variations:
![[S]](../Kuvat/buttons/S.gif)
- the referred CSS-file in the
xml-stylesheet declaration doesn't exist.![[S]](../Kuvat/buttons/S.gif)
- the file has no xml-stylesheet
declaration.![[S]](../Kuvat/buttons/S.gif)
- all elements inside the element
head are visible.
- shows some positioning errors in some Mozilla 0.9 based builds.
- a model of incorrect hiding of some elements. This model shows also other problems. Into this page has been referred also extra pages K What CSS-implementation errors are in Opera browsers and Q How to design dynamic menus. It has now two comparison pages:
- this page shows the correct horizontal rendering in Opera 6.04 and Mozilla 1.1a browsers.
- this page shows the incorrect horizontal rendering in Opera 6.04 and Mozilla 1.1a browsers.
.
. The CSS for dynamic menus is in the top of the file. It fits well for Opera 5.x+, MS IE 5.0+ and Netscape 6.x/ corresponding Mozilla browsers but not optimal for MS IE 4.0 for Windows.
. CSS for Netscape 4.x browsers.
(used in the Finnish CSS-pages; I have made into this version some new functions).
(used in the English CSS-pages)
(used in the Finnish CSS-pages; this version has shorter function calls
(used in the English CSS-pages)
(English)
(Finnish)
- a test case in order to demonstrate some problems especially in MS IE 5.x for Mac browsers.
- a model, which has two background boxes for the whole menu.
- a model, where each sub-menus have own "shadow boxes".
- a model, where each sub-menus have own "shadow boxes". The lower boxes have bacground colors.
- a test WML-page with a style sheet for Opera 4.x+. It has also an alternative page without a style sheet:
- a model page, where is used almost all CSS, which I have used in examples.