Skip to content

Instantly share code, notes, and snippets.

@teffcode
Created May 11, 2020 14:22
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save teffcode/a693b0ffc907c7b0745d0f9d7d711cfd to your computer and use it in GitHub Desktop.
Save teffcode/a693b0ffc907c7b0745d0f9d7d711cfd to your computer and use it in GitHub Desktop.

👋🏼 Welcome 👋🏼

Quiz banner

Instagram | Twitter | LinkedIn


👅 Choose your language



🚀 English version


Consider the following box model with physical properties:



What is the equivalent logical property to the border-top physical property ?


    A. border-inline-start
    B. border-block-start
    C. border-top-start

👀 Click here to see the correct answer and explanation

Correct answer and explanation: 👇🏼

B. border-block-start

Logical properties use the terms block (the dimension perpendicular to the flow of text within a line) and inline (the dimension parallel to the flow of text within a line) to describe the direction in which they flow. For this reason, the physical border-top property is equivalent to the logical border-block-start property: block describes the direction perpendicular to the text flow (in Latin the text flow is from left to right (inline) and its perpendicular would be from top to bottom (block)) and start because in Latin the direction of the block flow direction is from top (start) to bottom (end); that is, in Latin we write from left to right but when we finish, we continue down and so on. If you are thinking that this changes depending on the writing mode, you are correct (I recommend you this post in case you are curious about this topic 👉🏼 CSS writing modes).

In the following image you can see the box model with physical properties and its equivalent with logical properties:




Below, you can see a table with the physical property on the left side and the equivalent logical property on the right side.




If you were left with many doubts about the logical properties in CSS, I recommend you the following articles:



🚀 Spanish version


Considera el siguiente modelo de caja con propiedades físicas:



¿ Cuál es la propiedad lógica equivalente a la propiedad física border-top ?


    A. border-inline-start
    B. border-block-start
    C. border-top-start

👀 Click here to see the correct answer and explanation

Respuesta correcta y explicación: 👇🏼

B. border-block-start

Las propiedades lógicas usan los términos block (dimensión perpendicular al flujo del texto) e inline (dimensión paralela al flujo de texto) para describir la dirección en la que fluyen. Por esta razón, la propiedad física border-top tiene como equivalente la propiedad lógica border-block-start: block describe la dirección perpendicular al flujo del texto (en latín el flujo del texto es de izquierda a derecha (inline) y su perpendicular sería de arriba hacia abajo (block)) y start porque en latín la dirección del flujo de bloque de escritura es de arriba (start) hacia abajo (end); es decir, en latín escribimos de izquierda a derecha pero cuando terminamos, seguimos abajo y así sucesivamente. Si estás pensando en que esto cambia dependiendo del modo de escritura, estás en lo correcto (te recomiendo este post por si tienes curiosidad sobre este tema 👉🏼 CSS Writing Modes).

En la siguiente imagen puedes ver el modelo de caja con propiedades físicas y su equivalente con propiedades lógicas:




A continuación, verás una tabla con la propiedad física al lado izquierdo y la propiedad lógica equivalente al lado derecho.




Si quedaste con muuuchas dudas acerca de las propiedades lógicas en CSS, te recomiendo los siguientes artículos:



@becquergt
Copy link

good

@JhoanaEspana
Copy link

border-block-start

@enriqueorozcog
Copy link

border-block-start

@nataliam8
Copy link

border-block-start

@Brandon328
Copy link

B. borde-block-start

@mikelm2020
Copy link

B boder-block-start

@oliverchb11
Copy link

B boder-block-start

@deyvisnvg
Copy link

B oder-block-start

@Sharonina
Copy link

B. Border block start

Copy link

ghost commented Aug 23, 2021

B. border-block-start

@JR-10
Copy link

JR-10 commented Nov 5, 2021

B. boder-block-start

@nelsonprog16
Copy link

B: border- block-start

@juli6464
Copy link

b. border-block-start

@mariogsand
Copy link

border-block-start

@fvaldez29
Copy link

border-block-start

@davidop97
Copy link

border-block-start

@mjrussoortega
Copy link

border-block-start

@Eufanzky
Copy link

Eufanzky commented Aug 9, 2022

border-block-start

@DiegoGomez98
Copy link

B. border-block-start

@ApoloSeth
Copy link

B. border-block-start

@Gehiner
Copy link

Gehiner commented Dec 6, 2022

border-block-start

@Magdelenua
Copy link

B. border-block-start

@AlexanderHuisa
Copy link

B border-block-start

@irisneys
Copy link

B. border-block-start

@ronitzdev
Copy link

B: border-block-start - ya que esta indica que se modificara el borde a nivel perpendicular o block (de arriba hacia abajo o de inicio a fin), sabemos que top es equivalente a inicio o start por lo cual sera el borde de arriba en lugar de el de abajo en cuyo caso si seria end.

propiedad: border
direccion: block (perpendicular de arriba a abajo)
ubicacion: start (inicial)

@Ceci-07
Copy link

Ceci-07 commented Sep 8, 2023

border-block-start

@chrisjv87
Copy link

B. border-block-start

@LMchimaBermudez
Copy link

B. border-block-start

@gnievap
Copy link

gnievap commented Mar 23, 2024

B) border-block-start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment