r/csshelp • • May 09 '14

Resolved Animated header CSS3 question

9 Upvotes

I am working on /r/bestofsoundcloud and currently (with /u/gavin19's help) the .pagename a is centered in the header and replaced with an image, is it possible to have that image scroll into place from the far left side of the screen (and be z-indexed behind the snoo image) upon initial page load?

Any help is appreciated as always.


r/csshelp • • Feb 22 '14

What are some of the best subs that are "interactive" or otherwise "outside of the box"? Examples inside...

9 Upvotes
  1. /r/fauxlounge

  2. /r/canada - strictly for the hover map in the sidebar

  3. /r/woahdude - dat Carl

*Apparently r/circlejerk looked like this at one point: http://i.imgur.com/rj4XWf6.jpg


r/csshelp • • Jan 22 '14

Moderator post color

9 Upvotes

I am trying to make the title color of important posts/announcements a different color (e.g. green) but everything I've found on here hasn't worked so far.

If possible I would like the title color to change to green when a post is approved, if the titles starts with [M], or if a mod link flair is added.

Thanks for any help!


r/csshelp • • Oct 13 '13

PLEASE INCLUDE THE SUBREDDIT YOU ARE WORKING ON IN THE TEXT FIELD BELOW

9 Upvotes

I got the idea of having a counter in the comment page of a link/post and/or beside the link that counts how many clicks the link have got. Is that possible to do?

SubReddit

The subreddit is in Norwegian


r/csshelp • • Jul 25 '13

Resolved How to target classes with "/" in the name ?

9 Upvotes

Hello everyone.

So, i'm having trouble to select a class with a slash "/" in the name.

What i want to do: Give each wiki page a different sidebar image. But the only target i found for it was the class name of the page, like for this page: http://www.reddit.com/r/DragonNest/wiki/faq/archer

i'd need to use this class: wiki-page wiki-page-faq/archer

But i can't target it, if i try [...]faq\2Farcher, reddit returns an error with something like " if you need backwards slash you're doing something wrong". How can i target that class or make specific changes for that page only ?

Thanks.


r/csshelp • • Jul 11 '13

I feel like a N00B, but how exactly do you edit a subreddit's CSS?

9 Upvotes

as the title entails, how does one edit and save a subreddit's CSS code? thanks


r/csshelp • • Jun 17 '13

Resolved Is there a properly formatted/spaced version of the default stylesheet accessible anywhere?

9 Upvotes

Either in some page or file on reddit.com itself, or that's been made by anyone? It would make it a lot easier to navigate when comparing to your own stylesheet or trying to find what's causing a page element to be a certain way.

When you hit "show default stylesheet" in your own subreddit's stylesheet page you get this huge block of text with no line breaks.

If not, I'll probably make one.


r/csshelp • • May 09 '13

Hide title from sidebar like in this subreddit

9 Upvotes

In my subreddit sidebar, there's a link at the top where if you mouse over it, the subreddit name will underline. I want to remove this. Help!

E.g. Subreddit name is /r/CSSHelp. At the sidebar, there would be that title which underlines, upon mousing over.


r/csshelp • • May 01 '13

Just wanted to say thank you for the help.

9 Upvotes

Last night I wanted to make a subreddit for my a cappella group, On A Sensual Note, but quickly realized I had no idea what I was doing. This sub was incredibly helpful and I just wanted to say thanks.

It's a completely beginners project and a continuing work in progress, but it's here.


r/csshelp • • Feb 21 '13

Text Link Flair being cutoff...

9 Upvotes

Is there a way to override this? Browsing through reddit, it's weird. Some link flair gets cut off and some doesn't. And even the ones that do get cut off... there seems to be no rhyme or reason why one will get cut off after 4 characters, and another at 12.

Is there an explanation for this? Is there something I can do to make sure text linkflair for my subreddit is never cut off?


r/csshelp • • Dec 16 '12

Resolved I want to change "Readers" and "users here now" with different names. When I input the code, the substituted name for "Readers" also becomes the substituted name for "users here now". Can somebody help me fix the problem? Code inside.

9 Upvotes

Hi guys, I'm not very familiar with CSS or coding of any kind, so please bear with me when I try to explain this.

This is the code I use to alter the "Readers" name.

div.titlebox span.word {
display: none;
}
div.titlebox span.number:after {
content: " losers";
 }

And this is the code that I use to change "users here now".

/*replace "users here now" with something else*/
.users-online .word {
display:none;
}
.users-online .word, .users-online .number:after {
content:" Keepers In Goal"
}

The problem is, whenever I put both pieces of code in, the second piece of code is ignored and only the first one is acknowledged. Is there any way I can fix this? Thanks!


r/csshelp • • Sep 13 '12

I need help pointing a url in the right direction

9 Upvotes

First, thanks for all the help that you all do for reddit. I tried to cut and paste two snippets of code from /r/shitredditsays into my subbreddit. Everything works except for one line - a URL that is apparently invalid but works as-is in the SRS stylesheet.

Here are the two sections (which basically switches the upvote and downvote positions) in the SRS stylesheet that I am working with. The 'invalid' URL is highlighted in bold. I believe the only thing it does is creates the upvote and downvote arrows. I am only trying to cut and paste exactly the two sections below into my subreddit and nothing more, so my approach could be generating the error as well. Here's the code:


/* Adjust scores and info text: */

.content .score:before, .linkinfo .number:before { content: "-" }

.linkinfo .upvotes .number:after { content: " upvotes are downvotes" }

.linkinfo .downvotes .number:after { content: " downvotes are upvotes" }

.content .score, .linkinfo .number { white-space: nowrap }

.linkinfo .upvotes .word, .linkinfo .downvotes .word { display: none }

.link .midcol .score { position: relative; left: -0.5ex }

.link .midcol { padding: 0 0.5ex }

/* Up is down. Down is up: */

.arrow.up, .arrow.upmod, .arrow.down, .arrow.downmod { background-image: url(http://b.thumbs.redditmedia.com/detvcVr0wHxOoZKU.png) }

.arrow.up { background-position: -48px -658px }

.arrow.upmod { background-position: -16px -658px }

.link .arrow.up, .link .arrow.upmod { position: relative; top: 32px }

.commentarea .arrow.up, .commentarea .arrow.upmod { position: relative; top: 16px }

.arrow.down { background-position: -32px -658px }

.arrow.downmod { background-position: 0px -658px }

.link .arrow.down, .link .arrow.downmod { position: relative; top: -32px }

.commentarea .arrow.down, .commentarea .arrow.downmod { position: relative; top: -16px }


Which throws the following error:

[line 11] "url(http://b.thumbs.redditmedia.com/detvcVr0wHxOoZKU.png)" is not a valid URL


What line can I add or subtract to make it work? Thanks again


EDIT UPDATE: SOLUTION FOUND. Underneath all of that, I had the typical hide downvote snippet. That snippet was hiding both the upvote and downvote errors. Changing it to:

/hides the downvote arrow/

.arrow.down { visibility: hidden; }

corrected the error.

THANKS NOAHJK FOR ALL OF YOUR HELP!!!


r/csshelp • • Aug 20 '12

Resolved <-- That image, right there, how do i edit it?

9 Upvotes

r/csshelp • • Mar 16 '12

I have absolutely no experience with CSS. Where should I start?

9 Upvotes

Like the title says, I have no experience with any type of coding, let alone CSS. To give you a point of reference, I don't even know how to open the stylesheet. Any help would be appreciated!


r/csshelp • • Nov 15 '11

Default Thumbnail Image Replacement

9 Upvotes

It appears Reddit updated the old default thumbnails from /static/noimage.png (etc.) to a new combined sprite:

/static/sprite-main.oJ5XDExA73c.png

That broke the custom thumbnails I had set up for my subreddit. I've tried to simply update the CSS reference to fix it, but nothing works. I've tried path, filename, type, or even class to get at it, but all are ignored. Begins-with and ends-with selectors fail. It's like Reddit's also now generating it in a way that gets around the default CSS DOM.

Am I missing something? Does anyone know a new trick to customize the default thumbnails?


r/csshelp • • Jun 26 '11

Is there a way I could move the "Submit a link" button to the top of the page?

9 Upvotes

Due to the amount of content in my subreddit's sidebar, it feels like you have to scroll forever just to submit a link.

Is there any way I could move the button to the top of the sidebar?


r/csshelp • • Feb 15 '23

Seeking Help with CSS Programming Homework

8 Upvotes

Hello everyone,

I hope this post finds you well. I'm currently struggling with my CSS programming homework and I'm looking for some help to get through it. I've been trying to work on it for a while now, but I seem to be stuck and can't seem to figure it out.

I'm hoping that someone with experience in CSS programming can help me with this. I'd appreciate any advice, tips or suggestions that you may have. If anyone is available to help me, please let me know and I'll be more than happy to share the details of my homework.

Thank you in advance for your time and consideration. I really appreciate any help that you can offer.


r/csshelp • • Jun 08 '22

Request Is it possible to make a resizable "vertical split" with CSS only? That is, without JS?

8 Upvotes

I'm trying to build a generic web-component to provide a resizable vertical split. I've come across some ideas of providing this via JavaScript, binding to mouse events and calculating the sizes of the two "panels" in the split-component.

However, I've also seen that CSS nowadays has the resize property. This seems a lot less fiddly and - hopefully - also less buggy.

However, making the components "stick" to an outer container with fixed size proves challenging.

After a lot of fiddling around, I have two examples, one based on flexbox, the other one without. Both work half-way. But neither is "good enough" to consider this "done".

The flexbox solution sticks to the outer-container constraints but feels "rubbery" and has other annoying side-effects.

The basic solution feels perfect, but it does not constrain itself to the parent container.

Any ideas how to deal with this? Or will I be forces to add a pinch of JS to this?

Expected behaviour: https://imgur.com/a/tMFtqMf


r/csshelp • • Mar 11 '22

Request If display: none; is bad practice what is the proper alternative?

8 Upvotes

If display: none; is bad practice what is the proper alternative? I have a menu component that I need to have invisible without taking up space which is going to be replaced with another component, but I'm reading this using display: none; is bad practice, yet the alternatives are not great either.

Visibility doesn't work even with 0 height, or scale. Also not accounting for animations. Moving something -9999 to the left or top is also bad due to readers still picking it up, and even the possibility of input still happening.

I cannot think of anything but using display: none; considering I'm using CSS Grids, and I have the two menu components slotted in the same grid item, but they alternate displayability depending on the current screen width.


r/csshelp • • Nov 27 '21

How can I create a circular arrangement of buttons?

8 Upvotes

I'm trying to create a color palette element with buttons arranged in a circle (see image linked below). I've been writing CSS for years, but I'm not sure how to approach this issue. I've tried a grid layout, but it just looked strange.

The problem is, I need each of these circles to be clickable buttons. I've tried looking online to no avail.

Thank you all in advance.

https://imgur.com/a/D4Zwg9a

r/csshelp


r/csshelp • • Nov 23 '21

I have made a screen similar to the Apple iPhone Settings screen. Can you please provide feedback?

8 Upvotes

Hi

I have tried to make a screen similar to the iPhone Settings screen (it's not an exact replica. I intentionally changed some parts).

You can see it here: https://codepen.io/AshkanAhmadi/pen/vYJwvXK?editors=0100

I did the whole thing in roughly 30 minutes so it can not be perfect. Also, I'm linking to the icons on FlatIcon and sometimes the links expire so if an action isn't shown, the link has expired. You can ignore that.

Looking forward to your feedback and if there is anything I can improve.

Thanks


r/csshelp • • Jun 28 '21

replace word in meta title of a blog

8 Upvotes

Hi Coders

i was here the other day and got a bit of help from someone, but having another small issue that i can seem to sort.

My site is a Spanish blog, but in the meta line where the date / author / category is it has an english word "by" at the beginning that i need to change to say "Por" ive managed to get the word por there with some css, but i can not seem to remove or replace the word "By".

the site / blog is https://bartolome.info/

any help with the correct bit of css will be very much appreciated.

Thank you


r/csshelp • • Jun 04 '21

Request Button centering

8 Upvotes

I'm trying to position a few buttons on a picture, but the buttons change size sometimes (on purpose).

But they look off when they become bigger since the thing goes to the right and doesn't center itself.

So how do I make it that the button always finds the center?


r/csshelp • • Apr 19 '21

Request Unable to upload banner due to 500 kb limit on file size. How do other subs have such large banners?

8 Upvotes

Hi everyone! I’m trying to upload a banner to my subreddit and it’s not able to upload due to the 500 in limit on file size. I tried a website to reduce the size of the image file, but the file size is still too big.

I’m confused as to how I’ve seen such large banners on other old Reddit subs but mine being quite normal sized is still too big.

Could someone help me out? I’m completely new to CSS and this has been kinda tough.

Maybe I could give someone mod permissions, send them the banner to them, and they could upload the banner for me?

Any guidance would be so helpful, thanks!


r/csshelp • • Apr 10 '21

Request [How do I get my rules to look like this?](https://youtu.be/xmh8BxWQyvY)

8 Upvotes