HTML/CSS/XML/element

Материал из Web эксперт
Перейти к: навигация, поиск

element background

   <source lang="html4strict">

<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?> <?xml-stylesheet type="text/css" href="xml-block.css"?> <MyRoot>

   T<MyElement>d</MyElement>w.

</MyRoot> MyRoot {

   display: block;
   background: lightgrey;

} MyElement {

   display: inline;
   font-weight: bold;
   font-style: italic;
   color: red;

}

</source>
   
  


Style for inner element

   <source lang="html4strict">

<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?> <?xml-stylesheet type="text/css" href="xml-inline.css"?> <MyRoot>

   T<MyElement>d</MyElement>w.

</MyRoot>

MyElement {

   display: inline;
   font-weight: bold;
   font-style: italic;
   color: red;

}

</source>