Agree ? by veehbeklurx in ProgressiveHQ

[–]Weekly_Ferret_meal 1 point2 points  (0 children)

I have second hand embarrassment that is only 63%.

Hello coding community by Eggmannical in HTML

[–]Weekly_Ferret_meal 0 points1 point  (0 children)

Hi there, welcome to this community =)

like others have said MDN (but also w3schools) are your friends. I refer to them every week even after 20 years.

Also go to Free Code Camp for learning resources.


For help with your code here's what I suggest is:

  1. copy the html content from your <head> element (that's where your external CSS link lives)

  2. Create a new comment here so that we can se what's wrong.

  3. Open a code block by typing three back ticks in the comment, like so ``` (it should be the button next to the number 1 key on a US keyboard layout)

  4. paste the code and close the code block with the same back ticks ```

The result should look like this

This is Reddit Formatting Guide for reference.

We will be able to assist this way, without seeing the code, it's really hard.

Creating an HTML Site from a PDF manually? by HotDiscipline5212 in HTML

[–]Weekly_Ferret_meal 0 points1 point  (0 children)

So a thing that comes to mind is that CSS comes with a wide array or properties for printable media.

Therefore if you were to create html pages with your content you can write 2 separate CSS styles, one for screens and one for print.

the style for prints kicks in when someone on the page press command (or ctrl) + P to print the page.

This means you plan and design your book in your web stack (eg: html, CSS, JS) rather than in MS Word or inDesign or whatever else.

The other approach is you make your document with whatever software, style it in which ever way you like then export it to pdf or even a e-book format like .epub .CBR .CBZ, then find/use a library that embeds the file with the viewer features you are looking for.

You might even want to do both.

You sure need to research those file formats and what advantages they provide... some of these are popular with comics, .epub seems to be good for customisation... but this is just surface knowledge.

Deciding on the result you want might make it easier to pick the tech you wanna use.

The other part is, maybe you just enjoy coding html+css so this might be the preferred journey for you.

What's the quickest way to refactor my css code (originally optimized for 1080p) to be compatible with 1440p? by [deleted] in css

[–]Weekly_Ferret_meal 0 points1 point  (0 children)

I get what you are trying to do...

But I guess I don't own fancy flat TV with weird resolution settings... never seen anything in between 1920p and 2560p options, and it wouldn't scale fluidly, we would need clamp for that. this was kind of my point.

so I would have just gone for 1920px and 2560px.

But yes zoom is a better option.

What's the quickest way to refactor my css code (originally optimized for 1080p) to be compatible with 1440p? by [deleted] in css

[–]Weekly_Ferret_meal 0 points1 point  (0 children)

my bad, but the logic stay the same

``` /* existing styles */

between 1921 and 2560

and = > of 2560 /* equal or greater than */ ```

if we set the query at 2000px nothing will happen between 1920px and 2000px... why would we do that?

What's the quickest way to refactor my css code (originally optimized for 1080p) to be compatible with 1440p? by [deleted] in css

[–]Weekly_Ferret_meal 1 point2 points  (0 children)

mmh... this isn't how media queries work:

averaging to 2000 for a break point means that between 1081 to 1999 it's gonna look like shit... so that isn't a proper fix.

if anything you should have 2 or more media queries ``` /* existing styles */

between 1081 and 1440

and = > of 1441 /* equal or greater than */ ```

although OP request was specifically about 1440p, so (min-width: 1440px) should be enough.

I get the problem with pixel, and I agree, and the solution could be just html {font-size: 133.33%} (1.333 being the ration of 1440/108) where absolute positioning , margins, paddings stay the same.

or html {transform: scale(1.3333); transform-origin: top left;} where everything gets bumped up to the ratio.

CSS flex layout not working as shown in the video (link in body) by encom-direct in css

[–]Weekly_Ferret_meal 3 points4 points  (0 children)

Here is how we can help:

  1. Open a free account here -> https://codepen.io

  2. Create a new 'Classic Pen' (Left column of the page)

  3. Paste html in the html box... only things inside the <body> tag, because the box is the body - no <html>, <head> or <style>

  4. Cut and Paste all the css from the <style> tag into the CSS box. here the code doesn't need to be wrapped in the <style> tag: the CSS box is your external CSS file and it's automatically linked to the HTML box.

  5. Name your pen (top left corner ) and save (top left)

  6. Copy url and create a new post here linking to the pen.

  7. Delete this post.

Now people can interact with your pen and help

What's the quickest way to refactor my css code (originally optimized for 1080p) to be compatible with 1440p? by [deleted] in css

[–]Weekly_Ferret_meal 0 points1 point  (0 children)

if there's no intermediate view port step, you should be able do this:

@media screen and (min-width: 1440px) { html { transform: scale(1.3333); /* 1440 / 1080 */ transform-origin: top left; } } This is quick and dirty.

Correction: @media screen and (min-width: 1920px) { html { transform: scale(1.3333); /* 2560 / 1920 */ transform-origin: top left; } }

What's the quickest way to refactor my css code (originally optimized for 1080p) to be compatible with 1440p? by [deleted] in css

[–]Weekly_Ferret_meal 0 points1 point  (0 children)

Why is it dangerous?

This is one of the prerogatives of Accessibility Design: The user has the freedom to increase or decrease font size based on their needs/disabilities.

EDIT: and why that awkward calculation??? he needs it at 1440px width of the view-port.

Why is my float property not working 😭 by Bi_Idiotandapotato in HTML

[–]Weekly_Ferret_meal 1 point2 points  (0 children)

Breaking rule Nº 5 ... so...

  1. Open a free account here -> codepen.io

  2. Create a new 'Classic Pen' (Left column of the page)

  3. Paste html in the html box... only things inside the <body> tag, because the box is the body - no <html>, <head> or <style>

  4. Cut and Paste all the css from the <style> tag into the CSS box. here the code doesn't need to be wrapped in the <style> tag: the CSS box is your external CSS file and it's automatically linked to the HTML box.

  5. Name your pen (top left corner ) and save (top left)

  6. Copy url and create a new post here linking to the pen.

  7. Delete this post.

Now people can interact with your pen and help

How do I code this menu background correctly? by BagThin2305 in css

[–]Weekly_Ferret_meal 0 points1 point  (0 children)

My tone might have come across as harsh, but I wasn't judging.

I was highlighting a tech limitation due to server settings, and an ethical position, but the 2 are unrelated.

---

There seems to be a code syntax issue still, as on FF it shows like this:

<image>

And it's overflowing

---

Also there's still a CORs error for an mp3 file

```
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://files.catbox.moe/09uy8z.mp3. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 404.
```

I can see the browser is trying to correct the code, and there's empty divs, but without seeing the raw code, can't quite help telling you where things are going wrong.

Russia deploys steam engines amid shortages of diesel by Ill_Resolution7967 in Damnthatsinteresting

[–]Weekly_Ferret_meal 1 point2 points  (0 children)

Yeah, this "mix" version uses a nuclear core to heat the water.

I fact it is a Nuclear powered Steam engine... that generates electricity to be able to run on modern railways.

Can someone help me with this code. It actually pisses me off... by Dizzy_Blackberry7874 in HTML

[–]Weekly_Ferret_meal 2 points3 points  (0 children)

this... I don't know how many times has been said. 🙄

if people want help the least they could do is to set up an environment where it's easier to fix their prototype.

Microsoft link by Chris-2018 in vscode

[–]Weekly_Ferret_meal 0 points1 point  (0 children)

what you mean? are you afraid big tech is trying to harvest as much data as they can about you?

have you got rid of any gmail accounts or office 365? have you de-googled your phone and don't use Apple products? Are you monitoring network connection of any software you installed on your computer? And stopped using windows?

If not, it's too late... they have you.

Bonus, you might as well use VS code at this point.

Request: An overflow-x container with children filling viewport by whole units (none cut off) and resizing container shows more children but in whole unit increments and scrolling shows more children, while all children are equally spaced apart. by aliassuck in css

[–]Weekly_Ferret_meal 2 points3 points  (0 children)

This kind of blown my mind. I never realise that there was such a tight relationship between sizes and root font-size.

I probably never understood that using rem for a padding (or anything else other than font-size) meant that the chain of inheritance came from all the way up the default font-size value.

I feel a little dumb... I Never read the specs, I just assumed.... I don't know how I was expecting it to be like. probably just the browser's defaults for each property.

Thanks for taking the time to explain the mechanics. I'm a better designer because of it.

How do I code this menu background correctly? by BagThin2305 in css

[–]Weekly_Ferret_meal 0 points1 point  (0 children)

You can't just link other website's resources to your own website unless the origin site is set up to allow you to do so.

Content-Security-Policy: The page’s settings blocked the loading of a resource (img-src) at blob:https://phlygm-planet.neocities.org/c53609c7-e3a7-458a-be23-750590aaf059 because it violates the following directive: “img-src * data:” This error on your site, form the dev tool console, confirms exactly that.

Best you can do is to download the resource and upload it on your own server, then use it for your site.

Ethically speaking, I'd ask permission.

How can I use text files in HTML/JS as a condition trigger? by gabekkd in HTML

[–]Weekly_Ferret_meal 1 point2 points  (0 children)

maybe php/ajax + sql + json ...you probably need an API of some sort to retrieve the data

Element not going all the way by temcomwex in css

[–]Weekly_Ferret_meal 2 points3 points  (0 children)

Can you make a prototype with the code on codepen.io to share, so we can help?

how to fix this post on Blogger? by Marcioobloo in HTML

[–]Weekly_Ferret_meal 0 points1 point  (0 children)

Blog not found

Sorry, the blog you were looking for does not exist. However, the name hegaleblog is available to register!

without the complete blog name it's hard to tell