- Ejecutores
-
Aprender
Aprender Python Ejemplos ejecutables, NumPy, pandas y más Aprender IA / Machine LearningRedes neuronales, ML y LLM desde cero Aprender C y C++ Punteros, memoria, STL y C++ moderno Aprender C#Fundamentos, POO, LINQ, async y ejercicios de .NET Aprender MatplotlibGráficos de líneas, barras, dispersión y sectores con visualizadores Aprender RustOwnership, traits, manejo de errores e hilos Aprender GoSlices, interfaces, goroutines y canales Algoritmos en Python Búsqueda, ordenación, recursión y visualizadores O(n) Algoritmos en C y C++ Compara implementaciones en C y C++ Programación para niños ¡Aprende a programar jugando!
- QuizzesNuevo
- RetosNuevo
- Para docentesNuevo
- Actualizaciones
- Invítame a un café
Quiz de HTML & CSS: Centering Things
This CSS quiz covers the common ways to center something, and why some of them seem not to work. You will center text and blocks, use flexbox and grid for both axes, and center an absolutely positioned box.
Pregunta de ejemplo
Pregunta 1 de 10Which rule centers the text inside the paragraph horizontally?
<p class="intro">Welcome to the site</p>
Ver la respuesta
B. .intro { text-align: center; } text-align: center centers inline content such as text inside a block. margin: 0 auto would center the paragraph box itself, which already fills the whole width.
Qué cubre este quiz
text-align: centerfor inline contentmargin: 0 autofor blocks with a width- Flexbox and grid centering on both axes
- Centering absolute elements with
transformorinsetandmargin: auto - Why
vertical-align: middledoes not center a block
Preguntas frecuentes
¿Necesito una cuenta?
No. Cualquiera puede jugar. Inicia sesión para guardar tu XP, racha, insignias e historial.
¿Puedo repetirlo?
Sí. Se guarda tu mejor puntuación, y las preguntas y respuestas se mezclan cada vez.