Flexbox doesn't work

Hello,

Im beginner and i’m trying to make my first web site(i guess it’s gonna be long).
I try to use flexbox but it doesn’t work.

HTML code:

<menu >
		 	<nav class="hello">
			    <a href="???">Hébergements</a>
				<a href="???">Activités</a>
				<a href="???">S'inscrire</a>
			</nav>
		
        </menu>

CSS code:

.hello
{
justify-content:flex-end;
align-items:flex-start;
}

Thank you in advance for your help.

Lucie

I need to move the menu up…

Hi @Loussine!

You are missing display:flex;

3 Likes

@jwilkins.oboe Ohhhh, thank you!!! I totally forgot about that :smiley:
Thank you very much!!!

@Loussine Have you finish that?

@LeonAvancini I moved the menu, but now i can’ change the color, i don’t understand what’s wrong…

code html:

<nav class="conteneur">
			    <a class="blue" href="???">Hébergements</a>
				<a href="???">Activités</a>
				<a class="blue" href="???">S'inscrire</a>
			</nav>

code css:

.blue
{
display:block;
color:#0065FC;
}

Now it works… :laughing:

1 Like