r/csshelp • u/IAmAnAnonymousCoward • Sep 10 '11
Replace "+ frontpage" with "subscribe" and "- frontpage" with "unsubscribe"
Any help is appreciated.
r/csshelp • u/IAmAnAnonymousCoward • Sep 10 '11
Any help is appreciated.
r/csshelp • u/[deleted] • Jun 13 '11
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 • u/thesearenotthehammer • Oct 13 '10
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 • u/metalreflectslime • Sep 15 '23
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:
These are my icons:
The upvote and downvote icons are not rendering on my Subreddit.
What is wrong?
Thank you.
r/csshelp • u/IHateTheSATs • Dec 14 '21
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 • u/lean_n_cuisine • Dec 11 '21
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 • u/codeAtorium • Aug 05 '21
r/csshelp • u/IvyGold • Jul 20 '21
r/csshelp • u/Necrorifter • Jul 09 '21
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 • u/ArturUwU • Jun 13 '21
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 • u/GlitteringMeaning830 • May 13 '21
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 • u/Space-Butterfly68 • Apr 15 '21
I want to make my nav bar have a slight wave like this website:
How would I go about this?
Thanks for the help!
r/csshelp • u/qbikmusik • Mar 03 '21
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 • u/jadesalad • Feb 07 '21
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 • u/[deleted] • Feb 05 '21
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 • u/maxzutter • Feb 04 '21
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/csshelp • u/mock_coder • Dec 29 '20
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 • u/overlord479 • Nov 01 '20
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 • u/DbErving • Oct 19 '20
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 • u/[deleted] • Oct 15 '20
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 • u/NEUBADMAW • Sep 28 '20
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 • u/DonkeyWorker • Aug 24 '20
r/csshelp • u/testnogga • Jul 09 '20
I'm trying to add a border around the ads on my new subreddit. What is the CSS class for reddit ads?
r/csshelp • u/Regis_Casillas • May 12 '20
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 • u/[deleted] • Mar 01 '20
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.