fix: Update packages and fix local dev (#26907)
<!-- Please follow this checklist and put an x in each of the boxes, like this: [x]. It will ensure that our team takes your pull request seriously. --> - [x] I have read [freeCodeCamp's contribution guidelines](https://github.com/freeCodeCamp/freeCodeCamp/blob/master/CONTRIBUTING.md). - [x] My pull request has a descriptive title (not a vague title like `Update index.md`) - [x] My pull request targets the `master` branch of freeCodeCamp.
This commit is contained in:
committed by
mrugesh mohapatra
parent
153e1c9f38
commit
7da04a348b
@@ -0,0 +1,47 @@
|
||||
---
|
||||
title: Div Align Attribute
|
||||
localeTitle: Atributo de alineación de div
|
||||
---
|
||||
## Div align atributos
|
||||
|
||||
La `<div align="">` atributo se utiliza para alinear el texto en una etiqueta div a la izquierda, derecha, centro o justificar.
|
||||
|
||||
Por ejemplo:
|
||||
|
||||
```html
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title> Div Align Attribbute </title>
|
||||
</head>
|
||||
<body>
|
||||
<div align="left">
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
||||
</div>
|
||||
<div align="right">
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
||||
</div>
|
||||
<div align="center">
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
||||
</div>
|
||||
<div align="justify">
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
## Importante!
|
||||
|
||||
Este atributo ya no se admite en HTML5. CSS es el camino a seguir.
|
||||
|
||||
El atributo DIV align se puede utilizar para alinear horizontalmente los contenidos dentro de un div. En el siguiente ejemplo, el texto se centra en el div.
|
||||
|
||||
```html
|
||||
|
||||
<div align="center">
|
||||
This Text Will Be Centered
|
||||
</div>
|
||||
```
|
||||
|
||||
\*\* Este atributo no es compatible con HTML5 y [texto CSS Align](https://github.com/freeCodeCamp/guides/blob/f50b7370be514b2a03ee707cd0f0febe2bb713ae/src/pages/css/text-align/index.md) debe utilizarse en lugar
|
Reference in New Issue
Block a user