DEV Community

Cover image for How to create a navigation using Flexbox

How to create a navigation using Flexbox

Pinky Lalwani on August 20, 2020

Here’s what we’ll be creating: Hey!👋 In this post, we are going to create a navigation using Flexbox property. HTML: &...
Collapse
 
jamesncox profile image
James Cox • • Edited

Hi Pinky, this is a really cool idea!!

I do have one suggestion, especially if you plan on doing a series of posts like this, I suggest using the built in markdown for code block with three backticks. I included a screen shot for reference. This way a user can highlight and copy portions of your code examples!!

dev-to-uploads.s3.amazonaws.com/i/...

If you have any questions let me know!

Collapse
 
link2twenty profile image
Andrew Bone •

In that same vein you host your code somewhere like JSFiddle then take the URL and put it in a tag like this.

{% jsfiddle lhttps://jsfiddle.net/ink2twenty/f16voc7q/ result html css %}

There's lots of tags like this you might find helpful in the Editor Guide. 😊

Collapse
 
jamesncox profile image
James Cox •

Oh this is great!!! I assume Ican do this with my Codesandbox examples also.

Thread Thread
 
link2twenty profile image
Andrew Bone •

Yep! That one's just:

{% codesandbox sandbox_name %}
Thread Thread
 
jamesncox profile image
James Cox •

Nice one, thanks Andrew!

Collapse
 
pinkylalwani profile image
Pinky Lalwani •

Thanks Andrew! This is a very cool way to put code in my post.🥺
How to put YouTube video link in my post?

Collapse
 
romanparaskiva profile image
Роман Параскива •

Вау, я в шоке! А нет, показалось... Стоило ради этого пост пилить? Это же элементарно