#Header in a line

1 messages · Page 1 of 1 (latest)

maiden shale
#

How can I put in the same line the logo, the h1 and the nav? i tried whit grid, flex, float: left; and nothing works

static islandBOT
#

Thanks for your question :clap:, if someone gives you an answer it would be great if you thanked them with a :white_check_mark: in response. This response will earn you both points for special roles on this server.

deep nacelle
#
flex-direction: row;```
#

@maiden shale that should work

#

if you want the items to be aligned to the left, use

#

justify-content: flex-start;

#

although it should be aligned to the left in the first place

#

————————————————————————————————————

#

Explanation

#

display: flex; — Turns the container into a flex container
flex-direction: row; — Changes the direction of the layout to horizontal

#

justify-content: flex-start; — Places the content at the start of the flex layout