CCCPaste

Latihan10_css

/* di bawah ini adalah STYLE untuk elemen BODY
dan DIV CLASS "container" untuk semua file HTML Latihan */

body {
  font-family: Arial, sans-serif;
  background: #f8f9fa;
  margin: 40px;
}

.container {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: auto;
}

/* di bawah ini adalah STYLE untuk HTML Latihan10_1 */
#judul-halaman {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  color: #333;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: #ffffff;
  overflow: hidden;
  border-radius: 8px;
}

caption {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #444;
}

th {
  background: #0d6efd;
  color: white;
  padding: 12px;
  text-align: center;
  border: 1px solid #d0d0d0;
}

td {
  padding: 10px;
  border: 1px solid #d0d0d0;
  text-align: center;
}

tr:nth-child(even) {
  background: #f0f4ff;
}

tr:hover {
  background: #e2e6ff;
}

.highlight {
  color: white;
  font-weight: bold;
}

/* di bawah ini adalah STYLE untuk HTML Latihan10_2 */
#judul-iframe {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
  color: #333;
}

.penjelasan {
  font-size: 16px;
  margin-bottom: 20px;
  color: #555;
}

.penjelasan span {
  font-weight: bold;
  color: #0d6efd;
}

.iframe-wrapper {
  border: 2px solid #0d6efd;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

iframe {
  width: 100%;
  height: 390px;
  border: none;
}