r/csshelp • • Oct 29 '20

Request dark mode for my website

6 Upvotes

good evening guys. does any one have a 100 percent working code that automatically turns my website into dark mode .


r/csshelp • • Oct 23 '20

Request [HELP] Locating 'style id' to remove hover effect

6 Upvotes

So basically i want to remove the hover effect but couldn't find the file source.

Found the tag/id and messed with it in browser but couldn't apply it in the custom css section.

It's style id="bwg-style-0 if you look at the source.

.bwg1-item1 etc for the hover effect.

(bear with me i'm not an expert at this. i'm just modifying wordpress & plugin template)

https://augustesoesastro.com/archive-2018-1/

i use 'Photo Gallery' wordpress plugin here.

thank you!


r/csshelp • • Sep 23 '20

Request CSS help (How to enable)

6 Upvotes

Can someone help me enable CSS for my subreddit? When I try and click on the CSS box it doesn't allow me to click it.


r/csshelp • • Sep 14 '20

Request Site Title and Navigation Bar Alignment Help

6 Upvotes

Hi,

I'm not a web developer in the slightest and I need some help with alignment. I'd like my site title "Niki Phillips Photography" to be truly aligned all the way to the left, like the picture of a man on a mountain a bit below it.

Similarly, I'd like the nav bar aligned truly to the right. The spacing between nav links is fine, I'd just like it on the right side of the page.

link to website is below:

www.nikiphillips.com

any help is truly appreciated! I'm sure it's something quick and easy but it is driving me crazy!


r/csshelp • • Sep 04 '20

Can't get a page right

6 Upvotes

I want my page to look like this https://ibb.co/yk7543N , but for some reason this extra space towards the right end , doesn't go away i.e https://ibb.co/Hp3rngv . I'm just a beginner , so I've showed it to a few of my friends who have done this , they keep telling me to change everything and use tables. Can I solve this issue without doing that?


r/csshelp • • Aug 06 '20

Why are these two inline-blocks v-aligning differently?

6 Upvotes

I've got an inline-block <img>, and an inline-block <div>. They are different heights. I'd expect them to both v-align top, or both v-align bottom.

Instead, it looks like the <img> is v-aligning top, and the <div> is v-aligning bottom. In addition, the total height of the container is bigger than expected.

Why is this happening?

Screenshot

JS Fiddle

<div id="container">	
	<img id="logo" src="https://www.greyboxcreative.com/wp-content/uploads/2015/07/National-Geographic-logo-768x384.jpg">
	<nav id="top-nav">
		<ul>
			<li class="current_page_item">
				<a href="#">
					Home
				</a>
			</li>
			<li>
				<a href="#">
					About
				</a>
			</li>
		</ul>
	</nav>
</div>

#container {
	margin: 5px;
	border: 2px solid black;
}

#logo {
	display: inline-block;
	width: 200px;
	height: 75px;
	margin: 5px 15px;
	border: 2px solid red;
}

#top-nav {
	display: inline-block;
	text-transform: uppercase;
	font-size: 80%;
	border: 2px solid red;
}

#top-nav a {
	color: #CDCDCD;
	/* to move an underline down, need to turn off underline and use a border */
	text-decoration: none;
	padding-bottom: 3px;
	margin: 0 10px;
	line-height: 2;
}

#top-nav > ul {
	padding-left: 0;
	width: 100%;
}

#top-nav > ul > li {
	display: inline-block;
}

#top-nav > ul > li > ul {
	display: none;
}

#top-nav .current_page_item a {
	color: #1B84C9;
	border-bottom: 2px solid #1B84C9;
}

r/csshelp • • Jul 15 '20

Request For /r/cursedvideos and /r/VertexBreakingStuff: Is there a way to define a class for multiple flairs, but use a variable color for each individual flair?

6 Upvotes

Please excuse any misunderstandings I've made in my terminology. CSS is something I'm self-teaching.

I'm going to be using this in /r/cursedvideos to help better organize the CSS for staff flairs, post flairs, and later, user flairs. I'm currently experimenting in a dummy subreddit called /r/VertexBreakingStuff so I don't mess up cursedvideos in the meantime. Here's the roadblock I've hit:

I know I can define variables by doing this:

:root {
  --box-shadow-color: #aaaaaa;
  --main-font: Gadget;
}

And I know I can define common classes between multiple flairs by doing this:

.flair-mod, .flair-overlord, .flair-automod, .flair-retired {
  font-size: 12px;
  letter-spacing: 1.1px;
  color:#ffffff;
  text-align: center;
  font-family: var(--main-font);
  max-width: none;
  border-width: 2px;
  border-radius: 4px;
  box-shadow:
      2px 2px 0 var(--box-shadow-color);
}

But what I want to do is define a shared class between multiple flairs where a color variable is passed in by an individual flair class. Something like this:

.flair-mod, .flair-overlord, .flair-automod, .flair-retired {
  text-shadow:
      1px 1px 0 var(INPUT_VAR),  
      1px -1px 0 var(INPUT_VAR),
      -1px 1px 0 var(INPUT_VAR),
      -1px -1px 0 var(INPUT_VAR);
}

.flair-mod {
  text-shadow INPUT_VAR:#428246
}

As you can tell, I don't want to retype the same "text-shadow" class every time for a new flair, but I also don't want them to share the same color between flairs. While redefining the text-shadow class in each flair's class does work, it lengthens the stylesheet to a point where it's tougher to work with.


r/csshelp • • Jun 30 '20

Resolved Made a new sub last week. Need help with making the rules visible and with the font size in side bar.

6 Upvotes

The sub is /r/SnailMailSwap

I am trying to make the side bar font size larger.

I also have no idea how to make our rules apparent. I visited the sub from a "sock username" to see how it looks from another perspective (aka not a mod) and I couldn't find our rules anywhere.

I'd like to link them in the side bar (if possible).

I know next to nothing about CSS so any kind of help would be great!


r/csshelp • • May 16 '20

Resolved flexbox or float? which way would you reccomend to achieve this?

6 Upvotes

hi everyone, I'm quite new to css and I was wondering how to obtain a layout that would look like this.

I read about the float method but to be honest I find it quite counterintuitive and hard to arrange elements around or create a layout. so I was considering using flexbox and do something like this. can I put a flex structure inside another flex structure with even a different orientation?

Do you think that could be an appropriate way to achieve something like that or would you recommend also other ways?

thank you!


r/csshelp • • May 01 '20

Help

6 Upvotes

I am very bad at CSS and trying to learn. And my friend who is better than me has tried to help me with this. I run a subreddit. And there is a CSS trick I see on some of the more popular subreddits. When you hit upvote or downvote it will show you some text. I want ro learn how to do this. I tried looking at the code. I couldn’t find it. Any help would be much appreciated.


r/csshelp • • Mar 11 '20

Resolved Is it possible to have both a background gradient, as well as a background image at the same time?

6 Upvotes

Hey!

So, for my school project i'm attempting to have a both a background image (of an animated campfire with a navy blue background) & a colour gradient that "radiates" from the image, resulting in a fade from navy blue -> darker navy blue -> Black. Is it possible to do this? If so, how would i go about attempting such a feat? Any help is appreciated! <3

Edit: I forgot to add, the image should follow the scrolling of the page, so merely inputting an image wouldn't work :C


r/csshelp • • Mar 02 '20

Resolved What's causing numbered lists to get cut off?

6 Upvotes

Could you take a look at this comment and tell me why this happens when someone posts a numbered list on /r/yandere_simulator?


r/csshelp • • Jan 28 '20

Resolved Understanding first-child or first-of-type

6 Upvotes

Hi,

Sorry, I know that this is a common question but actually I seem not to be able to understand the asnwers I read about this topic on the forums.

I just don't understand how first-child works, I can't make it work.

I have a fieldset tag, selected with a class name ; inside, there are text inputs. I want to select the very first one. But there also are other elements such as a select list.So, I tried fieldset.articles input:first-child but nothing happens.

Could you help me with this, please ? Thanks ! :)


r/csshelp • • Jan 27 '20

Sub bar, and Username/login bar (rl/rhettandlink

6 Upvotes

Hi

We're wanting to do something with the bar that runs along the top of Reddit (listing default subs when not logged in, subscribed to ones when you are) and making it fit in with the general theme that we have.

I've been searching around for about an hour but I can't find anything, would just be happy to get it off of it's default look, same with the username bar on the right

( r/rhettandlink )

Thanks


r/csshelp • • Jan 11 '20

Resolved How can I keep the post titles on /r/MobileSuitGundam level with the flairs?

6 Upvotes

If the title of a post is too long, the entire post title goes beneath the flair. Is it possible to make it so that the text of a post title continues on the next level after a certain length?

EXAMPLE OF ISSUE


r/csshelp • • Dec 27 '19

Resolved help i cant see my stylesheet

6 Upvotes

so i accidentally did something, and now the stylesheet is gone. what do i do? btw, my subreddit is r/egg_box.


r/csshelp • • Nov 20 '19

Resolved How do I disable voting in my Subreddit?

6 Upvotes

Got some nonsubscribers down voting posts unnecessarily. Would like to disable voting for a while since the sub is still new and I'm trying to establish the subs atmosphere. Would like to know how to disable voting or downbutton for my sub so commenters and posts can't be downvoted. I've only seen the style sheet in old Reddit, can I access the style sheet elsewhere? Thank you.


r/csshelp • • Nov 12 '19

Resolved <nav> element doesn't show on certain browsers. Works on mobile

6 Upvotes

Here is my webpage http://outest1.x10host.com/ourc_home.html I'm doing a uni project and can't get this to work.

It displays on some devices but not others. Here is a screen shot of the problem

https://i.ibb.co/hyk0btT/Screenshot-from-2019-11-12-17-53-01.png

I can't tell what I've done wrong, I've tried my instructor and they've advised "it's probably the css but it displays fine for me on my machine". Any idea what the cause is and how to sort it out?

EDIT: Any other criticism of my work is very welcome.


r/csshelp • • Nov 04 '19

/r/Lovecraft - Looking for CSS to have sidebar image automatically rotate on page refresh

6 Upvotes

/r/Lovecraft (old.reddit)

Up until now I've just been manually changing it once a week or so but I've collected enough images I think an auto refresh would be useful. Can someone walk me through how to accomplish that? I've looked at some subreddits CSS that do it but it's difficult to pick out the necessary parts and how it functions.


r/csshelp • • Jul 20 '19

Does anybody have a png version of the new reddit upvote arrows?

6 Upvotes

Does anybody have a png version of the new reddit upvote arrows?

Would be helpful if they could comment it below, thank you.

 

Or is it possible to use the redesignFont somehow in the old reddit?


r/csshelp • • Jun 30 '19

Resolved Noob Question

6 Upvotes

/r/AskReddit I use RES and I'd like to add a snippet to remove

<div class="side"

Literally the whole sidebar.

Does anyone know what command I'd use?

<div class="side" {
  visibility: hidden;
}

Does not work. I've tried visibility: collapse as well.

Sorry if I'm way off course.

I figured it out:

.side { display: none }

r/csshelp • • Apr 22 '19

Resolved VERTICAL NAV BAR

6 Upvotes

Hi! I’m new here! And I don’t really know what I’m doing, so please bear with me. Complete beginner. CSS ain’t my thing. I’m a bit lost.

So, I have to make this kind of “”portfolio”” mockup for class, and I had my images and everything was coming along (more or less), but now I’m trying to put a vertical navegation bar (which I thought would be EASY) on the left and, I don’t know why, it’s not working. At all. I’ve tried plenty of things. I don’t get it. There’s clearly something wrong. Right now, the nav bar is behind the images and for some reason, whenever I try to reduce its width, it won’t work.

It…… looks like this: https://codepen.io/pondragon/pen/EJpBpB . what’s wrong w it!!! its driving me insane.

Any help would be appreciated! Thank you!


r/csshelp • • Nov 10 '18

[R/skyrim] RES nightmode is trashing my sub.

6 Upvotes

I finished designing the new design for Skyrim, and it's going live soon.

Here's what I got.

https://old.reddit.com/r/SkyrimCSS/

During Q&A, we found that RES nightmode obliterates everything. The design of our sub is already nightmode.

It ruins upvotes/downvotes, items with transparency, backgrounds, ect.

Trying to over write it with !important tags do nothing. Almost as if they specifically designed RES to ignore overrides of its styles.

Anyone have good resources to disable the "enhancements" of RES night mode?

EDIT: It isn't worth the stress. If RES didn't ignore my !important tags, I'd be fine, but whatever. If someone has good documentation, please drop a link.


r/csshelp • • Sep 14 '18

Request [CSS mods needed] We are looking for a couple experienced CSS mods to help overhaul our subreddit. | r/Screenwriting | 250,000 Subscribers | 2 positions available | Thank you!

6 Upvotes

Subreddit I mod for: https://www.reddit.com/r/Screenwriting/

Here is the r/Needamod link: https://www.reddit.com/r/needamod/comments/9fpfzz/rscreenwriting_250000_subs_is_looking_to_bring_on/?


This was the response I got from the mods here, so I hope everyone is okay with me reaching out to this particular sub!

We appreciate you taking the time and effort to reach out to the /r/csshelp moderators. Our sub's basic premise deals with assisting our users with their CSS questions, concerns, and or issues. Our emphasis rests heavily on subreddit CSS, but we've been able to help users with generalized CSS issues over time. Unfortunately, the /r/csshelp sub does not directly involve requesting moderators to assist with general moderation of a personal sub, but there are no qualms in requesting a moderator if you need one to oversee the CSS/stylesheet customization on your sub. That being said, your requests in /r/needamod are your best option for fulfillment, but there would be no harm in requesting a CSS moderator from our sub, who you may also ask for help with general moderation duties if need be.


/r/needamod is fantastic, and I've found a couple really tremendous people -- but unfortunately, I haven't found the right fit since two of our mods resigned. Let me know if you are interested in a config position! We all appreciate the help we've received from this sub. If you have any specific questions, PM me or comment down below. Thank you!


r/csshelp • • Sep 12 '18

Parallax scroll effect making .content { scroll faster

6 Upvotes

r/TLoU

I want to make my .content { and #header-bottom-left { scroll faster with parallax scroll effect.

I'd like it to scroll ontop of my #jumpToContent { and also make this one parallax slower and same with the "The Last of Us Part II" logo.

edit: When I give body perspective my positioned: fixed; background loses fixed; r/t2test