Beispiel:CSS-logisch-1.html

Aus SELFHTML-Wiki
Wechseln zu: Navigation, Suche
<!DOCTYPE html>
<html lang="de">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" href="./Beispiel:SELFHTML-Beispiel-Grundlayout.css">
  <title>Logische Eigenschaften 1</title>
  <style>
section {
    border-left: thick solid #c32e04;
    padding-left: 1em;
    width: 25em;
}

section[dir=rtl]{
    border-left: none;
    padding-left: 0;    
    border-right: thick solid #c32e04;
    padding-right: 1em;        
}
[lang=ja]{
    writing-mode: vertical-rl;
}
      
  </style>	
</head>
 
<body>
<h1>Logische Eigenschaften 1</h1>
  
<section>
    <h2>Webdesign</h2>
    <p>Mit CSS können Sie Webseiten gestalten!</p>
</section>
    
<section dir="rtl" lang="ar">
    <h2>تصميم المواقع</h2>
    <p>يمكنك تصميم مواقع الويب باستخدام CSS!</p>
</section>

<section dir="rtl" lang="ja">
    <h2>ウェブデザイン</h2>
    <p>CSSでウェブサイトをデザインできます!</p>
</section>

</body>
</html>