skip to Main Content

HTML for UI design

I want to be able to develop my user interface designs from figma. Do I need to learn HTML or just CSS and Javascript? And what are the best resources for that? So far in dev mode, I've only seen…

VIEW QUESTION

Html – CSS: How to toggle the borders of a specific table column without twitching

function toggleBorders() { table.tHead.firstElementChild.children[1].classList.toggle('thick-border'); Array.from(table.tBodies[0].children).forEach(row => row.children[1].classList.toggle('thick-border')); } table { border-collapse: collapse; } th.thick-border, td.thick-border { border: 3px solid coral; border-top: none; border-bottom: none; } <table id="table"> <thead> <tr> <th>h1</th> <th>h2</th> <th>h3</th> <th>h4</th> </tr> </thead> <tbody> <tr> <td>11</td> <td>12</td> <td>13</td>…

VIEW QUESTION

Css – Centering a loading spinner

I want to ensure my loading spinner is always centered when used, in a table, a button, ... .th-loader { .progress { top: calc(50% - (var(--loading-indicator-border)/2)); left: calc(50% - (var(--loading-indicator-border)/2)); width: var(--loading-indicator-border); aspect-ratio: 1; background: #006edb; border-radius: 50%; transform: rotate(0deg)…

VIEW QUESTION

Html – Select class where parent is last child in

I have a simple html hierarchy: <div> <div> <div class="custom-class">whatever</div> </div> <div> <div class="custom-class">whatever</div> </div> <div> <div class="custom-class">thing i want to select</div> </div> </div> I am currently adding attributes to .custom-class but would like to add a specific attribute to…

VIEW QUESTION
Back To Top
Search