[Solved] bootstrap fixed nav in single page site links issue

What you’re trying to achieve here is impossible without Javascript. You’ve changed the scrollTop but you need to do it after some milliseconds to get it working, e.g: $(“.nav a”).click(function(){ setTimeout(function() { $(window).scrollTop($(window).scrollTop() – 50); }, 10); }); If you don’t want to wait those milliseconds, you can also prevent the default behavior and simulate … Read more

[Solved] How do I make an image repeatedly show and hide every x seconds?

Taking your question quite literal, I think this is what you want. Image shows for 10s hides for 10s, then shows for 10s and hides for 7s, repeat. function promoFade() { $(‘#promo’).delay(x).fadeOut(150).delay(x).fadeIn(150).delay(x).fadeOut(150).delay(x).fadeIn(150); }; setInterval(“promoFade()”, 0); Added setInterval in case you need to wait for the page to load. There are better ways and personally, I … Read more

[Solved] I want to change display property of this span class [closed]

You can do this in CSS fairly easily. If you place the tool tip span within the video title span, you can set it to display:none and have it change to display: block when the video title is hovered. <span class=”video-title”> Title text here <span class=”tooltip”>Tooltip text here</span> </span> .video-title {position: relative} .tooltip {display: none;} … Read more

[Solved] CSS – what should I do to solve this?

Elements showing on top or below each other can be managed in css with z-index property. You may apply -1 for the element that comes on the top. Read more: http://www.w3schools.com/cssref/pr_pos_z-index.asp 3 solved CSS – what should I do to solve this?

[Solved] Issue with width in IE9 and older browsers [closed]

Possible reasons: 1.<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> 2.In the case of a scrollbar being placed on an edge of the element’s box, it should be inserted between the inner border edge and the outer padding edge. Any space taken up by the scrollbars should be taken out of (subtracted from the dimensions … Read more

[Solved] fixed divs inside container

This is what it seems you want What you want is a sticky menu which requires javascript to find the current position of the page in the viewport and change the CSS or class to make it fixed. This is a bad example because there is no div that is made visible after you scroll … Read more

[Solved] How to align Bootstrap cards horizontally in PHP

<!DOCTYPE html> <html lang=”en”> <head> <title>Bootstrap Card</title> <meta charset=”utf-8″> <meta name=”viewport” content=”width=device-width, initial-scale=1″> <link rel=”stylesheet” href=”https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css”> <script src=”https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js”></script> <script src=”https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js”></script> <script src=”https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js”></script> </head> <body> <div class=”container”> <div class=”row”> <div class=”col-3″> <div class=”card”> <div class=”card-body”> <img src=”https://tipsmake.com/data1/thumbs/how-to-extract-img-files-in-windows-10-thumb-bzxI4IDgg.jpg” class=”w-100″> <h5>Sample Img</h5> </div> </div> </div> <div class=”col-3″> <div class=”card”> <div class=”card-body”> <img src=”https://tipsmake.com/data1/thumbs/how-to-extract-img-files-in-windows-10-thumb-bzxI4IDgg.jpg” class=”w-100″> <h5>Sample Img</h5> </div> </div> … Read more

[Solved] Zoom in effect on background image [closed]

I don’t know what you are really asking, but this might be what you are looking for: html, body { background: url(“http://placehold.it/200×200”) top center no-repeat; animation: animateBg forwards 2s ease-in; } @keyframes animateBg{ from { background-size: 200px; } to { background-size: 100%; } } 3 solved Zoom in effect on background image [closed]

[Solved] How to make an iOS 7-like translucency effect html [duplicate]

This is possible. Check the jsfiddle: http://jsfiddle.net/jawilliams346614/jmbsch96/ HTML <div class=”ios-container ios-blur”> <div class=”ios-items”>&nbsp;</div> <div class=”ios-items”>&nbsp;</div> <div class=”ios-items”>&nbsp;</div> <div class=”ios-items”>&nbsp;</div> <div class=”ios-items”>&nbsp;</div> <div class=”ios-items”>&nbsp;</div> <div class=”ios-items”>&nbsp;</div> <div class=”ios-items”>&nbsp;</div> <div class=”ios-items”>&nbsp;</div> <div class=”ios-items”>&nbsp;</div> <div class=”ios-items”>&nbsp;</div> <div class=”ios-items”>&nbsp;</div> </div> <div class=”ios-frost”>&nbsp;</div> CSS .ios-container { width: 400px; height: 400px; background: url(http://www.hdwallpapers.in/walls/ios_7_galaxy-wide.jpg); z-index:1; } .ios-items { background: #f00; width:80px; height:80px; … Read more

[Solved] different CSS style class on page load for mobile and desktop [duplicate]

Someone has posted something similar earlier, but removed the answer, after a little bit of tinkering I got this to work. By default the sidebar doesn’t have ‘active’ class set. Also by default it is hidden for mobile, but displayed for desktop. ‘active’ class gives the ability to display the sidebar on mobile. /* small … Read more

[Solved] What is it called when a page scrolling does not push the main image, instead, moves over it?

You could use your inspector and figure it out yourself next time. background-size: cover; For your second question: Different solutions are possible. The easiest one would be linking to an element using an anchor. <div id=”first-page”> <a id=”scrollto” href=”#second-page”>Scroll down</a> </div> <div id=”second-page”>Lorem Ipsum</div> You’ll probably want to smoothscroll to the second page. This can … Read more

[Solved] What is normalized css?

Normalize.css is an open source .css file that Nicolas Gallagher made on GitHub: https://necolas.github.io/normalize.css/ It allows you to apply a “Reset” to your code in order to let most modern browsers use your CSS. To use it, you need to link to it in your HTML like you would any other CSS, but make sure … Read more