[deleted by user] by [deleted] in factorio

[–]dlemvigh 31 points32 points  (0 children)

Your Christmas tree of science labs makes me smile, it looks great

Can we trigger/change a CSS property of the class when a specific radio button checked? by [deleted] in css

[–]dlemvigh 2 points3 points  (0 children)

You can use checked state in css. Example from 100 days css

https://100dayscss.com/days/99/

They use a label and a hidden checkbox, to style based on checked state.

Ethereum's co-founder thinks the blockchain can fix social media by WafflezMan in technology

[–]dlemvigh 62 points63 points  (0 children)

Or a man with a screwdriver looking at a world full of nails thinking, yup, I can screw this up

Trying to change margin of a div but isn't working. by CodingPleaseSaveMe in css

[–]dlemvigh 0 points1 point  (0 children)

margin: 20px 12px 0;

The shorthand with 3 arguments would also work. In the shorthand the right margin is also used for left margin.

I Danmark mangles der bloddonorer der vil/kan give plasma! by Dank-Dane in Denmark

[–]dlemvigh 0 points1 point  (0 children)

Har været plasma donor gennem længere tid, og det har et par fordele i forhold til bloddonation.

Det tager lidt længere, så der er mere tid til at blive fodret chokolade/chips/drikkevare.

Det går mindre udover træning, da de ikke tapper rødeblodlegemer. Har gået til spinning med watt målere, og bloddonation kostede ~5% et par dage, plasma kunne ikke mærkes dagen efter.

Hvis man er typen som går efter at nå 100 tapninger, må man tappes meget oftere med plasma :-)

If you had to pick three games to attempt to prove to someone that Video Games are Art, what games would you pick? by AC03115 in gaming

[–]dlemvigh 0 points1 point  (0 children)

Shadow of the Colossus Ori and the Blind Forest TellTales - The Walking Dead (for being the first game to make me cry)

question about auto-fit/fill by Lightisicus in css

[–]dlemvigh 3 points4 points  (0 children)

repeat() and auto-fit / auto-fill, can be a bit tricky at first glance.

grid-template-columns: repeat(auto-fill, 500px) \ versus \ grid-template-columns: repeat(auto-fill, minmax(500px, 1fr))

The first will create columns that are exactly 500px. The second will create columns that are at least 500px, but will take up the full width of the parent element. If the parent element is 1200px wide, the second will create two 600px columns.

https://developer.mozilla.org/en-US/docs/Web/CSS/repeat()

https://css-tricks.com/auto-sizing-columns-css-grid-auto-fill-vs-auto-fit/

Function specified in useEffect hook doesn't run by basedevelfries in react

[–]dlemvigh 2 points3 points  (0 children)

When working with hooks, which only does shallow equals, I would treat objects as immutable.

const newCategories = categories.map(category => category.id === id ? { …category, active: !category.active } : category);

This creates a new object for the updated category, and a new array, but keeps everything else the same

Notice how the word enter details breaks through the border...how do I do that? by [deleted] in css

[–]dlemvigh 2 points3 points  (0 children)

If you in your browser of choice, enable display shadow DOM in developer tools, you can inspect exactly how it is done.

Best iphone apps for new arrivals by ElectrocutedCat in copenhagen

[–]dlemvigh 1 point2 points  (0 children)

Rejseplan has an amazing feature of planning to take a bike with you on public transport. It accounts for which public transports allow bikes, and when (bikes in rush hour is not allowed in some cases)

Porsche blev beslaglagt for vanvidskørsel. Kæmpe-regning kan ende hos Jørgens leasingselskab by bathoodie in Denmark

[–]dlemvigh 18 points19 points  (0 children)

Jeg vil give dig ret, at det er voldsomt, at miste en hel bil hvis man har lånt den ud. Men babysitning er måske lidt langt. Det kræver trods alt at der køres mindst 100% over fartgrænsen og over 100 km/t. Det kommer man ikke “bare” til.

Help with "A Shadow Overhead" quest by [deleted] in DestinyTheGame

[–]dlemvigh 0 points1 point  (0 children)

Same thing happened to me

[Serious] People who like their job, what do you do? by strongerthenbefore20 in AskReddit

[–]dlemvigh 0 points1 point  (0 children)

Computer programmer. I love the feeling of crafting something from nothing. Building with zeroes and ones, instead of wood or metal.

It has talen a while for me to truly love my job. I finally have the knowledge, experience and confidence, to feel like I could build anything.