r/css

Background not working
▲ 3 r/css

Background not working

I've tried to make a background for something I'm using. However, when I try to use a background image in some form (using url()), it is seen as invalid. Is there anything I am doing wrong here?

Probably important to note I'm using a MediaWiki infobox.

Edit 1: Some extra notes.

The CSS sheet in question + the template that uses it. Also, the image, though it isn't important.

It'll say it's invalid in a preview at the top of the page or if I attempt to submit it (it won't allow the edit to complete since the CSS is wrong).

The error happens at "line 11, character 15"; it does not change if the colour and url are reversed.

Edit 2: The relevant item. (I don't think I can add images now.)

/* 1) Infobox Styling */
  /* 1.1) Primary Infobox Styling */
  .portable-infobox {
    width: 300px;
    border-radius: 2.8px;
    font-family: sans-serif;
    margin: 0 0 14px 17.5px;
    font-size: 1em;
    
    /* 1.1.1) Light Mode Styling */
    background: #EFE8BC url("https://dieofdeath.miraheze.org/w/img_auth.php/c/c6/InfoboxPaper.png");
    border: 6px solid #554900;
    color: #000000;
  }
u/Sea-Palpitation-2164 — 3 hours ago
▲ 21 r/css+1 crossposts

If HTML had a version 6, what native elements would you want most?

Living standard I know… but does it really live. If HTML had a version 6, what native elements would you want most?

reddit.com
u/html67 — 23 hours ago
▲ 1 r/css+2 crossposts

TAG.js: Clean, unified DOM manipulation. Combine logic, structure, and styles without the framework bloat.

Following the Vanilla JS culture, I built a Javascript library that creates HTML elements associated with a variable and a CSS style with a single instruction.

This approach allows you to create web applications using "99.9%" JavaScript, so the HTML files work by importing these scripts. You practically don't create HTML elements in the HTML file; the most you use is up to the body tag. The rest is all Javascript file import.

The result is clean code, without HTML tag trees that make project maintenance difficult.

Since almost everything is done via Javascript, maintenance is much clearer and therefore easier.

A collateral benefit is the identification of created elements via browser inspection, including the CSS style associated with that element in a clear and simple way.

Only the library at: https://github.com/addller/kalida_script.git

Example available at: https://github.com/addller/kalida_framework.git

github.com
▲ 8 r/css+6 crossposts

Genuine Career question

If a CA and an MBA (Finance) from a decent college have the same skills, knowledge, and work ethic, does the CA qualification still provide a long-term advantage?

Does being a CA help you get roles, credibility, or opportunities that an MBA typically reaches only after 5–10 years of experience? Or after a few years, does only performance and experience matter?

Would love to hear from recruiters and professionals who’ve worked with both or one.

Pls give some real advices.

reddit.com
u/Dangerous_Fox5662 — 2 days ago
▲ 6 r/css+1 crossposts

how to make site mobile responsive

ive tried some media queries but none of them change the layout of my site on mobile..not sure what im doing wrong but maybe someone here can help. my website is https://phlygm-planet.neocities.org/

u/BagThin2305 — 2 days ago
▲ 117 r/css+2 crossposts

Made ASCII loading animations for AI coding UIs (terminal cursor, block spinners) - open source

If you're building ChatGPT-style apps, Claude wrappers, or local agent UIs, you probably need loading states that match the vibe.

Generic spinners feel wrong next to a terminal prompt. So I added 9 ASCII loaders to loading-ui:

  • terminal: > + blinking block cursor (classic CLI feel)
  • accordion-loader, conveyor-loop, symmetric-wave: animated unicode block trails
  • square-grid, square-snake, infinity-track: path-based unicode animations

All React components, copy-paste install, MIT licensed.

npx shadcn add @loading-ui/terminal

Use cases I had in mind:

  • "Generating code..."
  • "Running agent..."
  • "Deploying..."
  • Streaming tool call status

Live previews: https://loading-ui.com Open source: https://github.com/turbostarter/loading-ui

Anyone else building AI dev tools? What do you use for pending states while the model thinks?

u/zagrodzki — 3 days ago
▲ 7 r/css

CSS/HTML for dialog/scripts?

I'm currently working on a book that has several transcripts in it and I was hoping to make it look like an actual transcript (where the speakers are right aligned up against the dialog, and the dialog is indented). Currently I'm using tables as the best representation, but I was wondering if there was a better way of coding it, or if it's too disruptive to read and I should just remove the tables and let the dialog freeflow its way like an ordinary paragraph. What have folks done for scripts/plays/transcripts?

reddit.com
u/Fearless_Lake6098 — 3 days ago
▲ 3 r/css+1 crossposts

how do i set my footer to be at the bottom of the page

As you can see in the screenshot, my footer isnt showing up on the complete bottom of the page; theres some space between the end and the footer. The KoFi widget also shows up under the footer and the footer goes over my music player as well. Id like the kofi widget and my music player to show up on top of the footer, and the footer to be on the complete bottom of the page with nothing under it or on top of it if that makes sense. https://phlygm-planet.neocities.org/ is my website link.

u/BagThin2305 — 3 days ago
▲ 3 r/css

I'm trying to use glass morph but the background get's repainted..!

I used glass morphism as my core aesthetic for all the elements in my application and it works perfectly well in PC or Laptop devices.. but when it comes to mobile or similar devices what happens is

when I scroll down to the bottom or scroll to the top from bottom the background color get's repainted and that looks odd fr...

I know the background: blur with position not fixed will for sure do this but I don't want the position to be fixed I want it to be relative.. cause when it's fixed the bottom looks like this..!

https://preview.redd.it/j3z5aew3yxah1.png?width=1080&format=png&auto=webp&s=b25ea7624abeae7ab3427d8f2ca164da3f62a0f2

SO pls do let me know if there's any real solution for this cause I really don't want to go with position fixed and I want glass morphism to go with this background and have a good view on the scroll.

reddit.com
u/Pradeeppilot — 3 days ago
▲ 0 r/css

Just realized how Figma connects to Dev work. Is this how it actually works in companies?

Hey everyone,

I'm a beginner, and before opening or knowing about Figma files, I used to think I just had to guess the width, colors, fonts, sizes, and styles by looking at an image. Honestly, it was getting so frustrating and making me feel like I was falling backward because of all the guessing.

Then, while doing Frontend Mentor challenges, I discovered Figma. It completely blew my mind to realize how the actual pipeline works: a UI/UX designer creates the interface with all those exact spacing, padding, and styling specifications already laid out, and then the developer replicates it in code.

I have a few questions for the experienced devs here:

  1. Is this exactly how things work in a professional company, or do things change a lot in the real world?

  2. With how good AI is getting, if you just give a complete Figma file to an AI tool, can it accurately build the whole frontend? What are the limitations keeping companies from just doing that today?

  3. If this is how things actually work, what is the right way to learn as a beginner? What do you want us to focus on the most when we are practicing?

Would love to hear insights on how your day-to-day workflow looks with designers!

reddit.com
u/Prestigious_Owl_1601 — 3 days ago
▲ 0 r/css

Kinda wild how ChatGPT is changing the way we read Figma specs now. You still manually inspecting or letting AI do the CSS

I've been messing around with using ChatGPT and Perplexity to translate Figma specs into CSS, but honestly it’s a whole different game now compared to even a year ago. Manual pixel-peeping? That’s pretty much dead for standard layouts tools like Figma Make and Code Connect auto-generate semantic CSS/HTML, and stuff like Builder.io or Locofy just translates variables straight into Tailwind. For the AI part: GPT-4o and Perplexity Pro are actually solid for nuanced styling these days if you’re getting flaky output, it’s probably because your prompt’s too vague rather than the model sucking. Perplexity’s more for digging up spec context, not a direct code translator unless you’ve set up custom plugins. So yeah, I’m getting usable code now with a bit of prompt finesse. Anyone else finding it smooth sailing, or still tweaking more than coding from scratch?

u/azdoldio — 3 days ago
▲ 1 r/css

I've just completed a front-end coding challenge from @frontendmentor! 🎉 You can see my solution here: https://www.frontendmentor.io/solutions/sociallinksprofile-j2jrHFHOqB Any suggestions on how I can improve are welcome!

u/Prestigious_Owl_1601 — 3 days ago
▲ 0 r/css

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

Its a single page app, with position absolutes, I use px instead of rem, etc. Yes I now about responsivity -- though I am coding on my phone.

The problem is not that it looks bad, just very small on 1440p screens. What can I do? Obviously I don't want to have to rewrite everything (it's perfect on 1080p screens). Any help is appreciated, thanks.

reddit.com
u/Trick_Form_4562 — 4 days ago
▲ 31 r/css

Made a visual reference for every CSS gradient type (linear, radial, conic, repeating) with copy-paste code

https://codepen.io/programoreno/pen/dPNVwJe

I kept forgetting the exact syntax for conic-gradient and repeating-radial-gradient so I ended up building a little reference page with actual rendered examples instead of just reading MDN for the tenth time.

It covers linear, radial, conic, and the repeating versions of each, plus a section on layering multiple gradients together (like the dark overlay trick for background images) and a pie chart made purely with conic-gradient stops. Every card has the rendered result next to the exact CSS, and I added a copy button so you don't have to select text manually.

Also threw in a color palette section at the bottom with all the hex values used, in case anyone wants to steal a combo.

Curious if anyone has gradient tricks I'm missing, especially around performance with multiple layered radial-gradients, I haven't stress tested that yet.

u/Brief-Industry-7012 — 4 days ago
▲ 32 r/css+39 crossposts

Made a free iOS app to open and read raw Markdown (.md) files on iPhone/iPad — handy for peeking at Logseq pages outside the app

Logseq stores everything as plain .md files, but if you ever open one of those files directly on iOS (from Files, iCloud, Dropbox, a backup, etc.) you just get raw text. I built a small viewer to read them rendered on a phone.

Md Preview:

• Renders GitHub-Flavored Markdown — headings, tables, task lists, footnotes

• Code blocks with syntax highlighting, plus LaTeX math and Mermaid diagrams

• Opens .md / .markdown / .mdx / .rmd / .qmd from Files or the Share Sheet

• 100% on-device — no account, no uploads, no ads, no subscriptions

Free on the App Store: https://apps.apple.com/app/id6760341080

Details: https://markdown.cybergame.ai/

Not a Logseq replacement at all — just a quick way to read loose .md files when you're away from the desktop app. Curious how you all read your graph on the go.

u/Fujima4Kenji — 5 days ago
▲ 4 r/css+2 crossposts

custom cursor not showing

Hai, I wanna have a custom cursor 4 my site on Neocities ( https://phlygm-planet.neocities.org/ ) but it's not showing. I attached a ss of my current CSS code, I honestly have no idea why it's not showing up. Should I have something in my HTML? All the tutorials I looked at only mentioned CSS code, Ive tried a few of them and nothing seems to work. The cursor stays as the default one.

u/BagThin2305 — 4 days ago
▲ 9 r/css+1 crossposts

What are some ways I could learn html efficiently I don't care about speed I just want to learn it good speed is a bonus.

You could recommend textbook PDFs or anything.

reddit.com
u/Wonderful-Pie9017 — 5 days ago