How to change the spacing between elements?

Hi
Is there a general way to change how much do elements in Typst take space either by shrinking or widening the space it takes?

For instance, let’s take two lines:

#set page(height: 5cm, width: 10cm)

#line(length: 100%)
#line(length: 100%, stroke: 1pt + blue)


What would be the best way to control the space between the black line and the blue line and make them closer? Are move() and place() functions my best options?

Hi. Depends on your end goal, but block-level elements can be changed by block set rule, and also sometimes by par.spacing, so either one works here:

#set page(height: 5cm, width: 10cm)

#{
  // set block(spacing: 2pt)
  set par(spacing: 2pt)

  line(length: 100%)
  line(length: 100%, stroke: 1pt + blue)
}