r/csshelp • • Mar 25 '21

Request How do I hide the mod list and vote buttons for non-subscribers like /r/woahdude?

9 Upvotes

Hiding the Modlist

1. I thought it wasn't allowed?

2. If it is, how do I do it?

I copy+pasted the relevant section of their CSS, downloaded the %%shield%% .png that they have and uploaded it to my subreddit (after the error rejected my changes because I had no %%shield%%), but no dice:

/**********remove moderator info*********/

.helplink ~ * { display: none; }

.side .helplink {
    background: #205886 url(%%shield%%) 18px 12px no-repeat;
    background-size: 24px;
    color: #fff!important;
    padding: 16px 9px!important;
    display: block!important;
    width: 278px!important;
    height: 250;
    font-size: 16px!important;
    font-family: Helvetica, sans-serif!important;
    text-align: center!important;
    margin-bottom: 0px!important;
    margin-top: -10px!important;
    z-index: 9999;
    border-bottom: 00px solid #f0f0f0;
    transition: all 0.25s ease;
}

Hiding Vote Buttons

Their CSS for hiding vote buttons for non-subscribers doesn't seem to work either.

Here's /r/woahdude's stylesheet: Link

Here's /r/FilthyGirls' stylesheet: VERY NSFW LINK


r/csshelp • • Mar 05 '21

How can I prevent a child from expanding its parent?

9 Upvotes

I have two divs aligned horizontally in a parent div. The first div's height depends on its contents, and the second div contains a long table. I want to make the table scrollable, and constrain its max height to the first div's height.

Here's a simplified version of what I have so far:

<div class="row">
    <div class="col-lg-6 col-xxl-3">
        <div class="card card-custom card-stretch gutter-b">
            <form class="form">
                <!-- Dynamic height based on form elements -->
            </form>
        </div>
    </div>
    <div class="col-lg-6 col-xxl-9">
        <div style="overflow: auto !important;height: inherit;">
            <table class="table">
                <!-- Scrollable, should NOT be higher than the form -->
            </table>
        </div>
    </div>
</div>

What I get:

┌────────────────────────────────┐
│┌──────┐┌──────────────────────┐│
││ Form ││                      ││
│└──────┘│        table         ││
│        │        with          ││
│        │        many rows     ││
│        │                      ││
│        └──────────────────────┘│
└────────────────────────────────┘

What I want:

┌────────────────────────────────┐
│┌──────┐┌──────────────────────┐│
││ Form ││  scrollable table   ┃││
│└──────┘└──────────────────────┘│
└────────────────────────────────┘

The problem is that the table is much taller than the form, and I don't know how to make it exactly as tall, and scrollable without javascript. As you can see, I've tried using height: inherit;, but it didn't work.

I'm using bootstrap and the Metronic admin template.


r/csshelp • • Dec 31 '20

OldReddit css styleSheet help

9 Upvotes

i have no understanding of css and i would like for there to be a rectangle with text and a link at the top of my subreddit, does anyone know how to do this or if its even possible? below the menu but above all the posts.


r/csshelp • • Nov 11 '20

Request Need help, how to make div resize to fit

9 Upvotes

I have this page. I'm trying to make the big green div cover everything and resize according to how many items are on the list.

Right now the style i gave it is:

.OuterBox {

margin-top: 10vh;

background: #2C433B;

border-radius: 10px;

width: 90vw;

min-height: 100%;

left: 50%;

position: absolute;

transform: translateX(-50%);

}

As you can see, it is not working as i would like it to.

Help would be greatly appreciated,

Thank you.


r/csshelp • • Nov 05 '20

Request Feedback wanted: I've been practicing display: grid and flex and I made some cards. Can you please provide constructive criticism?

9 Upvotes

Hi

I've been learning and practicing display: grid and display: flex and I have made these cards. Can you please provide feedback regarding the CSS? What have I done well? What can I improve?

Codepen: https://codepen.io/AshkanAhmadi/pen/oNLMONB

Note: I need to work on my responsive design so if you have any note on that, please let me know.

Thank you so much


r/csshelp • • Nov 01 '20

Resolved Whenever I add a paragraph tag inside my div, the text goes down like 30 pixels. Whenever I put the text straight into the div, without a paragraph tag, it's fine. I don't understand, I'm just learning CSS.

9 Upvotes

Here is the problem: http://imgur.com/a/JcnDOxP


r/csshelp • • Sep 20 '20

Random line in my website

9 Upvotes

https://imgur.com/t4Oiirh

For some reason this white line is appearing on the page.

What part of the stylesheet is this originating from and how can I get rid of it?


r/csshelp • • Aug 08 '20

This gap is driving me crazy!

9 Upvotes

I have cards that I'm placing in a grid layout. Each card is actually a column flexbox with an image on top and a h3 on bottom. The image is a fixed size. Each card should only take the size of its children.

Using chrome devtools, I can see there is a gap between the h3 and its padding and the image above, but I can't tell what its from and I can't get rid of it. I also checked another browser and its the same.

https://codepen.io/jstocks/pen/JjXdjbw

I'm quite new to CSS. If there is a better place to ask this, let me know please.


r/csshelp • • Jul 15 '20

Resolved Capitalizing the first letter of each tab in tab menus

9 Upvotes

I'm working on the CSS for /r/ididnthaveeggs, and I've been having trouble getting the desired text-transform for tabmenus in the header and the submit page.

I want the first letter of each tab in the tabmenus to be capitalized, and I've had no luck finding the appropriate element for ::first-letter.

Of course text-transform: capitalize gets me most of the way there, but it results in, for example, the I in "show images" being capitalized, which I don't want.


r/csshelp • • Jun 11 '20

Resolved How to Place Images inside Text html - HTML and CSS

9 Upvotes

r/csshelp • • Mar 14 '20

Resolved How to do this Link decoration

9 Upvotes

Does anyone know how to do someone similar to the underline colour/highlight text when clicked as seen on any text link on reviewed.com, e.g. https://www.reviewed.com/dishwashers/best-right-now/the-best-third-rack-dishwashers. I’d like to implement this in a beaver builder website


r/csshelp • • Mar 12 '20

Resolved My text won't center in a input button after i add an image. How can i fix this?

9 Upvotes
<!DOCTYPE html>

<html>

<head>

    <meta charset="UTF-8">

    <title>Test</title>

</head>

<body>

    <button class="button-class">

        <img src="image.png"></img>

        DELETE</button>

</body>

<style>     .button-class {     color: darkred;     padding: 4px;     text-align: center;     } </style>

</html>


r/csshelp • • Mar 07 '20

Resolved Giving up on trying to do it myself, willing to pay someone for a little sub mod css help.

9 Upvotes

Just started to add link flairs to my sub /r/copywriting

Now I'm trying to format them. I didn't do the theme but I did the vote sprites awhile ago. Not getting anywhere with the formatting though, I've read through several tutorials and nothing's working.

I want to get 3 things done:

Make the link flairs bigger and more visible (simple like the ones in r/france, just a background color and size up a few px maybe).

Have a section in the sidebar where they can filter posts by flair

Make it a rule that posts must have a flair, & have posts automatically removed if there's no flair.

$20, is that fair? :)


r/csshelp • • Jan 29 '20

Resolved How can i make this table bigger ?

9 Upvotes

table

.content-table { border-collapse: collapse; margin: 25px 0; font-size: 0.9em; /min-width: 400px;/ border-radius: 5px 5px 0 0; overflow: hidden; box-shadow: 0 0 20px rgba(0, 0, 0, 0.15); margin-left: auto; margin-right: auto; table-layout: fixed; width: 120px; border: 1px solid red; }

.content-table thead tr { background-color: #2894ff99; color: #ffffff; text-align: left; font-weight: bold; }

.content-table th,
.content-table td {
    padding: 12px 15px;
}

.content-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

    .content-table tbody tr:nth-of-type(even) {
        background-color: #f3f3f3;
    }

    .content-table tbody tr:last-of-type {
        border-bottom: 2px solid #2894ff99;
    }

    .content-table tbody tr.active-row {
        font-weight: bold;
        color: #4d94ff /*daca ii activ baitanu sau nu*/;
    }

.profile-image2 { width: 35px; height: 35px; border-radius: 50%; display: block; margin-left: auto; margin-right: auto;


r/csshelp • • Jan 19 '20

Resolved What is a good way of Setting up a subreddit?

9 Upvotes

I have made a subreddit called r/DefinitionOfInsanity. It’s about weird and questionable things that tests and questions our insanity, it is also a meme sub too focused around a quote from Vaas from the game FarCry3

I am looking for a layout that can help kick start the subreddit and overtime I can add thing here and their to help Improve the subreddit in the future.

Any help even the smallest of it will be beneficial for the sub and greatly appreciated.


r/csshelp • • Jan 16 '20

How to create a flair that strikesthrough a title when applied?

9 Upvotes

Working on r/mechgroupbuys.


r/csshelp • • Dec 19 '19

so I wrote some css properties of top and left with respect to my 16:9 monitor but when I view it on my laptop the position is different due to screen aspect ratio being different . how can i fix this?

9 Upvotes

im a beginner in css.


r/csshelp • • Jul 08 '18

Resolved I'm a mod over at r/NolanBatmanMemes and have an issue with the banner image

9 Upvotes

If you look at r/NolanBatmanMemes you'll notice that there's a grey bar between our banner image and the top bar (list of your personal subreddits, etc.).

You'll notice that the pagename is the banner so that clicking anywhere on takes you back to the front page of the subreddit. We want to keep it that way but there's that annoying grey bar that I can't seem to get rid off. The only way I've found to get rid of it is to adjust the pagname/banner side but that results in the image tiling. I've also tried adjusting the body/header padding but that pulls the entire body up into the tabmenu, which is also something we want to avoid.

Sorry if I didn't explain that well but if you check out the sub you'll see what I'm talking about. Any advice/help is gratefully accepted!


r/csshelp • • Feb 01 '18

What are some of the best looking CSS jobs and sub reddits on reddit?

9 Upvotes

I'm curious to see whats possible?


r/csshelp • • Nov 28 '17

r/CallOfDutyWorldWarTwo - The sub has reached 10,000 and i must hide the comma to fit the counters background. Can you help out?

9 Upvotes

Halp


r/csshelp • • Sep 30 '16

Resolved How do i show nsfw images instead of the 18+ logo that replaces the thumbnail, but still label it as nsfw. NSFW

9 Upvotes

/r/BeautifulCleftChins , i want to make it like /r/NSFWfashion .


r/csshelp • • Dec 10 '15

I'm a total N00B with CSS, so I ask these questions: (/r/lowqualityfnaf)

9 Upvotes
  • How to change a subreddit's theme to dark grey (#212121)

  • How to change a link flair to look like on /r/fivenightsatfreddys?

  • How to make user css flairs and which size should the pictures for the flairs be?

  • How to add a watermark on the text submission page like on /r/fivenightsatfreddys?

  • How to add "rules" like on /r/fffffffuuuuuuuuuuuu?


r/csshelp • • Apr 15 '15

Resolved Customizing the "My Subreddits" drop-down arrow. NSFW

9 Upvotes

Subreddit: NSFW /r/holdthemoan

Stylesheet: /r/holdthemoan/about/stylesheet

Re: http://reddit.com/r/csshelp/comments/txq5v/changing_the_color_grey_dropdown_arrow_for_my/

.dropdown.srdrop .selected {
    background: url(%%spritesheet%%) no-repeat -120px -100px; width: 11px; height: 6px;
}

Issue:

How would I solve this positioning problem?


Solution:

Well this took a long time but I finally came up with a solution. Since I couldn't position the spritesheet image and the "My Subreddits" text correctly, I decided to make the entire thing an image: https://i.imgur.com/KfyLllF.png. So I got rid of the text with text-indent: -999em;, set padding: 0px; as well as display: block; and placed various margins to position the image exactly as I wanted. This is optional, but I also added a hover effect with:

.dropdown.srdrop .selected:hover {
    background: url(%%spritesheet%%) no-repeat -100px -20px; width: 93px; height: 8px;
}

Hope this helps someone. Cheers!


r/csshelp • • Oct 09 '14

Did Reddit change the base CSS or HTML? Search box icons and expando issues!

9 Upvotes

All of a sudden today I noticed an issue with the search field in the sidebar that was not present yesterday.
Some search fields (differs per subreddit) now have extra images behind the "spyglass" icon, with the 'width: 13px' for that background image coming from the base reddit sprite image overridden. Not only does it display images, you can also now scroll the page to the right.

Same issue in the search expando; with or without a subreddit's stylesheet used, there's a mistake at the bottom of this expando. You'll see the two letters 'se' and a circle which I think comes from the spyglass icon. Don't remember what exactly was there to begin with, but I suspect based on HTML code and the CSS that there was a regular 'ole submit button there. Either way, it's now broken.

Note: not every sub with custom CSS seems to have the icon issue, although all have the search expando submit button issue. Turning off the subreddit custom CSS removes the icons and stops the page from being able to scroll to the right, although at that point the search expando issue remains.

Images to clarify what I'm talking about (/r/Austin is just a random example):

Image 1 (default search box)
Image 2 (search expando expanded)

My temp fix for now for subreddits with BOTH issues (icons, scrolling to the right, and the search expando):

#search input[type=submit] {width: 13px!important;}
#search .searchexpando-submit input[type=submit] {
   display: inline!important;
   width: 80px!important;
   height: 20px!important;
   background-image: none!important;
   -webkit-border-radius: 5px;
   -moz-border-radius: 5px;
   border-radius: 5px;
   background-image: none;
   background-color: #BBB;
   border: 1px solid #999;
}

This seems to have stopped both issues for now. If you only have the search expando issues, ignore the first rule. This is NOT an ideal fix, it only approximates the previous submit button in the search expando for now. Don't get upset, it's a stopgap, you can restyle it however you want it to be.

As per title, I suspect this is an issue with the markup coming from Reddit being changed, and I think it's due to something changing with the search functionality.

TL;DR: Shit broke with the search field in the sidebar. Fix in post.


r/csshelp • • Sep 19 '14

Pirate day has shown me that I messed up in making my subreddit

9 Upvotes

I made the sub /r/monsterhunterclan

Today with the pirate alien icon being there, it has actually gone on top of my custom image. Obviously I messed something up. Can someone tell me how I can hide the pirate alien, or maybe how I should code the alien differently so this doesn't happen?