fieldset & legend
fieldset
tag simply just used for grouping inputs and labels within a form or is there more to it?
2) is the legend
tag used to simply label the fieldset, or is it used for a question like in the example image?
3) what makes the legend
tag sit on top of the fieldset
border (see image). Is this just built in functionality since there isn't anything in the user agent style sheet that could place it there, such as position: absolute
? Is there a way to move it?...How to Enable Responsive Horizontal Scrolling for Flex Items in CSS?
White space between rows when using flex: wrap
Color contrast checker, automatic suggestion?
How Supported Is Supported Enough?
can i use
is enough for you to use something in a production project?
2) What is the difference here? One is 70 and one is 90% but I'm not sure on the distinction....Prototype in JavaScript
this keyword used on properties and methods when creating a new object in JavaScript
Is it possible to create something like this with just CSS?
Styling cells that span multiple rows
<tr>
based on the current time, but longer events span multiple rows and only receive the styling while the first 30-minute chunk (i.e. the row that the cell starts in) has the class applied....Improving placement and transform for rotated items in a wheel
.month
align to the middle of the wheel. They do if there are two task items within .tasks
, but that's just because an ugly hack with margin-block-start: -18px
. Other amounts of tasks will be slightly misaligned, because their rendered heights isn't 18px * 2 (inspect the month of Nov, and you'll see). I tried using translateY(-50%)
instead, but that's in conflict with items being rotated. Should I use trigonometry for this, or is there an easier approach?...Any AI tools for this?
Gradient Border Animation
My letter got scatter due to my css styling
use strict & data storage
"use-strict";
is used to prevent mistakes and stop bad code from having a chance of running. Does anyone have any examples of something that is considered bad code running without the use of use-strict
and then it not working when you add it?
2) let's say you have a tab system (see image for example). When you click on a different tab, the html changes to content relevant to the tab. Where is an appropriate place to store the data (text, image etc.) before inserting it to the page? I'm aware you may do this by changing .innerText/.innerHTML
values and the value of the src
attribute for the image, but storing them in variables or something doesn't quite feel right, though i may be wrong....Does `aria-labelledby` work if the id is on a parent element?
{{ heading }}
twig expression that renders markdown. So {{ heading }}
will evaluate to something like <h2>Lorem ipsum</h2>
.
Therefore, I need to put the id on a parent element (see attached). Will this still be accessible? I'm trying to provide a name to my section
...Creating a triangle connecting a div and a point on an image
Following "infinite horizontal scroll animation" tutorial from Kevin on Youtube; not working (help!)
Issue in playing the video.
Event bubbling in JS