skip to Main Content

Html – Apply CSS style depending of tbody height

I have simple example that applies style when div height is less than 400px. <html> <head> <style> .card-container { container-type: size; container-name: sidebar; } .card-container { background: #ffe4e8; width: 200px; height: 100px; } @container sidebar (max-height: 400px) { .card-container div:first-child…

VIEW QUESTION

Html – image loading on chrome but not safari

I am new to coding and finished this project for freecodecamp. For some reason my logo will load on chrome but not on safari. Any ideas why? const checkButton = document.getElementById('check-btn') ; const userInput = document.getElementById('text-input'); const result = document.getElementById('result');…

VIEW QUESTION

Html – how to center background image added by image sprites

.social-media-icon{ display: inline-block; } .social-media-icon a{ text-decoration: none; display: block; text-indent: -9999px; border: 2px solid #c3d4e2; position: relative; height: 36px; width: 36px; background: url(/img/social-icons.png) ; background-repeat: no-repeat; background-position: 50%; } .social-media-icon a:hover{ background-color: #c3d4e2; } .fb-icon a{ background-position: 0 0…

VIEW QUESTION
Back To Top
Search