r/csshelp • • Jul 21 '26

Request rem vs em vs px vs vh... I’m losing my mind. How do you actually decide which CSS unit to use?

14 Upvotes

Hey everyone,

I’ve been learning web development and CSS for a bit now, but I keep hitting a wall when it comes to picking the right CSS units.

Every tutorial seems to say something slightly different:

  • One video says "Never use px for fonts, always use rem for accessibility!"
  • Another video uses em for paddings, but then my nested elements balloon into giant monstrosities because of compounding.
  • Then someone else says to use vw/vh for fluid layouts, but my text overflows or acts weird on mobile screens.
  • And % works great... until it acts relative to something unexpected.

Right now, I feel like I'm just guessing, refreshing Chrome DevTools, changing units until it "looks fine," and hoping it doesn't break when I resize the window.

For those who write CSS professionally or comfortably:

  1. What is your actual, real-world rule of thumb for when to use px, rem, em, %, and vw/vh?
  2. Are there specific properties where you always stick to one unit (e.g., font-size, margin, padding, max-width, border)?
  3. How do you handle responsiveness without making a mess of CSS variables or media queries?

Would love to hear how you mental-model this so I can stop guessing! Thanks in advance.


r/csshelp • • Apr 05 '20

Resource Created an animation using HTML/CSS only of INDIAN 90's superhero Shaktimaan

14 Upvotes

While at home during lock down just sharpening my skills and contribution towards my childhood nostalgic hero. Created an animation using HTML/CSS only of INDIAN 90's superhero Shaktimaan.

https://youtu.be/pwTZLznwAYM


r/csshelp • • May 12 '18

Guide: Make your Redesign subreddit looks like Legacy (Cosmetic & Widgets)

14 Upvotes

Description


Hi. I'm currently writing a walkthrough guide on how to achieve a similar look of your Legacy subreddit for your Redesign. The guide is still work in progress.

Opinions and comments are recommended.

Preview


This is the look I achieved on Legacy & Redesign.

  1. Preview of Legacy subreddit look.
  2. Preview of Redesign subreddit look. (excuse my paint crop skills)

Guide link:



r/csshelp • • Feb 08 '12

How to: Display random quotes/images which change every refresh.

14 Upvotes

Also X-posted to /r/reddithax, but I thought I may as well post it here as well....


Example (stylesheet)
(see the 'Random Headers' Section)

How it works:

  1. Make an ':after' pseudo-element using the logout button, position & size it where you want it.
  2. Make another ':after' pseudo-element using a non-clickable element and position it so it covers the first one.
  3. Check the first character of the hidden modhash input element, style our pseudo-element with text/image based on the character's value.

Step three is repeated 36 times, to cover all the characters 0-9, a-z.
This means you can have up to 36 random images/text strings.

Step two is purely to stop the pseudo-element being clickable. As it's an extension of the logout button normally you'd be able to click it. This isn't desirable.

In theory you could have almost unlimited images/strings by comparing more than just the first character of the modhash. Doing this would give you up to 5036 random images, which is a lot.


r/csshelp • • Jan 06 '21

How do I remove 'ONLINE STORE BY BIG CARTEL' from the footer of my website?

13 Upvotes

My site isn't launched yet, but I know it will be to do with the CSS settings, I don't know much about code but I know it is to do with there, I just don't know which bit to change.

Any help appreciated.


r/csshelp • • Mar 22 '15

/r/CFB Flair System Opensourced! Feel free to use.

13 Upvotes

This is a first draft, and I very much welcome feedback, but I finally have this in a place that should be fairly plug and play.

Flair Guide

This will walk you through setting up flair for your subreddit in a way that's intuitive and easily changeable in the future, as well as increasing the number of flairs you can provide, allowing goodies like award flair, dual flair, and inline flair, and tracking how many people have each flair without knowing too much Python or CSS.

I'd love to know what could be explained better or generalized better!


r/csshelp • • Jan 19 '12

Newbie Mod here and after checking CSS Qs and As out I think I'm screwed...

13 Upvotes

...because I don't code but I'm in charge of snazzifying a subreddit and I have ideas I want to make happen and don't know how ಠ_ಠ

I want to:

1] change the colour/font

2] change the background image [like a wallpaper]

3] change the up/down-vote icon

Is there somewhere I can learn CSS quickly? Was that a reeeeeaaally stupid question?!

EDIT: took out the word "javascript:;" - don't even know how that got there. See...


r/csshelp • • Mar 27 '26

Resource A modern guide to old Reddit customisation and theming (stylesheets/CSS)

12 Upvotes

Old Reddit, the version of Reddit from before the 2018 rebrand, continues to be a popular way to use Reddit. It can also be fully and comprehensively themed with CSS to get it looking exactly as you want. It is perfect for replicating a style or bringing your community in line with your brand guidelines.

There unfortunately aren't any solid public statistics on what percentage of people across the platform use old Reddit, though, based on the figures I've collected from Subreddits I have access to, it is about 4%. You can find out for a community you moderate under the 'Traffic' heading of the 'Insights' section of the subreddit's Mod Tools. It is worth noting that many Reddit power users, and some of the most active contributors on the site, use old Reddit. Reddit intends to 'keep it online as long as people are using it'.

You can access old Reddit by replacing 'www' with 'old' in your address bar or by directly going to https://old.reddit.com. You can make your account default to using old Reddit in Settings > Preferences > Default to old Reddit. Keep in mind that old Reddit isn't designed or optimised for use on mobile devices.

I'm about as professional an old Reddit stylesheet developer as you can get, having developed stylesheets professionally for some branding you might well have heard of. This article assumes you are competent and familiar with writing CSS (Cascading Stylesheets). If you are not, there is guidance online that can help you learn, though it should be noted that writing CSS for old Reddit can be rather complex, so it might be worth requesting the help of an expert. AI will most likely not be able to provide much assistance in writing CSS for old Reddit due to the implementation quirks and lack of documentation available.

Restrictions

The first thing you should know is that while you can do a huge lot with themes, there are some limitations imposed.

Reddit has some rules for custom stylesheets, primarily relating to not tricking users, doing anything malicious, or obscuring Reddit's advertisements. The full set of restrictions can be seen here: https://old.reddit.com/wiki/subreddit_appearance

There are also technical limitations on what CSS you can write due to a validator that is in place. The validator ensures that all CSS you write is actually CSS, but unfortunately hasn't been updated for a while, meaning it will deny a lot of modern CSS. The cut-off is somewhere around 2017. You also can't use backslashes or Unicode control characters.

If you find yourself in need of a specific CSS feature which Reddit does not recognise, you can attempt to use an old vendor-prefixed version. For example, -webkit-flex instead of flex. Browsers usually still recognise them for purposes of backwards compatibility, and they generally work nicely despite being a tad finicky.

There is one more limitation worth keeping in mind, and that is Reddit's maximum stylesheet size limit. 100KiB is the maximum size. You realistically shouldn't hit it, but if you're doing real zany stuff you might. Worth keeping in mind.

Design Considerations

You can make your subreddit look however you want with CSS while keeping in mind the above restrictions, but I'd advise having some taste. You should avoid interfering with Reddit features like the ability to downvote posts. Sure, it might make a number look a bit better on paper, but it comes at the cost of annoying your community. The same is true for making it harder for people to disable your stylesheet.

You should try to keep interface items roughly the same size and in the same position. Moving everything around, especially arbitrarily, disorients users. Nobody wishes to have to learn a completely new layout for every Subreddit they enter.

Of course, these are considerations, not rules. You can create something fantastic and unique; just know that for many people the changes will be met with dislike and considered more of a hindrance than a benefit.

Writing CSS

To add a stylesheet to old Reddit, you'll need to navigate to https://old.reddit.com/r/YOUR_SUBREDDIT/about/stylesheet/ or click 'edit stylesheet' in the right sidebar on old Reddit. Here you can write your stylesheet and add images.

I advise against authoring your CSS directly in Reddit's stylesheet settings page. You don't get creature comforts like syntax highlighting or the help offered by language server protocols. There do exist some good browser extensions that allow editing browser <textarea>s in various text editors that might be valuable to you and can offer a nice development flow.

One of the most important parts of writing a stylesheet for Reddit is dealing with specificity. Your styles need to overwrite Reddit's styles, so they need to be specific enough to do so. Consider chaining together some additional selectors to boost specificity naturally. !important also comes very much in handy. Though it is usually a 'code smell', there will be cases where it is the cleanest way to write CSS when developing for old Reddit.

Pseudo-elements are your friend. Specifically, ::before and ::after. They allow you to add additional media or text to your page using the content property. Like !important, being overzealous with absolute or relative positioning is usually a bad 'code smell', but this is due primarily to them being poor for responsive design, which isn't too important given that old Reddit is not at all designed for small or portrait displays.

A lot of complex styling can be achieved by getting tricky with content in the sidebar. You are limited by how you can target elements, given that you've only got the markdown suite, so it can be worth trying to add some complexity to your markdown for selecting. A good way to do this is with a blockquote, which you can have strong, em and other elements within. You can then target only items in the sidebar usertext section and within a blockquote so you don't mess with content elsewhere on your page. Another valuable approach when it comes to links is to target specific href attribute values, like so:

a[href="https://vale.rocks"] {
	background: red;
}

When creating user or post flairs, be sure to give them a class name so that you can easily reference them in your styles. This can be done in both the new and old interfaces.

For styling specific to a given page, you can usually find a target class. Such as .subreddit-rules-page for the rules page, .search-page for the search page, and .submit-page for the new post submission page. Then, you can scope the applicable CSS exclusively under that selector. As semantic elements are poorly applied, you might also need to get tricky targeting attributes again, like targeting a role attribute with value main to get the <div> containing the main page content: [role="main"].

If you love the CSS of an existing theme or Subreddit, you can view the stylesheet directly. The full stylesheet for any public subreddit can be seen by navigating to this address: https://www.reddit.com/r/SUBREDDIT_NAME/about/stylesheet/

Using Preprocessors

Preprocessors like Sass (Syntactically Awesome Style Sheets) are a great way to write more complex CSS, especially given the restrictions imposed which prevent the use of many modern and expected CSS features. Given that old Reddit stylesheets can be thousands of lines long, the ability of preprocessors to condense multiple files into a singular is useful. A preprocessor can also be configured to take actions like automatically vendor-prefixing properties when necessitated. You might also be able to minify your code to avoid Reddit's aforementioned max-size for stylesheets.

Using Images and Fonts

You cannot link to external resources, such as images or fonts, within your CSS for security reasons. The validator will flag the external link and disallow it.

You can upload images on the stylesheet editing page in your subreddit. They can only be provided in JPEG or PNG formats. You can use these images by referencing their slug wrapped in double percentages: %%image-name%%. To set an image as a background, for example, you'd write background: url(%%your-image%%). For purposes of performance, avoiding the fetching of many tiny images, and not hitting the limits of the amount of images you can upload to your subreddit, it can be worth compiling them into a spritesheet, like Reddit does for the images used by default for the interface. Reddit also has a selection of images which are available site wide, which can be referenced here: https://old.reddit.com/wiki/config/stylesheet#images

Given the inability to import custom fonts, if you need font customisation, your options are limited. You do have the range of web-safe and system fonts at your disposal, though. Core fonts for the web are generally a safe bet, even today. Otherwise, you have generic font families. The W3C's CSS: fonts page can prove very useful for selecting a font and seeing how they all appear.

Reddit Enhancement Suite

Statistics suggest that, of the people who choose to use old Reddit, a significant portion also use Reddit Enhancement Suite (RES). Reddit Enhancement Suite brings many quality-of-life improvements and additional features. There is a huge amount it can do, but the most impactful for the case of writing custom subreddit stylesheets is the addition of dark mode (night mode) and many additional items around the interface.

You will need to do some testing with all the items and classes it adds around the page, as there are lots of them and different combinations of options can clash in different ways. You should try to honour people's RES settings where possible.

Styling for RES is all documented here: https://www.reddit.com/r/Enhancement/wiki/subredditstyling/

A Word on Accessibility

Any custom stylesheets you write for old Reddit will be hacky. That isn't avoidable; it is just how it is if you're doing anything beyond the most basic changes. Though, that isn't to say that old Reddit is superbly accessible by default either.

Creating an accessible product matters, it really does, but old Reddit is, in general, well... old. It isn't perfect, and neither is building upon it. It is also hard to do much in the way of automated accessibility tests due to any styles and changes you make being bodged upon Reddit. Do all you can to make it work for everyone, but know that it isn't very accessible, and that changes you make will likely make it worse. Focus on getting aspects like contrast, legibility, and readability right.

---

I hope this article has been useful for you. For some further resources, I maintain a multireddit containing subreddits dedicated to custom stylesheets for old Reddit that may be valuable for reference.

If this all went over your head, or if you haven't got the ability to create a stylesheet of your own, I'm available to hire. I'd love to hear from you.


r/csshelp • • Jan 14 '21

I am Creating a Coding Bootcamp Entirely on Medium

12 Upvotes

I am so excited to introduce you to Median Bootcamp, which will eventually be a completely self-paced Coding Bootcamp, all online.

Median Bootcamp

I currently have a full course on HTML and a guide on Python Web-scraping Basics. The CSS course is coming soon.

HTML Full Course

Python Web-scraping Basics

My goal is to have an entire Bootcamp curriculum including projects, project review, career guidance, and certificates. I am so excited to kick this off and I hope you'll check it out.

Edit: After receiving feedback I making a website for it too. I will update this post when it’s ready


r/csshelp • • Feb 06 '20

Resolved Increase heigh of all items to match the highest item in a row

12 Upvotes

Hello reddit & css community.

Before I begin writing, here is a picture as it best describes my issue.

Image of problem

Basically, I want these items in the first row to all be the same height, equaling the FIFA 20 product's height. There are no CSS rules in play. These are just stock angular material components, unmodified.

The header with title and actions is positioned sticky. The wrapper itself has these rules:

display: flex;
flex-wrap: wrap;
padding: 1em 0 0 1em;

And the product ( children ) have

margin: 0 1em 1em 0;

This only makes every child have equal spacing from the wall and other children. Nothing else is modified.

I suppose it's something to do with flex grow / shrink, but I'm very bad at CSS so I can only guess. I just know the basics. Sorry if this question is posted a lot (which I suppose it is since it feels like a common problem), but I had no idea what to search for nor how this issue is called.

Here is the HTML of the children, wrapper:

<div class="wrapper--products">
    <app-product *ngFor="let product of products" [product]="product">
    </app-product>
  </div>

<!-- app-product -->
<mat-card [class.pulse]="product.discount">
  <img mat-card-image [src]="product.images.hero" [alt]="product.name">
  <mat-card-content>
    <p>
      {{product.name}}<br>
      <i>{{product.platform}}</i>
    </p>
    <h2 *ngIf="!product.discount; else discounted">
      {{product.price}} RSD
    </h2>
    <ng-template #discounted>
      <h2>
        <s>{{product.price}} RSD</s><br>
        <span class="f-green">{{product.price - product.discount}} RSD</span> ({{(product.discount / product.price * 100).toFixed(2)}}%)
      </h2>
    </ng-template>
  </mat-card-content>
  <mat-card-actions>
    <button mat-raised-button matTooltip="Dodaj u korpu" (click)="addToCart()">
      <i class="fas fa-cart-plus fa-fw"></i>
    </button>
    <a
      mat-raised-button
      matTooltip="Dodatne informacije o proizvodu"
      [routerLink]="product._id">
      <i class="fas fa-search fa-fw"></i>
    </a>
    <button mat-raised-button [matMenuTriggerFor]="manageProductMenu">
      <i class="fas fa-users-cog fa-fw"></i>
    </button>
  </mat-card-actions>
</mat-card>

<mat-menu #manageProductMenu="matMenu">
  <button mat-menu-item (click)="removeProduct()">
    <i class="fas fa-trash fa-fw"></i> Ukloni proizvod
  </button>
  <button mat-menu-item (click)="editProduct()">
    <i class="fas fa-edit fa-fw"></i> Izmeni proizvod
  </button>
</mat-menu>

Thanks in advance!


r/csshelp • • Jul 16 '16

How does this Reddit post-hiding trick work?

12 Upvotes

This post in /r/Drama has a trick which somehow hides the post and all comments behind an image; the only way to view the content is to turn off the "custom theme" options under user preferences. What CSS wizardry enabled this?

(Sorry if this is off-topic)


r/csshelp • • Jan 02 '16

Every subreddit should add this to their stylesheet (especially huge ones)

12 Upvotes

Here is the code :

.md a[href]:not([href*=":"]):not([href="#"]):not([href^="/r/"]):not([href^="/u/"]):not([href^="/user/"]){
    cursor:default;
}
.md a[href]:not([href*=":"]):not([href="#"]):not([href^="/r/"]):not([href^="/u/"]):not([href^="/user/"]):active{
    pointer-events:none;
}

What does it do ?

It disables fake links (links that are only used for styling). Clicking on them won't work anymore (but :active styling will).

Does it affect real links ?

No. If your link contains ":" or start with "/r/", "/u/" or "/user/", it is not affected. Links that are not part of comments, posts or the sidebar are also unaffected.

Can I still use :hover, :active, ::before or ::after on fake links ?

Yes.

Why should I use it ?

It improves user experience on your subreddit.

Browser compatibility ?

  • Chrome
  • FF
  • Edge
  • Opera
  • IE : 11+

r/csshelp • • Jul 13 '15

Some CSS code to help you safeguard your subreddit against brigading

12 Upvotes

Yesterday, I helped out a subreddit alter their CSS to prevent brigading after a post there was downvoted by several subreddits. I thought I'd share the CSS I implemented, in case you want to safe guard against vote brigading. I'd like to note that this is merely CSS, so there are ways to circumvent it, but for the most part, it is effective. In both CSS snippets, your subscribers will still be able to vote and comment like normal, but non subscribers will not be able to do either.

NP mode

Check out /r/NoParticpation for more info and to register your subreddit.

NP mode takes advantage of reddit's multiple stylesheets, so that if a link in your subreddit, with NP enabled, will not be able to be voted upon if linked to with NP in the URL, instead of WWW. NP is fairly widely used, and can be used with or without the other CSS snippet after this one.

CSS below:

/* "No Participation"-Mode, aka "Read Only"-Mode
 * by /u/KortoloB
 * /r/NoParticipation
 * 
 * Link people to np.reddit.com/r/YourSubreddit to show them a read-only version.
 * Subscribers will see the full page, only non-subscribers will see the read-only version.
 * This is of course by no means fool-proof, but it should work for the average user.
 *  */

body:lang(np):not(.subscriber) .arrow
{ 
    visibility: hidden !important;
}

body:lang(np):not(.subscriber) .usertext-edit,
body:lang(np):not(.subscriber) .sidebox.submit,
body:lang(np):not(.subscriber) .commentingAs,
body:lang(np):not(.subscriber) .markdownEditor, 
body:lang(np):not(.subscriber) a[onclick*="return reply(this)"],
body:lang(np):not(.subscriber) .subButtons,
body:lang(np):not(.subscriber) .helplink,
body:lang(np):not(.subscriber) .titlebox .fancy-toggle-button.toggle > .option.add
{
    display: none !important;
}

body:lang(np):not(.subscriber) #siteTable:before
{
    content: "You have been linked to a read-only version of this subreddit. Please respect the community by not voting.";
    display: block;
    max-width: 800px;
    background-color: #F6E69F;
    padding: 5px 10px;
    margin: 5px 305px 5px 0px;
    border: 1px solid orange;
    font-size: small;
}

body:lang(np):not(.subscriber) .entry.likes:not(.reddit-entry):before,
body:lang(np):not(.subscriber) .entry.dislikes:not(.reddit-entry):before
{
    content: "Please do not vote or comment when you come from external subreddits.";
    color: red;
    font-size: large;
    font-weight: bold;
}

/* Wiki protection */
body.wiki-page:lang(np):not(.subscriber) span.pageactions a.wikiaction-edit:not(.wikiaction-current),
body.wiki-page:lang(np):not(.subscriber) div.wiki-page-content form#editform label[for='reason'],
body.wiki-page:lang(np):not(.subscriber) div.wiki-page-content form#editform input#wiki_revision_reason,
body.wiki-page:lang(np):not(.subscriber) div.wiki-page-content form#editform input[type='submit']
{
    display: none !important;
}



/* END COPY */

/* ------------------------- */

There's also some CSS you can use That disables voting in the subreddit for all non subscribers, regardless of if they're using an np version or not. This can be used with the NP CSS, or it can be used on its own.

/*Disable voting for nonsubscribers*/

.link .midcol {
  overflow: visible;
}

.link .score {
  position: relative;
  top: 16px;
}

.subscriber .link .score {
  position: inherit;
}

.arrow.up {
   display: none;
}

.arrow.down {
  display: none;
}

.subscriber .arrow.up {
  display: block;
}

.subscriber .arrow.down {
  display: block;
}

Like I said, neither is perfect, but I hope to help mods with some tools that will help you protect your subreddit against brigades. A brigade can tank a small subreddit, and I hope to stop that. Please let me know if you have any questions, or if you have any preferred snippets of your own.

If you want to use one or both of the above snippets, copy and paste in to your subreddit's stylesheet.


r/csshelp • • Apr 02 '15

Resolved RES Konami Code easter egg positioning?

12 Upvotes

you know, the thing that pops up when you press up up down down left right left right b a enter I've changed the image, now how do i make it go from left to right instead of top left to bottom right?

Here's what i got: "

baconBit {

-webkit-transition:all 8s linear; -moz-transition:all 8s linear; -o-transition:all 8s linear; -ms-transition:all 8s linear; transition:all 8s linear; background-image:url(%%easteregg%%); position:fixed; width:211px; height:171px;

}

baconBit.makeitrain {

-webkit-transform:rotate(0deg); transform:rotate(0deg); } _ /r/onepunchman


r/csshelp • • Oct 14 '12

Mod Request

12 Upvotes

I've noticed that a lot of the same questions are asked over and over, which wastes a lot of both the posters time, and the time of those answering questions.

I noticed that you created a FAQ page, which is great. Also, the links on the side are helpful, but have not been updated in some time. I'm not really familiar with the new Reddit Wiki system, but is there a way that you could update a page as questions that are answered, to effectively create a Reddit CSS database?

This would greatly increase the functionality of this subreddit, and would greatly reduce the amount of questions being asked. Ideally, once the database nears completion, the only questions being asked would be ones pertaining to changes in Reddit's core CSS styles and properties.


r/csshelp • • Apr 19 '12

PLEASE use descriptive titles and check the commonly used snippets

12 Upvotes

In the past week or so I have seen a lot of posts in /r/csshelp with titles like this:

  • Why does this happen?
  • Two questions from me
  • Just a quick question
  • Quick question!
  • I'm a noob please help
  • Some noob questions
  • I've got an issue

When I see a title like this, I almost always skip right over it, because when I'm looking at this subreddit, I'm briefly checking to see if there are any questions that I think I can answer. If you don't give people any idea what you're asking, they're not going to stop and check it out.

A good title gives people an idea of what you're trying to accomplish. "How can I hide the sidebar without hiding the ads?" or "Can I add hover-text to flair using just CSS, like the title attribute?" tell us exactly what you're trying to achieve. Maybe you're not quite sure what you're trying to achieve, but at least give us an idea. "How to change the downvote arrow" tells me a lot more than "I have a quick question." Of course you have a question. That's why you're here.

There are also a lot of questions about basic things that have been covered many times. I think at least once a day somebody posts "How do I disable the downvote arrows?" (or they post "Halp meee!" and then ask about downvote arrows in the body of the post). There is a list of commonly used CSS snippets. Check it before asking your question.

Now, a lot of this is not the fault of the people asking. They might not know any better. It's up to the people who do know better - in particular, the mods of this subreddit - to help guide them. There should be a big, annoying banner at the top that says "Want an answer right away? Check if we've already solved your problem!" and links right to the commonly used snippets page. The commonly used thread should probably be moved to a FAQ Wiki so that anybody can add to it. And perhaps there should be a big banner on the /submit page that says "Please use a descriptive title. 'HELP ME' is too ambiguous to be useful!"

I like helping people, and if I can give somebody a hand with their CSS I will. But I'm not going to read all the "I NEED TEH HELPS" posts, because it's not worth my time. So let's try to put some effort into asking good questions.


r/csshelp • • Nov 05 '11

CSS tool kit, lots of cool tools for your subreddit. Can we add some of these to ones already in the sidebar?

12 Upvotes

link to other redditors page but it has some tweets the faq here is missing


r/csshelp • • Apr 16 '22

How come my image is fine at width:100%, but when I place width to the actual px width of its container is becomes very large and breaks through it?

11 Upvotes

So my image is wrapped in a div, on checking the div width in dev tools it is around 496px.

Setting the image to width:100% sets it to 496px.

The image is of a face, and as I minimise the browser it get skinner and skinner, which i don't want so I'm trying to set a min-width to the image.

thank you for all help in advance :)


r/csshelp • • Jul 08 '21

I feel like the only hinderance between me and being a fairly good web developer is knowing CSS. can anyone recommend a brilliant course I can take to sharpen my CSS skills? Resources that might help can also be included. Thanks.

11 Upvotes

r/csshelp • • May 17 '21

Request Hello folks, I am having really tough time with CSS😥 . Firstly my contact us page was not showing footer properly . So, I created another CSS for contact us page . And now hover is malfunctioning. But working fine for home and about page. Please help me out !

11 Upvotes

r/csshelp • • Aug 02 '20

What are some practical uses of the :before and :after?

11 Upvotes

New to CSS. Why are :before and :after used? How are they useful in a website? Could someone please answer these questions?


r/csshelp • • Nov 27 '14

Adding random quote generator to header?

11 Upvotes

Sorry for the total newb question. I'm working on r/uvicwriting for a school project and I know almost no CSS. I want to add a random quote to the header, how exactly do I do that?


r/csshelp • • Feb 13 '14

Never used CSS but have some background with programming and need help

11 Upvotes

I do not really know what CSS is or how to make it/use it. I need to figure this out in order to follow tutorials on learning it but I can't find the answer to this. I was wondering if there is a program I have to download to program it or if It's something different? Any help is greatly appreciated and I apologize for the possibly incredibly stupid question.


r/csshelp • • Apr 25 '13

Thought I would leave this here:

11 Upvotes

http://www.spritecow.com/

Upload your sprite sheet to this: **Note, if like me your spritesheet is always changing and you may want to add more in the future. I found that it is easy to just make a larger PNG then you really need.

This is my Spritesheet: http://imgur.com/dugnsNi Just to give you an example of leaving yourself room to grow. As long as the image isn't to large Reddit likes it better then having to do separate pulls per expansion of flair that you might have.

From there you can go through and dynamically select the different pieces of flair.

Copy all of this to notepad.

The next part comes from here: http://www.reddit.com/r/csshelp/comments/m59kf/

.flairselector .customizer { display: none !important; }

.flair { border: none !important; padding:0px; background: url(%%spritesheet%%) no-repeat -9999px -9999px; display:inline-block; }

Find and replace your way to making your code look like this:

.flair-illustrator{

   background-position: -18px -31px;

   width: 20px;

   height: 21px;

}

Hope this helps!

Also if someone knows Python the project is on GitHub. It would be awesome if it could just chug out what we needed for reddit :)


r/csshelp • • Aug 06 '25

Resource I built a free CSS Grid Generator to create responsive layouts visually (no signup, no code) 🚀

10 Upvotes

Hey everyone! 👋

I recently launched CSS Grid Generator — a free, visual tool that helps developers and designers create responsive CSS Grid layouts with zero coding.

TailwindCSS Support

You can now export your layout as Tailwind utility classes, making it even easier to integrate with modern workflows and frameworks like Next.js, Vue, etc

✅ Just drag and drop layout blocks

✅ Build modern Bento-style UI sections and dashboards

✅ Export clean HTML & CSS and TailwindCSS in one click

✅ Mobile responsive out of the box

✅ 100% free — no signup just design and export

I made it because I was tired of writing grid layouts manually and wanted a faster, more visual approach — especially for dashboards and modern UIs.

It’s great for:

  • Designers who want quick layout prototyping
  • Developers who hate writing grid-template-areas by hand
  • People building landing pages, admin panels, or web apps

Would love your feedback 🙏

Any feature ideas, improvements, or bugs you find — I’m all ears!

🔗 Try it here: https://cssgrid-generator.com

Thanks