@yhubee posted a new topic, subject "I'm Stuck In A Rut". It read:

   This is one problem that keeps on coming back to me every time I try to move on from the `console.log`/`alert(...)` blank-page JS to JS that works on a fully styled and complete project.
    
    I know the HTML and CSS but I just can't seem to _get_ how to make it all work in sync without having to rename every tag's class, wondering if that class name is the right one, having to fix in a new `div`/`section` wrapper in there and another and another only to start all over again.
    
    For example, here's an image I saw and felt it would make a good practice project because I thought it wasn't going to be too hard for a novice.
    
    To say I was wrong would be an understatement. I spent days:
    
      * trying to get the BEM names right
      * trying to arrange the CSS into sections
      * putting in as many wrappers within wrappers … within wrappers just to “semantically” style a HTML element via CSS
      * constantly worrying if I was getting the vertical rythm right
      * starting over
      * wondering why I seemed to be wasting my time and why it was so hard
    
    
    
    And after all that and more I came up with this mess:
    
    index - baseline with classes (itr 1).html (3.4 KB)  
    index - baseline.html (2.1 KB)  
    index.html (3.0 KB)  
    theme.html (1.2 KB)  
    theme2.html (2.7 KB)  
    theme4.html (3.5 KB)  
    theme3.html (2.9 KB)  
    trial n' error.html (3.4 KB)  
    theme5.html (3.6 KB) **This is the one that "works"**  
    buttonslinks.css (627 Bytes)  
    grid.css (368 Bytes)  
    grid5.css (432 Bytes)  
    main.css (932 Bytes)  
    reset.css (1.2 KB)  
    theme.css (1.4 KB)  
    theme5.css (1.5 KB)  
    typography.css (105 Bytes)  
    
    
    My intention was not really to turn this into a code review but I don't know how to explain it properly without showing you guys an example. I hadn't learned flexbox yet so that's why I didn't use it.
    
    So while surfing the net searching for yet another tutorial a few days ago after I had dumped yet another site recreation project ago until further notice, I came across this gem - 10 CSS3 Projects: UI and Layout. It checked all the boxes concerning flexbox, UI in general and the projects seem to intensive enough for me to glean some kind of best practices knowledge on how to make the HTML and CSS work without having to go back and forth numerous times. Unfortunately, it's a free trial that requires a credit card and I'm unfortunate enough to be an 18yo in a place that doesn't use credit cards and they're not accepting the local cards.
    
    I've also tried following the Design + Code my Personal Website in 12 hours tutorial and after 3 folders and numerous retries trying to do it my way, do the flexbox better than he did, and trying not to care about BEM, the project has been postponed until further notice.
    
    Long story short, do you have any tutorials, advice, explanation, todos, not todos, etc.?
    
    Thanks.

To which @Erik_J replied

    Hi,
    
    Looks like your theme5 is pretty close to the “mockup” image. 
    
    The menu and the buttons might be slightly tricky, but you've come to the right place for assistance.
    
    It will take some time to digest your post. I hope someone can give advice for your last question sooner.
    
    (Hope you don't mind I tried you theme5 using your posted picture as Luke.)

So @yhubee replied

    [quote=“Erik_J, post:2, topic:257269”]The menu and the buttons might be slightly tricky, but you've come to the right place for assistance.  
    [/quote]
    
    Yup. I got some pretty great answers last time I asked for help.
    
    Erik_J:
    
    > (Hope you don't mind I tried you theme5 using your posted picture as Luke.)
    
    ethan90@example.com. It's actually the same image I used.
    
    Thanks

So @c3williams replied

    When it comes to flexbox the attached sheet has been gold for me. I'm sure it'll help you too.flexboxsheet.pdf (955.8 KB)

After which, @Erik_J added

    c3williams:
    
    > the attached sheet
    
    Nice @c3williams, thanks for posting that “Flexbox Cheatsheet Cheatsheet”, good to have!
    
    I think credit for it should go to Joni Trythall at http://jonibologna.com/
    
    Off topic)  
    An Adobe Illustrator PDF, but with a look like it was made by a designer using Ms Powerpoint.

To which @c3williams replied

    Erik_J:
    
    > I think credit for it should go to Joni Trythall at http://jonibologna.com/
    
    Indeed it should. I didn't make it!

After which, @yhubee added

    I just became “aware” of Codepen's Project Editor and finished reading a considerably illuminating BEM tutorial so I think I should try and recreate the mockup image using flexbox this time (thanks @c3williams).
    
    Maybe I get done before you, or somebody else, posts a review and the result is similar (that would be awesome ) or I get stuck and I'll be able to point out the problem areas more easily without needing you guys to download files.

After which, @system added

    This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.


{'source': 'discourse', 'url': 'https://www.sitepoint.com/community/t/im-stuck-in-a-rut/257269', 'title': "I'm Stuck In A Rut", 'views': 1702, 'has_accepted_answer': False, 'word_count': 973, 'like_count': 12, 'reply_count': 4, 'participant_count': 3, 'posts': 8, 'tags': 'code-review design', 'author': '@yhubee', 'participants': '@yhubee, @Erik_J, @c3williams, @system', 'image_url': ['https://aws1.discourse-cdn.com/sitepoint/original/3X/a/c/ac8ea84c901ff8bad8a07f8371f469a799d6d7b8.png'], 'created_at': '2017-03-18T22:23:37.125Z', 'last_posted_at': '2017-06-22T05:18:18.315Z'}