[Solved] Place a text above two different solid background colors

I still think CSS gradients is the way to go. You can set where the color stop is positioned if you need to. It also doesn’t rely on setting a height. div { background-image: linear-gradient(to bottom, #ee615f, #ee615f 50%, #9f3e3e 50%, #9f3e3e); font-family: sans-serif; font-size: 40px; line-height: 1; padding: 25px 0; margin-bottom: 25px; text-align: center; … Read more

[Solved] Vertical link in page sides [closed]

With that amount of information I can give you this much of an answer HTML <a href=”#” class=”aside-fixed aside-left”>left</a> <a href=”#” class=”aside-fixed aside-right”>right</a> CSS .aside-fixed { position: fixed; z-index: 20; top: 50%; background: black; padding: 10px; color: white; } .aside-left { left: 0; } .aside-right { right: 0; } 0 solved Vertical link in page … Read more

[Solved] Looking for a jQuery Slider with 3 Lines [closed]

I’d use slick for this. I wrote up an example on how to use it. $(document).ready(function(){ $(‘.slider’).slick({ infinite: true, arrows:true }); $(“#final”).click(function () { console.log(“Current slides:”); console.log($(‘.slide1’).slick(‘slickCurrentSlide’)); console.log($(‘.slide2’).slick(‘slickCurrentSlide’)); console.log($(‘.slide3’).slick(‘slickCurrentSlide’)); }); }); body { background:black; } .sliderContainer { padding:40px; color:white; } <link rel=”stylesheet” href=”https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.css” /> <link rel=”stylesheet” href=”https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick-theme.min.css” /> <script type=”text/javascript” src=”https://code.jquery.com/jquery-1.11.0.min.js”></script> <script type=”text/javascript” src=”https://code.jquery.com/jquery-migrate-1.2.1.min.js”></script> <script … Read more

[Solved] How to make this block correctly in html? [closed]

You can use pseudo elements on the paragraphs to draw the lines. .line.col-md-4 { position: relative; background: white; } .line.col-md-4:before { content: ”; background: purple; width: 1px; height: 200%; position: absolute; z-index: -1; } .tr:before { top: 50%; left: 0; } .tl:before { right: 0; top: 50%; } .bl:before { bottom: 50%; right: 0; } … Read more

[Solved] Javascript: How to randomize images on page load [closed]

Okay, I got an answer with some sites. Not making any changes with my CSS stylesheet and NOT even using database. Here the following codes: <script type=”text/javascript”> if (document.getElementById) { window.onload = swap }; function swap() { var numimages=7; rndimg = new Array(“images/home.jpeg”,”images/home-bg.jpg”,”images/home_1.jpg”); x=(Math.floor(Math.random()*numimages)); randomimage=(rndimg[x]); document.getElementById(“home”).style.backgroundImage = “url(“+ randomimage +”)”; } </script> 4 solved Javascript: … Read more

[Solved] How to give hover effect on the image used in html?

Try this. <!DOCTYPE html> <html> <head> <style> .container { position: relative; width: 50%; } .image { content:url(“https://stackoverflow.com/questions/43225489/assets/images/img-1.png”); opacity: 0.8; display: block; width: 100%; height: auto; transition: .5s ease; backface-visibility: hidden; } .container:hover .image { content:url(“https://upload.wikimedia.org/wikipedia/commons/4/47/PNG_transparency_demonstration_1.png”); opacity:2; } </style> </head> <body> <div class=”container”> <img class=”image”> <p>Lorem ipsum dummy text</p> </div> </body> </html> 2 solved How to … Read more

[Solved] Display text from alt tag of from title tag on a button with CSS

You have to add some javascript code to achieve this. Check below Snippet: $(‘.the_champ_login_ul li’).each(function(index) { $(‘<span>’ + $(this).find(‘i’).attr(‘alt’) + ‘</span>’).insertAfter($(this).find(‘i ss’)); }); .theChampLogin { width: 100%; display: block; } .theChampFacebookBackground { background-color: #3C589A; } .theChampFacebookLoginSvg { background: url(//login.create.net/images/icons/user/facebook_30x30.png) left no-repeat; } .theChampTwitterLoginSvg { background: url(//login.create.net/images/icons/user/twitter-b_30x30.png) left no-repeat; } .theChampLoginSvg { height: 100%; width: 35px; … Read more

[Solved] Anchoring to the same page [closed]

I would do the scrolling using jQuery and changing the anchors in the URL to elements that don’t exist on the DOM with the same value for id or name. (so that the scroll is not done automatically) Living demo $(window).on(‘hashchange’,function(){ //you can see it manually or calculate it using jQuery by using $.height(); var … Read more

[Solved] Link not working on image button

You need to put the article inside of the anchor tag <div class=”hub-background”> <div class=”hub-container”> <a href=”https://stackoverflow.com/questions/43106811/…”> <article class=”btn-twitch”> <img src=”https://stackoverflow.com/questions/43106811/…”> </article> </a> </div> </div> 2 solved Link not working on image button

[Solved] HTML how to center content [closed]

you must edit your html code like this: body { background-color: #A9A9A9; } #table, table { margin: 0 auto; } h1, h3 { text-align: center; } <h1 style=”color: red”>Hassen Rammal</h1> <h3> Welcome to my online porfolio. </h3> <div id=”table” style=”width:80%”> <table height=”230px” background=”GOT.jpg”> <tr> <td colspan=”5″ style=”font-size: 4em; font-weight: bold;text-align: center” valign=”bottom”>Hassen Rammal</td> </tr> <tr> … Read more