r/csshelp • • Sep 10 '11

Replace "+ frontpage" with "subscribe" and "- frontpage" with "unsubscribe"

8 Upvotes

Any help is appreciated.


r/csshelp • • Jun 13 '11

How do I give my subreddit a "Trophy Case" in the sidebar similar to r/trees and r/circlejerk?

8 Upvotes

I've looked at the css for r/circlejerk and there is a section of the code labeled "Trophy Case" that I believe I can modify to suit my purposes, however I'm a complete css amateur. It looks to me like some sort of code in the sidebar as well is required to make this work, since I can't find the text "Over the line!" or "Reddit Platinum" at all in the css.

Could someone help me out and explain to me what would need to be in the sidebar for this to work? I want to put a trophy case in several of my subreddits but I need to understand this before I can do so. Thanks!


r/csshelp • • Oct 13 '10

Default Subreddit to "What's New" instead of "What's Hot"?

8 Upvotes

Is there any way to make a subreddit pull the New tab instead of the Hot tab?

I manage a small community with a very small number of posts. This would help us immensely as we have quite a few "hot" but old posts that stay near the top while the newer stuff can get missed.


r/csshelp • • Sep 15 '23

Resolved I want to use CSS on Old Reddit to change the upvote and downvote buttons on /r/PrincessPeachShowtime.

7 Upvotes

I want to use CSS on Old Reddit to change the upvote and downvote buttons on /r/PrincessPeachShowtime.

What is the correct CSS code for it?

This is my code so far:

https://imgur.com/a/juTR1Il

These are my icons:

https://imgur.com/a/ZTaTB5k

The upvote and downvote icons are not rendering on my Subreddit.

What is wrong?

Thank you.


r/csshelp • • Dec 14 '21

Request class and ID differences ?

7 Upvotes

starting to leanrn more frontend because ive spent a lot of time on the backend. I came across this right here:

     <h5 class = 'author-class' id = 'author-id'>By: Stacy Gray</h5>

now to my understanding, because id is more specific, Stacy Gray will be in the color of cornflower blue right ?

    h5 {
      color:yellow;
    }
    
    .author-class {
      color: pink;
    }
    
    #author-id { 
      color: cornflowerblue; 
    }

however, my problem is that, if the ID is already going to denote what the color is going to be, why can i just take out class = 'author-id' and just leave it as id = ""; ?


r/csshelp • • Dec 11 '21

Request 95% of my homepage loads with all CSS applied, but I have a few random divs that load with the whole page as normal, but then apply padding late enough to be visibly noticeable where you can see it shifting in real time. Any tips for preventing this? This is Wordpress, if it matters.

7 Upvotes

I have many many instance of padding all over the page, but for some reason it's loading a few of them way later than everything else.

I've considered this jQuery script to hide the page until it's fully loaded, but that's a last resort. I was hoping I could somehow address the root cause instead of just hiding it.

Any tips?


r/csshelp • • Aug 05 '21

Is it possible to create random mixed case (i.e. spONgEboB mOckInG tExT) with CSS alone?

7 Upvotes

r/csshelp • • Jul 20 '21

Request /r/Olympics mod here: we could really use a clock displaying the current date and time in Tokyo. Does anybody know how to do that? (We could also use someone to post an Olympic picture of the day in the sidebar, if anybody's interested in something more longterm.)

7 Upvotes

r/csshelp • • Jul 09 '21

Resolved Tooltip but cut off by another div?

7 Upvotes

I am making a button that has a small box that appears above it when hovering over the button. But that hover element gets cut off when the hover element appears over another div. Set the button position to fixed... well fix it but make the button itself fixed, so all button that is made afterward appear in the same spot. I am making a Tooltip base from Web Dev Simplified Youtuber.

https://www.youtube.com/watch?v=ujlpzTyJp-M&t=3s

Here the code I was using.

/*#region Tooltip*/.Tooltips {margin: 0;overflow: visible;background-position: center;position: relative;}.Tooltips::before,.Tooltips::after {--scale: 0;--arrow-size: 20px;--tooltip-color: #333;position: absolute;top: -.25rem;left: 50%;transform: translate(-50%) translateY(var(--translate-y, 0)) scale(var(--scale));transition: 150ms transform;transform-origin: bottom center;}.Tooltips::before {--translate-y: calc(-100% - var(--arrow-size));content: attr(data-tooltip);color: white;padding: .5rem;border-radius: .3rem;text-align: center;width: max-content;

/*Caution as this seem to make black box as wide as it can to cover text, so not good for paragraph.*/max-width: 100%;/*Caution as this allow for paragraph but limit it to original width of source, in this case, the avatar or image.*/background: var(--tooltip-color);}.Tooltips:hover::before,.Tooltips:hover::after {--scale: 1;}.Tooltips::after {--translate-y: calc(-1 * var(--arrow-size));content: '';border: var(--arrow-size) solid transparent;border-top-color: var(--tooltip-color);transform-origin: top center;}/*#endregion*/

EDITED: Okay. I got it to work. It was not cut off by div above it but rather trapped by its own div. and the overflow is set to auto, which seems to hide the hover element, and once set to visible, hover element appear just fine. I just got to make sure that I do not add too many buttons that scrollbar appear for this div.


r/csshelp • • Jun 13 '21

Weird css hover with movement

7 Upvotes

Is there any way to increase the "mouse area" of a element? I've made a div that goes up a bit after it has been hovered, but it gives results like this: https://imgur.com/gallery/Hl7I5bG when you put your cursor underneath. So is there any way to increase mouse area? Thanks in advance :)


r/csshelp • • May 13 '21

Resolved Help! Why are my grid-items so short?

7 Upvotes

Hello, I'm new to css...

Here's my problem: all the JS that I add to my grid-item-3 disappears (because the grid-item is too short... I think). I have no idea why it's defining the grid box as so short? I've attached my code, does anyone have an idea?

(I would like long columns that adapt to how much I put them if possible.)

Any help would be so appreciated!!!

.grid-container {
    display: grid;
    grid-template-columns: .5fr 3fr 3fr .5fr;
    grid-gap: 20px;
    grid-template-areas: "header header header header"
    "sidebar content2 content sidebar2"
    "sidebar content2 content sidebar2"
    "sidebar content2 content sidebar2";
    height: 100vh;
    grid-column-gap: 150px;
    grid-row-gap: 80px;
}

.grid-item-1 {
    grid-area: header;
}


.grid-item-2 {
    background-image: url("brick.png");
    background-size: 300px;
    background-repeat: no-repeat;
    position: relative;
    top: 70px;
    grid-area: content;
}


.grid-item-3 {
    display: flex;
    justify-content: center;
    align-items: center;
    display: grid;
    position: relative;

} 
.grid-item-01 {
    grid-area:sidebar;
}
.grid-item-0 {
    grid-area: sidebar2;
}

r/csshelp • • Apr 15 '21

Nav bar style question.

7 Upvotes

I want to make my nav bar have a slight wave like this website:

https://emporiumpies.com/

How would I go about this?

Thanks for the help!


r/csshelp • • Mar 03 '21

Request How to setup user flairs on my Subreddit?

7 Upvotes

I know nothing about CSS and just started up a subreddit. I want to be able to make a bunch of colored user flairs with images next to them like ive seen on other subreddits but I have no idea how to do that or where to look. Looking for any advice or tips on how I might be able to do that!


r/csshelp • • Feb 07 '21

Request Any tutorial course for creating pages with complex magazine layouts?

7 Upvotes

https://www.pinterest.ca/pin/37295503143203701/

I was asked to replicate a template like the one above in html, but I have no idea how that's remotely possible. Most landing page on the Internet are very bootstrappy and just requires you to center images and text, but some layouts are way too difficult to reproduce in html.


r/csshelp • • Feb 05 '21

Does the term adjacent selector even exist?

7 Upvotes

MDN in this link talks about using adjacent sibling combinator and the specs. talk about combinators as well but they never call the two selectors combined by the adjacent combinator a selector. People commonly call the result of the adjacent combinator an adjacent selector, is that informal use of the term?


r/csshelp • • Feb 04 '21

Resolved How do you move an element for users without RES, without changing anything for RES users?

7 Upvotes

The element is the subscriber count. It's out of place by a few pixels. I need to lower it a little, but only for users without RES while they're logged in. Everything is fine for RES users, and users without RES who are not logged in. I'd still like the subscriber count to be positioned properly for users without RES when they're logged in if possible. Thanks in advance.

r/PoliticsBipartisan


r/csshelp • • Dec 29 '20

A Simple CSS3 Accordion Tutorial

7 Upvotes

Hello everybody, in this article, we will learn how to make a beautiful accordion with HTML and CSS only! Yes! You heard that right, plain HTML, and CSS with no Javascript at all!
https://www.loginradius.com/blog/async/css3-accordion/


r/csshelp • • Nov 01 '20

Resource A comprehensive guide to html forms

7 Upvotes

Link to the video : https://youtu.be/Vl6y3dLUCR4

in this video I cover all the basics of html forms with easy to understand examples. we can use html forms to gather information from the user and send it to a server for processing or another html page.


r/csshelp • • Oct 19 '20

Request Css calculate can someone help me figure out why this guy is using calculate like this?

7 Upvotes

So i am seeing a lot of youtubers use the calculate function in css to center content in for example a header or div. Now i just need to know the details on how this is a necessity aside from just using position paddings or margin? Or is this a preference thing an if it is will are their any instances where calculate is needed? Here is a video of a coder that used calculate to center his content go to 1:09:04.

https://www.youtube.com/watch?v=kbLfWKGVsMQ&t=4233s&ab_channel=DaniKrossing

In the video basically he used a line height on a link within a header then determined he needs to calculate. Can anyone explain this logic since this guy didn't explain this clearly.


r/csshelp • • Oct 15 '20

Is there any reason i wouldn't want to use VW and VH for everything?

7 Upvotes

So im a pretty pure javascript dev messing around with learning some CSS to expand my skillset.

I struggled with it for a long while beucase everybody wants to use pixel counts or ems, or float boxes.

But I learned about the view height , and view width properties, and it makes everything so much easier.

If i want something to always be centered I just indent from the left with 50% vw - the width of the element/2

And the great thing about the VW and VH properties is they seem to resize with the browser, so your content automatically stays wherever you put it.

I'm sure there is something here im missing. But I was wondering why I wouldn't want to use these properties all the time. They make css really easy


r/csshelp • • Sep 28 '20

Request [Reddit] Changing the moderators text in the sidecontentbox.

7 Upvotes

Reddit pushed an update which added a big "message the moderators" button to the old layout. Cool and all, but this broke the custom "moderators" text in my subreddit. See the picture below.

https://i.imgur.com/MDXhdXf.png

The code that previously worked was:

.sidecontentbox .helplink + .title h1:before { font-size: small; content: "INTERNET JANITORS" }  
.sidecontentbox .helplink + .title h1 { font-size: 0}

Does anyone have an idea on how to fix this? I have very little coding experience but any help is appreciated. :)


r/csshelp • • Aug 24 '20

Can someone please help me - need to download a web page (open licence) but need to keep the css & javascript in place (opening and closing text blocks) . I've tried localizing the files and downloading the css and .js files but cannot get the features to work. Please DM me and i can send links

7 Upvotes

r/csshelp • • Jul 09 '20

Resolved What is the CSS class for reddit ads?

7 Upvotes

I'm trying to add a border around the ads on my new subreddit. What is the CSS class for reddit ads?


r/csshelp • • May 12 '20

Resolved Used CSS code on r/MaoMaoMemes, and I know have weird uncolored artifacts

7 Upvotes

These are the weird uncolored spots I am talking about: https://imgur.com/gallery/Py7krZ5

So, I typically only use new reddit for designing a subreddit, but I figured why not slap something on the old sub page. I know nothing of CSS, and I do not plan on doing any more CSS after this, but what I tried doing was changing the background color to better reflect off the show the sub is based off. I used the following code:

.content{ background:darkred; }

.entry a.title { color: lightgreen; }

.side { background: rgba(143,17,17,.0); margin-right: 0; padding: 0 5px 5px; } .titlebox form.toggle,

and while it did change the background and the side bar, I ended with all sorts of elements still showing the white background. Does anyone know what these elements are called so that I can try to address this, or better, does anyone have a blanket code that can change the color of all these elements (including the footer)?


r/csshelp • • Mar 01 '20

How do I make one of those "hover over" rules?

7 Upvotes

example

I wanted to do some CSS for my subreddit, /r/12n. I am wanting to know how I do those "hover over" rules like on /r/blursedimages and /r/fffffffuuuuuuuuuuuu.