Тёмный

CSS FlexBox Practical Examples (Rebuilding Dribbble.com using FlexBox) 

DevTips
Подписаться 351 тыс.
Просмотров 172 тыс.
50% 1

Опубликовано:

 

28 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 321   
@bigray712
@bigray712 9 лет назад
this is simply amazing. This flex stuff makes things so much easier, hope i will never use floats again.
@OfficialDevTips
@OfficialDevTips 9 лет назад
+bigray712 haha, I think I've said that same sentence once. :)
@ainulyaqin5243
@ainulyaqin5243 8 лет назад
BEST.TUTORIAL.VIDEO.EVER! Thanks man, so helpful. I'm curently strugling with CSS layouting. Getting frustated with native positioning. But this save me a lot. Definitely gonna subscribe!
@YUG74
@YUG74 9 лет назад
Very nice this is so much easier and more straight forward than floating
@OfficialDevTips
@OfficialDevTips 9 лет назад
Totally is. Floating was never intended for layouts. Neither were tables before that.
@YUG74
@YUG74 9 лет назад
Really?! there's my fun fact of the day
@OfficialDevTips
@OfficialDevTips 9 лет назад
yep. The history of websites are a series of mistakes and repurposed conventions.
@sibonisiwedlamini740
@sibonisiwedlamini740 8 лет назад
this guy is funny, he makes coding looks sooo easy
@MunchitoRamoncito87
@MunchitoRamoncito87 8 лет назад
You have a great channel! Thanks for helping me understand flexbox better!
@OfficialDevTips
@OfficialDevTips 8 лет назад
You are welcome!
@made2post
@made2post 9 лет назад
Wow, flexbox is such a powerful tool. I have gained so much thanks to your vids. You are awesome!
@OfficialDevTips
@OfficialDevTips 9 лет назад
I'm glad you liked it! Thanks!
@zoommair
@zoommair 8 лет назад
I'm sorry man, I love your videos, but I'm really not a fan of this shorthand CSS. I'm still fairly new to web design and this just confuses me. Also, I'd like to be able to use this in other browsers and would like to know all that "webkit" stuff I keep seeing. Well, in any case, I'll probably come back to this video in a few months when I get better and understand CSS better.
@nitram_nosnibor
@nitram_nosnibor 9 лет назад
Excellent, I was looking for it too :) Thanks Trav. Looking forward to the announcement you tease! :)
@OfficialDevTips
@OfficialDevTips 9 лет назад
#JustTeasingStuff hahaha.
@evgheniiturco9268
@evgheniiturco9268 8 лет назад
For a person who is doing everythng in vanila css it's pretty hard to understand what's going on here. I mean flex is the new thing, but sass or scss which you are using makes it even more complicated. Probably this lesson is for professionals.
@jack2ky
@jack2ky 8 лет назад
I'll tell you that the sass stuff is not so hard. It's just missing the brackets so you could just add them in and not need a compiler. the jade stuff has special syntax. like no tags you could right your elements like css. but you need some type of compiler but you could also translate that your self.
@sorrefly
@sorrefly 8 лет назад
Probably at the beginning it is but SASS is not that hard at all to understand. You just need to learn to visualize it •SASS don't use brackets to introduce proprieties or semicolons at the end of a statement Here's an example (I'm writing this from my phone, I hope it will be visualized correctly!) •CSS .wrapper { padding: 30px; } •SASS .wrapper padding: 30px And if you want to nest elements you just put them beneath its parent (yes, SASS basically works by analyzing spaces and identifying parents and children •CSS .wrapper { padding: 10px; } .wrapper .div1 { background-color: red; } •SASS .wrapper padding: 10px .div1 background-color: red See how .div1 was in the same line as wrapper proprieties? That means that I'm referring to the wrapper child called .div1 And since background-color propriety was inside .div1 that means that background propriety is referring to .div1, child of .wrapper Everything else in this video are normal CSS proprieties.
@sorrefly
@sorrefly 8 лет назад
Who needs help can still translate the code on codepen from jade to html or sass to css so that they can understand it better.
@sorrefly
@sorrefly 8 лет назад
I wrote all this for whoever need it and Is having problems with SASS syntax understanding. By the way. Don't know if you was just making a consideration or needed help :)
@benhedgepeth3213
@benhedgepeth3213 7 лет назад
Don't worry about the SASS or Jade verbaitm in this video. Just get the gist of what he was saying, imagine what that would look like in html and css, and use your intuition as to how to progress in the example. I found the first example to be beginner friendly and I'm nowhere close to getting at SASS or Jade yet.
@mattk3650
@mattk3650 6 лет назад
These videos wouldn’t have the same value without the mustache
@Bazookaduff
@Bazookaduff 9 лет назад
Great video! Did you custom make your "New Tab" page or is that a website?
@OfficialDevTips
@OfficialDevTips 9 лет назад
d neubauer It's a chrome plugin called "Speed Dial 2"
@andresraya
@andresraya 7 лет назад
good for the people who work with sass...i dont know shit about that yet so ill came back another day.
@tangtangking3159
@tangtangking3159 9 лет назад
Hey, great video! I was wondering if set max-width solves the problem of justify-content: space-between. I believe the problem will show again if there're 2 more shots, and they are going to be separated from each other leaving huge space in between, any fixed about that?
@neonfuz_
@neonfuz_ 8 лет назад
This isn't specific to this video, but to all of your videos really. Why do you always use classes and not IDs? Even when there is definitely only going to be one instance of that object, you seem to always make classes rather than IDs.
@kubilaysalih8941
@kubilaysalih8941 8 лет назад
what would you do if you had 14 box while one line contains just 3 box? how can you fix last line? is there any solution you know or its just impossible with flex ? :D
@suvacodemorcego
@suvacodemorcego 5 лет назад
BRABO BRABO BRABO, DA UM SALVE PARA O BRASIIIILLLLLL
@3mpe3
@3mpe3 9 лет назад
Just a note, I had to place "align-items: flex-start;" to the content, since stretch is default and my Bill Murray in media object was still streched. Does this makes sense?
@VladyVeselinov
@VladyVeselinov 8 лет назад
0:43 That Jasmin joke caught me off guard.... :D
@OfficialDevTips
@OfficialDevTips 8 лет назад
Hahah, forgot about that one. Thanks for reminding me :)
@pabloquesadac
@pabloquesadac 8 лет назад
yeap this is grrrreeaaat!
@Driver0077
@Driver0077 8 лет назад
thanks a lot m8 really
@ArnoldsKtm
@ArnoldsKtm 9 лет назад
Using media tags are quite wasteful IMO. You could just use max-width on content's column and add flex-wrap: wrap on body.
@OfficialDevTips
@OfficialDevTips 9 лет назад
Arnolds Kļavenieks good call. Thanks for the tip!
@alexmachin1785
@alexmachin1785 7 лет назад
where can i get a white dribble logo
@susantshrestha7791
@susantshrestha7791 8 лет назад
hi... i am having problem ... the problem is whenever a paragragh is insert into the main container, it push the two side divs . plz help . and sory for my grammar.
@OfficialDevTips
@OfficialDevTips 8 лет назад
I'm sorry, I don't understand...
@susantshrestha7791
@susantshrestha7791 8 лет назад
it's kinda hard to explain but thanx for looking after my comment......... i got the solution ..hehe... could you give me advice on javascript?
@svdovichenko
@svdovichenko 8 лет назад
Hi thank you for tutorial great stuff, I couldn't' find a repo on github for this tutorial. I f you have a chance can you submit it or point me where it is. Thank you for your time
@OfficialDevTips
@OfficialDevTips 8 лет назад
Did you check the video description below the video?
@svdovichenko
@svdovichenko 8 лет назад
+DevTips Yes I did, and unfortunately I don't see this repo github.com/DevTips I checked your personal as well github.com/travisneilson I cant find repo named Rebuilding Dribbble (or any similar names) Here is the repos I see: Parallax-on-the-Web-DevTips- Artists-Theme Jekyll-Powered-Podcast-XML-Generator DevTips-Starter-Kit splash-page-and-modal How-to-get-more-signups-using-browser-cookies Codepen-example-base CSS-Grid-Frameworks-Series Animated-Music-Player Zooming-Header Custom-Animated-Checkboxes javascript-templating Responsive-Web-Design-Basics HTML-and-CSS-slide-out-navigation thank you
@thisguyIGOTOUNO
@thisguyIGOTOUNO 9 лет назад
Hey Travis, I have a question about a margin that appears when divs wrap to the next line. It's roughly 10px on the bottom. Any ideas on how to remove that? codepen.io/mLirette/pen/PqQWab - example of where I'm seeing this margin. Thanks in advance!
@OfficialDevTips
@OfficialDevTips 9 лет назад
Mike Lirette try img { display: block; }
@OfficialDevTips
@OfficialDevTips 9 лет назад
Mike Lirette And thanks for making a pen, btw. Made it so easy to answer your question :)
@thisguyIGOTOUNO
@thisguyIGOTOUNO 9 лет назад
DevTips Perfection! Thanks
@thisguyIGOTOUNO
@thisguyIGOTOUNO 9 лет назад
DevTips Love Codepen. I'm using it to teach myself the css. It's so easy to get in there and start building stuff.
@OfficialDevTips
@OfficialDevTips 9 лет назад
totally. It's perfect for that stuff
@halox80
@halox80 9 лет назад
How long will we have to wait until support for IE 9 gets dropped, so that we can absolutely use flexbox for anything and everything... *sigh*
@OfficialDevTips
@OfficialDevTips 9 лет назад
halox80 You can use it now, if you are brave enough! Haha. Actually you can, tho. It really depends on your audience. For example I don't have any issue with using it because my audience (you) are tech-minded and likely have a current browser. You can check analytics to help you make a descision.
@dattEnasdf
@dattEnasdf 7 лет назад
Honeydew..
@iex32
@iex32 8 лет назад
I cannot click on video because Im on Android ... feels like a shit
@hot4mix
@hot4mix 8 лет назад
first, thank you very much for your videos, i learned so much from you, kudos man :) and regarding that issue @31:31, declaring a fixed width doesn't really fix the issue. if you have dynamic content and can't control how much boxes are in one row, like in your example you had 12 so 3 rows, perfect, but how about if you had 15 boxes? you'll still get a last row with 3 box separated according to the space between them, any other property to avoid that? not that im complaining really, really glad i stopped using floats :D
@BeingDane
@BeingDane 9 лет назад
you are cool... got inspired by u...
@OfficialDevTips
@OfficialDevTips 9 лет назад
oh cool! :)
@DieQwietscheente
@DieQwietscheente 9 лет назад
For a tutorial i might be better to use just HTML and CSS ... i might be a little more work but not every one is using preprocessors and those who don't wont understand it but those who do sill understand plain code.
@mfaani
@mfaani 8 лет назад
+DieQwietscheente if you click on the codepen link below the video you can actually see the compiled versions of what he has wrote i.e. it will convert it to plain code
@ShaferHart
@ShaferHart 4 года назад
Yep, at least he should include it in the title that way we know this isn't about plain html and css.
@agoniavr
@agoniavr 9 лет назад
Liked the video as usual(I'm watching all of them from the first one) but one thing I still can't get over is the fact you rely so much on sass/jade and CodePen. I know they're good and faster but for a tutorial it would still be way better if you showed us everything from scratch in normal html + css via your code editor of choice. I know we have all the styling and such on CodePen but getting lost on this stuff is easy and starting with a lot of assumptions already ain't the best in my opinion. I followed the first topics easily since I already knew them but now that we start doing more advanced stuff and I'm still not practical with FlexBox seeing preprocessed html and preprocessed css is not helping at all :/ I mean, if I have to learn I wanna start literally from a blank document and build everything from there to have my own copy which I wrote along you since that really helps to acquire the stuff you're writing instead of just "seeing it" and then feeling lost when you're trying to reproduce it on your own. EDIT: I forgot it should also be useful, if you'd still want to stick with Codepen, SASS, Jade and bourbon, to give us the starting CodePen also so we can follow. I also understand that with what I'm requesting the video would be much longer and that you're also showing us the power of Sass + Jade when writing but still, building from scratch would be way easier to understand...or maybe it's just me, checking the Jade episode now to better understand this one :)
@agoniavr
@agoniavr 9 лет назад
AndreCorner just so you know I watched the Jade video and can't believe I worked without it so far, I'm using Prepros instead of the one you use in that video though because it's 100% free it seems. That being said I still think that for lessons building with vanilla html + css and in the code editor from scratch would be better, but on the other hand I know it's time consuming so yeah, you choose but you're still awesome :)
@OfficialDevTips
@OfficialDevTips 9 лет назад
AndreCorner I'm glad you watched the Jade video. I know that it may put a few people off, but honestly, if I'm gonna go through all the trouble of making these videos, I'm going to need to use that makes me happy/excited. thanks for your patience/understanding
@agoniavr
@agoniavr 9 лет назад
DevTips true that and to be honest after writing some markup with it for one-two hours only I can see why you won't come back to vanilla, it's just THAT better, faster to write and better looking. The only thing that you could still "improve" is not working on files where huge styling has been applied already imho. I'm following all of your videos and you jump from the html5+css3 basics to stuff like this but in that series you cover, as you said, the basics but then jump directly into the "heavy designed" stuff. I know how to reproduce this but opening the codepens or seeing your editor makes it still a bit confusing like I have to stop and understand what's doing what, for a beginner that would be nearly impossible imho. Still a great series, loving every video anyway!
@OfficialDevTips
@OfficialDevTips 9 лет назад
Thanks for the feedback :)
@Nostalgiaforinfi
@Nostalgiaforinfi 9 лет назад
+DevTips jumping from your flex box to this was jarring for newbies like me. I dint even see any mention that your code is preprocessed until i read the comments.
@ZacharyBeers
@ZacharyBeers 9 лет назад
YAY thank you for linking your music channel!
@OfficialDevTips
@OfficialDevTips 9 лет назад
:)
@jack2ky
@jack2ky 8 лет назад
Can you do a tutorial on FlexBox and modernizr? I feel like a feature detection system for FlexBox is important in cases where someone has an old browser. I subscribed because the 3 videos I saw from you were useful.
@plitka_poltava
@plitka_poltava 8 лет назад
With repeated parts of code we can do even better (not only mixins), jade allows us to do iterations: - var images = ["img1.jpg", "img2.jpg", "img3.jpg"] - var links = ['www.firstlink.com', 'www.secondlink.com', 'www.thirdlink'] - var names = ['John', 'Andy', 'Liza'] - var avatars = ['av1.jpg', 'av2.jpg', 'av3.jpg'] each img, index in images //just fake numbers - var views = Math.floor(Math.random() * (15 - 13000) + 13000) - var comments = views/10 - var likes = views/100 +shot(img, views, comments, likes, avatars[index], names[index], links[index]) That's all the shots :)
@sdhpCH
@sdhpCH 9 лет назад
What is wrong with that Travis guy? I tell you: Absolutely 100% nothing :) Travis, I am a clunky old school vanilla css guy and all that learning of those helper tools like Jade, Sass, Bourbon, Vodka is kind of postponed because I need to go production first. Although I know I would be faster being good with then I can not go the risk of wasting time having to search f.e. an indentation error not knowing what I am doing. I can imagine that some of the viewers have a similar problem. So your videos seem to us kind of non accessible at first sight. But since you provide that CodePen links I found out that that in fact it is well accessible. There is one button that changes everything: "Toogle compiled view" It is just a feeling, but if you keep that good codepen way I think just telling us Vanillas at the start of a video - that we don't need to panic, there is this one magic button as a fallback to where we feel more secure looking on what we better understand would at the end result in larger viewer numbers that don't skip over that great content you provide.
@OfficialDevTips
@OfficialDevTips 9 лет назад
I must have missed this comment. Sorry for not replying earlier. This is goden feedback. Thank you for letting me know that this is working for you. I really like the idea of codepen-based tutorials too. Thanks for pointing out the accessibility for the vanilla lovers.
@awc032
@awc032 8 лет назад
In Part 1 and Part 2 of this video there's a black border around the content and some additional fonts (Lato?) imported as well. Also, in Part 3 of this video you did lots of styling in your external CSS w/ partials. Can we see THAT code? For me, that's some of the best stuff b/c it shows us how your importing fonts, what color schemes you're using, and all the Syntax and tools your using. So I guess what I'm asking is, can you share ALL your code with us? As always, thank you for everything you do for us!
@jonymridha3197
@jonymridha3197 7 лет назад
@Travis Neilson bro your Videos Is really Helpfull to me .. I,m a big Fan of your's bro.. you are Awesome .. I learn Jade Nd i Also learn Sass .. it's really easy to do a project with Jade nd Sass .. i think i'm falling love with jade Bro .......... :) and Keep hacking :)
@anandchembarpu2156
@anandchembarpu2156 7 лет назад
Why did the img shrink at 15:10 when you use max-width: 300px and display: flex? Shouldn't it stay 50*50px and the text should occupy the other remaining space in the box of max-width: 300px?
@FC-wm8he
@FC-wm8he 9 лет назад
Hey Trav, I know this is about flexbox, but I'm wondering if you could show how to develop something similar to the _shots.jade code. I'm trying to understand how to import the metas for the likes, views and comment, and additionally how to establish the sections.shots container... Or is there a link you know I could browse to learn? Thanks man...
@Vesell11
@Vesell11 8 лет назад
Are there any particular website parts which you will recommend to style with flexbox, and those you will not recommend using flexbox at all? Because now it looks like one can make all of html blocks display: flex right away to make things short and sweet and not even bother with block/inl-block
@Joehle1
@Joehle1 Год назад
This is amazing wish I found it a week.aho for my assignment. Would the dribble.layput for images work for a gallery layout?
@AHRienks
@AHRienks 6 лет назад
In the codepen example I notice that the 'fillmurray' example image is not behaving responsive, unfortunately! I mean, when the window is shrinked to a minimum width.
@alymohamedhassan
@alymohamedhassan 7 лет назад
I had a problem with my blog " Using Grid Style " and when a post has more text or content, the next posts in the following row goes under the next post. Sorry, I can't explain it well.
@moritzlang2451
@moritzlang2451 9 лет назад
Hi Travis! Thanks for all the great tutorials! I want to make a music player like it is on Native Instruments. Ho can I make these great waveforms? Would be great to see a tutorial about that music player on your channel in the future. ;)
@MrLangam
@MrLangam 7 лет назад
Travis, what if the children of the parent comes in different height? How do I make it work like Masonry?
@pdalencour
@pdalencour 8 лет назад
that little thing where upon each change your layout transitions to it's new location based on your changes. what is that? apologies if I'm entirely missing something obvious.
@gepettowins
@gepettowins 7 лет назад
great tutorial. fyi though the youtube controls pop up and cover the annotations when i mouse over them making it impossible to click them. unless i'm just missing something obvious.
@rbc13183
@rbc13183 9 лет назад
Hey, at the end of your Flexbox Essentions vid, you still have it showing "Video coming soon" instead of a link to this vid. Just thought you'd like to know!
@JasmineAtlas
@JasmineAtlas 8 лет назад
Just think of a number line. anything without a defined order is at the 0 mark.
@jitendracshah
@jitendracshah 6 лет назад
which code editor were you using in the dribble example? and how did the browser auto-reloaded with every changes?
@DivineZeal
@DivineZeal 6 лет назад
I love you. Youre making me a better person
@unev
@unev 7 лет назад
Just listening to you makes me feel that everything's gonna be alright ))
@zorkaio
@zorkaio 9 лет назад
You bro are making my lines code cleaner with your tutorials !
@OfficialDevTips
@OfficialDevTips 9 лет назад
AnonPlay Well that can't be a bad thing :)
@MrJasonFrank
@MrJasonFrank 9 лет назад
Hey Travis, nice video. Question: I know you're a big thoughtbot/Bourbon guy, and perhaps you've used thoughtbot's Neat grid system as well. How do you think such a grid system fits in with using FlexBox, or do you advocate not using a grid system at all (and simply use flexbox)? It looks like Neat is using floats under the covers, so I wondered if you've run into problems with using FlexBox for some things and Neat for other things in the same layout. Or any advice about these issues.
@OfficialDevTips
@OfficialDevTips 9 лет назад
there is no issue with using flex and floats together. They do different things. Now, using them in the same grid system may not be ideal. In the new series I build a flex grid from scratch. Grids don't need to be complex... unless they need to be :)
@michaelrussell738
@michaelrussell738 9 лет назад
Hey Travis I've been trying to use Flexbox on my site and I have it working perfect in Firefox and Chrome but Safari just won't seem to display it the same. Instead of 2 rows with 3 images it just stacks them on top of each other. Any idea of a work around? I'm trying this on Safari 8.0.5 but looking at some spec it looks it should be working since I'm using all the prefixes required.
@OfficialDevTips
@OfficialDevTips 9 лет назад
Michael Russell I was gonna say look at the prefixes.... This says it should work: caniuse.com/#feat=flexbox
@ampix0
@ampix0 8 лет назад
In the three column layout, was there any reason you moved the order of the nav to -1, rather than just putting it first in the dom? Or was that just show show off order?
@OfficialDevTips
@OfficialDevTips 8 лет назад
I think it was to show off the feature if I remember correctly, been a while.
@PresCalvinCoolidge
@PresCalvinCoolidge 9 лет назад
Will flexbox work for ie9? Or, if it won't work straight out of the box, is there some special code (I've heard of html5shiv) that I can add to make it work for ie9 users? [FYI - I am not a web designer but I inherited a simple webpage for our team at the office. It's a Windows Enterprise environment and there is quite a bit of ie9 running. I love your videos!]
@OfficialDevTips
@OfficialDevTips 9 лет назад
I don't think there is much hope for ie9 here.
@JOAGOSTINI
@JOAGOSTINI 4 года назад
Jade and Sass are not a good idea to explain concepts to beginning or intermediate developers.
@sanjanasahoo5332
@sanjanasahoo5332 4 года назад
Great video!!Can you answer me how did you decide positioner dimensions??
@marble_wraith
@marble_wraith 9 лет назад
Nice series on flex, in theory this eliminates the need for neat grid system and you just use bourbon on it's own and just use flex to position, ill be trying this out in a few days should work pretty well, cheers.
@OfficialDevTips
@OfficialDevTips 9 лет назад
You are welcome! Let me know how it works out!
@labcrowd
@labcrowd 8 лет назад
Hey. Great videos. You really helped me a lot getting grip on flex. The layout you made with a sticky footer that stays at the bottom even if there is little content was just what I needed. Unfortunately, as it turned out, that sticky footer is not so sticky after all. If you add some content and scroll down, the footer scrolls together with the page, like it was stuck to the page not the vieport. Here's my example gph.is/2bYQeLb . I also tried your codepen, It doesnt work as expected either. Any idea how to sort this out ? Any help much appreciated.
@albertmctorre4789
@albertmctorre4789 8 лет назад
You want "position:fixed" for that me thinks. Might be late, hope you solved it by now, but just in case.
@CoppolaEmilio
@CoppolaEmilio 9 лет назад
Are you considering doing some AngularJS? I never got the courage to start with it and it's one of the most requested frameworks on every front-end jobs I find. Hugs, and thanks for the awesome videos! :)
@OfficialDevTips
@OfficialDevTips 9 лет назад
I don't know angular. I think Will from LearnCode.academy has some good videos on the topic.
@emilywagner6858
@emilywagner6858 7 лет назад
Curious why you are saying "mixin shots" when you can also do =shots
@SimionChis
@SimionChis 9 лет назад
The whole video is awesome. In fact all your video are very ... awesome (i don't know another words :) I like the idea with the three buttons. I clicked on them just to see if they work well :))
@OfficialDevTips
@OfficialDevTips 9 лет назад
Simion Chis Thanks Simon, I'm trying new things all the time. The three buttons was an interesting idea, but they were also really fussy to make. We'll see how useful people think they are.
@christopherstephens7278
@christopherstephens7278 9 лет назад
So cool, I wish Opera mini and IE 9 supported this. Oh and thanks a lot... Jade has ruined regular html for me forever.
@OfficialDevTips
@OfficialDevTips 9 лет назад
I know! I was writing jade in an html file the other day and had a moment when I saw what I did. lol.
@leokrics7471
@leokrics7471 6 лет назад
I like this way to get my css done! It's pretty cool and neat!
@sankalpsingha
@sankalpsingha 8 лет назад
Should it not be flex-flow instead of flex-direction? Or are they basically both the same?
@hot4mix
@hot4mix 8 лет назад
flexflow is the shorthand for flex-direction and flex-wrap together, so instead of declaring tow separate properties "flex-direction: column" and "flex-wrap: wrap", you declare "flex-flow: column wrap" or any of their separate properties
@BHFJohnny
@BHFJohnny 8 лет назад
Alright, I'm going through the responsive desing from scratch playtist and I'm quite happy with it. Building my own site with jekyll, not step by step the same, but just following general rules. Getting stuck with positioning, auto margining, floating and whatever. Noticed you used +display(flex) bournon mixin, not paying too much attention. Today, I woke up, took my phone and just youtube searched css flexbox. Discovered this. I had to pause the video and just breathe it out. I can't describe the feeling. Flexbox is just so great. I haven't been fan of grid systems because I quite never knew how it worked and was so lazy to go trough the css. But now I can write my own and know exactly how it works. I'm one hundred per cent positive that flexbox will save not hours, but days of my life. Thank you, Travis, for showing us. I really appreciate that.
@nidalhaddad8652
@nidalhaddad8652 8 лет назад
hi travis i'm really enjoying your videos. i have a question how did you do the video thumbnail was it with photoshop ? and can you do it using css layouts ?
@OfficialDevTips
@OfficialDevTips 8 лет назад
The video thumbnail?? Yea, photoshop.
@alexanderbesse5317
@alexanderbesse5317 5 лет назад
I love being taught Flexbox by Earl Hickey
@ChamathNimantha
@ChamathNimantha 9 лет назад
The way you are presenting is so nice dude.... And it's very clear to understand.... Thank you for doing this kind of videos.... :)
@OfficialDevTips
@OfficialDevTips 9 лет назад
+Chamath Nimantha You are welcome!!
@SaadGhadir
@SaadGhadir 9 лет назад
hey. did you check out the new code editor called brackets! it's awesome!
@OfficialDevTips
@OfficialDevTips 9 лет назад
I did! It has a lot going for it :)
@SaadGhadir
@SaadGhadir 9 лет назад
DevTips I love it
@geexup
@geexup 8 лет назад
So slow and boring... fall asleep on second minute
@design54350
@design54350 9 лет назад
Nice work! You helped me learn a lot about using flexbox and the practical use of them.
@OfficialDevTips
@OfficialDevTips 9 лет назад
Fantastic!!
@flinkstiff
@flinkstiff 9 лет назад
Yo Travis, i got a tip for you this time! If you don't want the codepen to reset to the top everytime you edit the html, you can add an ID to the div you're working on and then you can inspect the where your project is loaded and add #yourDivId to the src url. Then when you edit the html, codepen will reload the hooked to your div. It is actually were quick to do and works well. Nice video btw :)
@flinkstiff
@flinkstiff 9 лет назад
Sorry, i were mistaken. You should add the ID to the main URL of the pen, not the .
@OfficialDevTips
@OfficialDevTips 9 лет назад
ZixDays Fantastic!!! That is actually really great! I'll try that in the future :)))))
@sal8erno
@sal8erno 6 лет назад
First I will say „thank you“ for all your work and you doing this in an very sympathetic way. But what I don‘t understand: why you must use „JADE“ - Template Engine!!?? The first question you must have before you begin with an Tutorial: for whom will I doing this? Are your Tutorials for professionals who know all and every thing? I guess you doing this for beginners or semi-professional who all (I bet with you) uses codes platformes like Brackets od CodePen with normal css3 and html5 - not your funny „JADE“. Or is this something like happy hour - „two in one“ Tutorial huu? So far I know it's primarily used for server-side templating in NodeJS.
@rajeshorneupane
@rajeshorneupane 7 лет назад
your typing code is so confuzing in html ....
@TheMagnas26
@TheMagnas26 9 лет назад
Another fantastic series on the way! Thks!
@beccaarauz
@beccaarauz 6 лет назад
Thiiiiiisss videooo!! I love you... not in a weird way, I.just.love.you., It was a little bit hard to understand since I haven't used sass, buuuut thanks for doing a practical video, it helps a lot!
@devarsh099
@devarsh099 7 лет назад
I never understood CSS, as a developer I find it very complicated, but flexbox are a blessing, and your video makes it so much more clear :D
@patrickRotmg
@patrickRotmg 7 лет назад
i find better all tutorials with "pure" HTML/CSS :/ but it's an awesome video :p
@alearx6566
@alearx6566 8 лет назад
+Devtips Please don't never ever shave your barbe! By the way, good job man continue im from you apprentices ;)
@damiantucznio
@damiantucznio 8 лет назад
hello, i say at the outset that you're doing a great job. I have a question about this film. whether it is possible that the last line of the picture is aligned to the left , if so, can you demonstrate how to do it , thanks in advance.
@georgeputnam4850
@georgeputnam4850 8 лет назад
Incredible! I feel like Flexbox is going to help me move away from Bootstrap... :) no more intruding stylesheets!
@JamieMaguire_
@JamieMaguire_ 8 лет назад
Hey Travis! Great vid man thanks a lot! Would you say that flexbox is going to be the new standard way to layout web pages as opposed to float layouts and stuff? Thanks again =]
@azizkaukawala
@azizkaukawala 7 лет назад
Hi @devTips In dribble example, what if the block count increases to 14 from 12?
@ivanmornar5821
@ivanmornar5821 9 лет назад
I think link from you previous flex video to this one don't work... You might wanna fix it. Great tuts tho!!
@AJapaneseDream
@AJapaneseDream 4 года назад
Thanks for making everything so easy to understand and using pace that is easy to follow along with.
@th1locom
@th1locom 8 лет назад
hey, is there a package for atom that automaticly fixes the prefixes? found the 'autoprefixer' which does not seem to work with Sass :(
@OfficialDevTips
@OfficialDevTips 8 лет назад
I use codekit which does both.
@alexmachin1785
@alexmachin1785 7 лет назад
Or If your a windows user prepros :)
@soultouchingsongs
@soultouchingsongs 5 лет назад
Awesome.. Thank you soo much..
@GeneralA6
@GeneralA6 6 лет назад
best teacher on the web by far.
@kikoo3367
@kikoo3367 7 лет назад
hi gay: I love your videos, well designed and well explained. Please, more videos for the community
@now-ptureddy3911
@now-ptureddy3911 8 лет назад
Very good Explanation.. One stop to completely master flex... Thanks for the video
@AnthonyPinzone
@AnthonyPinzone 9 лет назад
How would you go about spacing it if say each row weren't always guaranteed the maximum number of entries (in this case 4). Obviously, you wouldn't want such huge gaps between each piece of content... now this is my first foray into the world of flex boxing, but the float solution seems pretty easy in this case.
@OfficialDevTips
@OfficialDevTips 9 лет назад
You could do a number of things. Maybe use margins to endure the minimum space between the shots, use justify-content: center, and then make the shot width a % instead of a hard px.
@AnthonyPinzone
@AnthonyPinzone 9 лет назад
ah good point with the justify-content: center... for some reason I kept thinking about using the flex-grow: 1 or whatever it's called, but then that would limit any obscure sizing. I have a project for work that needs to be done in only 2 weeks, luckily the design was completed by an agency. Still, this flex-box should help tremendously... as long as the company doesn't mind the lack of support for IE9
@OfficialDevTips
@OfficialDevTips 9 лет назад
right, there is that... ;/
@loic.bertrand
@loic.bertrand 7 лет назад
The positionner trick is genius !
@TravisHi_YT
@TravisHi_YT 9 лет назад
Thanks for the vid! It's great to be able to have the codepen example to tinker with while watching the ep. Can open the example up, try to predict what code does what on the example, then watch your vid, it's great! Keep up the great work!
@OfficialDevTips
@OfficialDevTips 9 лет назад
Thanks for the feedback on the codepen. I'm really glad you like that :)
@TravisHi_YT
@TravisHi_YT 9 лет назад
I haven't seen a combination of "see and do" with other youtube channels. Codepen + video lesson is definitely unique! Really emphasises the "Keep on hacking" ethos :D
@OfficialDevTips
@OfficialDevTips 9 лет назад
yes! love it!
@maxipop1000
@maxipop1000 9 лет назад
Nice one. You know any good polyfill for IE9 ?
@OfficialDevTips
@OfficialDevTips 9 лет назад
mmmm, not sure. Maybe Modernizr?
@roemerblom6343
@roemerblom6343 9 лет назад
How do you get your new tabs on Chrome like that?
@OfficialDevTips
@OfficialDevTips 9 лет назад
+Roemer Blom its an extension called Speed Dial
@nicolasfigueroa530
@nicolasfigueroa530 7 лет назад
thanks, great video
Далее
Flexbox CSS In 20 Minutes
19:59
Просмотров 1,8 млн
DAXSHAT!!! Avaz Oxun sahnada yeg'lab yubordi
10:46
Просмотров 242 тыс.
Flexbox Tutorial (CSS): Real Layout Examples
28:46
CSS Flexbox Course
48:43
Просмотров 329 тыс.
Learn Flexbox CSS in 8 minutes
8:16
Просмотров 1,6 млн
Drop Down Menu - CSS Animations
22:48
Просмотров 242 тыс.
CSS FlexBox Essentials
31:24
Просмотров 321 тыс.
Build a Responsive Grid CSS Website Layout From Scratch
45:33
CSS Floats and Clears Explained
12:34
Просмотров 147 тыс.
CSS Grid Changes EVERYTHING - Amazing Presentation
32:06