Bootstrap 3 Tips and Tricks
scotch.io
scotch.io
Most of these are quite explicitly described in the documentation (img-responsive, nested columns, responsive grids, container-fluid are all very upfront in the documentation).
And on a UX note, I cannot see any advantage to the animated, slightly expanding prettyprint code boxes. I don't think this is a valuable piece of UI.
You could read about every grid detail, form & UI element and JS element in less than 20 minutes.
Thus, articles like this one have their place, and I for one thought it picked out some nice under-utilized pieces.
From the first bullet point in the "Grid System":
>Rows must be placed within a .container (fixed-width) or .container-fluid (full-width) for proper alignment and padding.
Different stacking in mobile and desktop: http://getbootstrap.com/css/#grid-example-mixed Nesting Columns: http://getbootstrap.com/css/#grid-nesting Column Ordering: http://getbootstrap.com/css/#grid-column-ordering Lead class: http://getbootstrap.com/css/#type-body-copy Block Quotes: http://getbootstrap.com/css/#type-blockquotes Inline Lists: http://getbootstrap.com/css/#type-lists Inline Forms (helping screen readers): http://getbootstrap.com/css/#forms-inline Images: http://getbootstrap.com/css/#images
I guess you might not think to look for it in the documentation, but if you don't think to look for it, that means you probably aren't using it, and don't need it... I still wouldn't really call any of these things tips or tricks, it's just actually reading the documentation of what framework you're using, which apparently people don't do?
I'm really not trying to poo-poo the article but you could pluck 10 random things from Bootstrap's relatively simple documentation and have the same thing.
Maybe if it were titled "cool things in Bootstrap" instead of being presented as "tricks."
I'd call a trick something that is not part of the documentation core, something that has unexpected effect or behavior that was unintended initially.
None of those would apply here.
Either way, I didn't say such "tricks" are without peril - surely a number of jQuery "tricks," even those that were eventually canonized, have been broken over the years as the library updates.
If on the other hand you use a conventional definition of trick, "a clever or particular way of doing something", then the post is indeed about a set of tricks.
Also, for the pedants: in many English-speaking communities, "tips n tricks" is simply slang for "miscellaneous useful bits".
Finally, general props to scotch.io for being a better-than-average blog.
http://uxmovement.com/navigation/why-hover-menus-do-users-mo...
Closed page. Didn't read.
My response to leave a 1-star rating on whatever app is being advertised with a review stating that I don't like their advertising technique.
I've reported this kind of thing to better websites (ones I knew/trusted) when it happened and they fixed it. I don't know if this site is fine with this or is just the victim of a terrible ad network.
In the meantime, I just let the advertisers know my feelings with a 1-star review. If everybody did that it would probably put an end to these pop-ups, but I won't hold my breath.
The chrome all-stars series is absolutely fantastic, I'm primarily a Firefox user (I've always preferred Firebug to Chrome Dev Tools) but I'm starting to realise that in a lot of ways chromes dev tools are much deeper than firebugs.
Cheers :).
note: I don't think this is hideous.
Have you ever entered information into a form that used placeholder text to tell you what to write, and you already started typing so that text disappeared but forget what you're supposed to be writing? The only way to view that placeholder text is by clearing the input field, right? Well if you have Bootstrap included already we can do some magic!
// Display placeholder="" text as tooltip for :focused, non-empty inputs
$('form input').blur(function() {
var inputVal = $(this).val(),
titleText = $(this).attr('placeholder');
if ( inputVal != '' ) {
$(this).tooltip({
title: titleText,
trigger: 'focus',
container: 'form'
});
}
});> And it will stack like this on small devices (tablets/phones, 768px and below):
Isn't that the default behaviour of inline HTML elements?
Honestly, most of the time I don't know what I gain by using Bootstrap, and would be very pleased if they distributted a Bootstrap-lite that only changed the default presentation of elements without all those containers, effects, and optional styles.
But I'm linking it only because in that page I offer my own tips and tricks via an email mini-course.
Beginners have found it useful.
One thing though, the hover menu doesn't really work with my Nexus 7, as it sends me straight to reddit. Hover in general assumes a mouse and doesn't work on mobile, which I'm guessing is why it was not included out of the box.