What do the crossed style properties in Google Chrome devtools mean?

When a CSS property shows as struck-through, it means that the crossed-out style was applied, but then overridden by a more specific selector, a more local rule, or by a later property within the same rule. (Special cases: a style will also be shown as struck-through if a style exists in an matching rule but … Read more

How do you get the footer to stay at the bottom of a Web page?

To get a sticky footer: Have a <div> with class=”wrapper” for your content. Right before the closing </div> of the wrapper place the <div class=”push”></div>. Right after the closing </div> of the wrapper place the <div class=”footer”></div>. * { margin: 0; } html, body { height: 100%; } .wrapper { min-height: 100%; height: auto !important; … Read more

Flushing footer to bottom of the page, twitter bootstrap

This is now included with Bootstrap 2.2.1. Bootstrap 3.x Use the navbar component and add .navbar-fixed-bottom class: <div class=”navbar navbar-fixed-bottom”></div> Bootstrap 4.x <div class=”navbar fixed-bottom”></div> Don’t forget to add body { padding-bottom: 70px; } or otherwise the page content may be covered. Docs: http://getbootstrap.com/components/#navbar-fixed-bottom

Bootstrap dropdown sub menu missing

Bootstrap 5 (update 2021) Add some JavaScript to prevent the submenu from closing when the parent dropdown is open. This can be done be toggle display:block… let dropdowns = document.querySelectorAll(‘.dropdown-toggle’) dropdowns.forEach((dd)=>{ dd.addEventListener(‘click’, function (e) { var el = this.nextElementSibling el.style.display = el.style.display===’block’?’none’:’block’ }) }) Bootstrap 5 Multi-level Dropdown – click Bootstrap 5 Multi-level Dropdown – … Read more

Hide text using css

This is one way: h1 { text-indent: -9999px; /* sends the text off-screen */ background-image: url(/the_img.png); /* shows image */ height: 100px; /* be sure to set height & width */ width: 600px; white-space: nowrap; /* because only the first line is indented */ } h1 a { outline: none; /* prevents dotted line when … Read more

Transition of background-color

As far as I know, transitions currently work in Safari, Chrome, Firefox, Opera and Internet Explorer 10+. This should produce a fade effect for you in these browsers: a { background-color: #FF0; } a:hover { background-color: #AD310B; -webkit-transition: background-color 1000ms linear; -ms-transition: background-color 1000ms linear; transition: background-color 1000ms linear; } <a>Navigation Link</a> Note: As pointed … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)