Skip to content

Instantly share code, notes, and snippets.

View YazeedAlsaif's full-sized avatar
👋

Alsaif يزيد YazeedAlsaif

👋
  • Saudi Arabia, Riyadh.
  • 16:22 (UTC +03:00)
  • X @_ysaif
View GitHub Profile
var docWidth = document.documentElement.offsetWidth;
[].forEach.call(
document.querySelectorAll('*'),
function(el) {
if (el.offsetWidth > docWidth) {
console.log(el);
}
}
);
@YazeedAlsaif
YazeedAlsaif / bootstrap-3-vert-offset-shim.css
Last active August 29, 2015 14:26 — forked from erobert17/bootstrap-3-vert-offset-shim.css
Adds a vertical offset top and bottom to Bootstrap 3 to be used within columns. Currently no vertical offset is available as standard in Bootstrap 3.
/*
Include this after bootstrap.css. Add class of
vert-offset-top-value or vert-offset-bottom-value
to your Bootstrap 3 default rows to prevent row content
from touching the row content above or below.
*/
/* Vertical Offset Bottom */
.vert-offset-top-12{
margin-top: 12em;