![]() You can also find the solution to this brain teaser here. If you have a sharp mind for solving puzzles, try this brain teaser. so i go with a math calc and just hide the overflow. Brain Test: How To Connect 9 Dots With 4 Straight Lines If you are genius solve this Cool Maths - Game Brain teasers are puzzles that make you think and increase your mental capacity. Most people will see a square and mentally add lines around it creating the context with which to solve the puzzle. I really like line-clamp, but no support for firefox yet. The rules are simple connect all 9 dots using a maximum of 4 straight lines without lifting your pen off the paper or retracing back over an existing line. * height must be a multiple of line-height for how many rows you want to show (height = line-height x rows) */ It uses a couple of extra divs, but it's very easy to implement. The advantages are that you don't have to do any JavaScript calculations and it works for variable width containers including table cells and is cross-browser. It works when you have dynamic text so you don't know if it will be long enough to need an ellipse. I have a solution which works well but instead an ellipsis it uses a gradient. Old men tend to forget what thought was like in their youth They become accustomed to the more plodding varieties of reason, and because this is more than made up by the accumulation of experience, old men think themselves wiser than the young. Old men tend to forget what thought was like in their youth they forget the quickness of the mental jump, the daring of the youthful intuition, the agility of the fresh insight. whether needed or not.Ģ) It does no test to check that the inner html has no nested elems - so you are relying a lot on the author to use the. There are no caveats to this approach, however this code example is meant only to demonstrate the basic idea - I wouldn't use this in production without improving on it for a two reasons:ġ) It will rewrite the inner html of. text element, and if there are more chars than the preset max var, it will cut the rest off and add an ellipsis. In my opinion this is the best solution, but not everyone can use JS.īasically, the jQuery will check any. Esse malis facilisis ex vix, cu hinc suavitate scriptorem pri. Ut est civibus accusam, pro principes conceptam ei, et duo case veniam. Eu has mentitum conclusionemque, primis deterruisset est in. Aliquid philosophia contentiones id eos, per cu atqui option disputationi, no vis nobis vidisse. At nominavi pericula persecuti ius, sea at sonet tincidunt, cu posse facilisis eos. Sit tale facete voluptatum ea, ad sumo altera scripta per, eius ullum feugait id duo. Easy Explanation PreMath 333K subscribers Subscribe 94K views 1 year ago Learn how to connect all nine. Lorem ipsum dolor sit amet, nibh eleifend cu his, porro fugit mandamus no mea. Can You Solve This Dot Puzzle Connect all 9 Dots with only 4 Straight Lines. * Right and bottom for the psudo class are px based on various factors, font-size etc. Max-height: 3.6em /* (Number of lines you want visible) * (line-height) */ Width: 250px /* Could be anything you like.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |