CSS Help Thread Anonymous 03/01/15 (Sun) 16:03:39 No. 5330
Can we get a board CSS help thread going? I know there is a theme thread but I wanted something a little more focused on helping board owners with problems with their board's style and such. I've been through my own problems and I've mostly figured them out over time by just reading over other board's stylesheets by viewing the page source. I'd be happy to help with what little I could since I'm not very experienced in this but I'm getting there. It seems each new update Hotwheels brings it breaks something on my board's CSS. Like a few days ago the hide/filter/report/delete dropdown menu was showing up completely black and a few updates ago it completely broke my board's options menu. Both were surprisingly easy to fix after digging in the page source. Right now I'm trying to figure out how to make the quick reply box's default size wider so the add image button(+) isn't pushed down below the browse files button.
Anonymous 03/01/15 (Sun) 16:44:57 No. 5331
>>5330 This is a really great idea, OP. This could really help me with my board
>>>/loz/ I'm looking to stylize it to match some Legend of Zelda themed colors. Do you think you could help me with that? I was thinking the colors green, gold, and purple. Probably Green for the background, gold for reply backgrounds, and purple for subject titles and other misc. texts.
Anonymous 03/01/15 (Sun) 21:34:22 No. 5367
>>5331 It's possible. Colors themselves are easy, but the "other misc. texts." might be a little bit of a hassle since there is just a whole fucking lot of shit that falls into that category that you wouldn't think about.
Background colors and posts are probably the easiest. You basically just need the right hex colors for it.
Anonymous 03/01/15 (Sun) 22:08:49 No. 5370
>>5367 try this
@media screen and (max-width: 600px) { #quick-reply{ display: none !important; } } You may change to whatever value of the width. I'm using my intuition here, this code might work.
best regard
/utau/ admin
Anonymous 03/01/15 (Sun) 22:10:20 No. 5371
>>5330 >>5370 sorry, wrong redirection reply
Anonymous 03/01/15 (Sun) 22:15:44 No. 5374
>>5330 >>5370 If that doesn't work, then it should be this one then.
#quick-reply { position: fixed; right: 5%; top: 5%; float: right; display: block; padding: 0 0 0 0; width: 300px; z-index: 100;}
Anonymous 03/01/15 (Sun) 22:42:17 No. 5380
>>5370 >>5371 >>5374 None of these work with what I had in mind. I might just be testing it wrong.
Anonymous 03/01/15 (Sun) 23:28:32 No. 5385
>>5331 body { background: #FFFFFE; } ^This should be your main board bg color, you can change to whatever hex color you like using mspaint color picker
form table tr th { background: #FFFFFF; }^This would be your top non input bg form color of the poster Name, Email, subject ect.
div.post.reply { background: #FFFFFF; border-color: #FFFFFF; }^Post reply color and its border
div.pages { background-color: #FFFFFF; border-color: #FFFFFF; }^Bottom page box
@import url('https://fonts.googleapis.com/css?family=whateverfont' );^This allows you to use whatever font for your board. So whenever user visit your board it will shows the particular font you set. You also need to add these code in your body tag:
[code]
body {
font-family:whatever;
line-height:0.0em;
}
[code]
^line-height determine line spacing between words. Put these font codes on your first list before any other codes.
For more info, do right click on your board with firefox and go to Inspect element > Style Editor and try to figure out whatever css codes written there. I hope thats help.
Anonymous 03/02/15 (Mon) 00:24:19 No. 5394
>>5385 Thanks. I'll try this out, but what is mspaint color picker and how do I use it?
Anonymous 03/02/15 (Mon) 00:26:19 No. 5395
>>5394 I don't know what that is but someone in another thread recommended Colorzilla plugin for firefox to those working on their css and it's really great. The color dropper not only tells you the hex/rgb of the color you are hovering over but also what css element it is. It was invaluable to me as a css newb. Hope this helps.
Anonymous 03/02/15 (Mon) 00:36:43 No. 5399
>>5395 Oh okay. I'll check that out. If I have any problems, I'll post them. I'll also post when I have the CSS changed on my board.
Anonymous 03/02/15 (Mon) 03:39:32 No. 5411
Bumping. It would be really cool if more boardowners could get help with CSS here. I'd also like to see more solid coding for the CSS for
>>5331 's request. Green for board background, gold for reply post background, purple for subject title, and dark pink for
>this text Everything else should stay the same.
Anonymous 03/02/15 (Mon) 03:47:55 No. 5413
>>5394 Use Hex colors. There are a thousand and one color pickers for Hex colors on the internet.
I use this place:
http://www.color-hex.com/
Anonymous 03/02/15 (Mon) 03:54:09 No. 5415
>>5411 >Green for board background, gold for reply post background, purple for subject title, These are pretty simple, look at>>5385
body { background: #FFFFFE; } Replace #FFFFFE with the hex color forthe shade of green you want and there you go.
div.post.reply { background: #FFFFFF; border-color: #FFFFFF; } This is for basic replies. Though you can drop border colors and it wont even apply a border to it. Same here as aboce, replace the hex color with what you want.
As for changing the quote color, it's also simple.
span.quote { color: #8b2de9; } This is from my board. though mine also adjusts the font of it. Just replace the Hex color with the one you want. You can also change the big red text too
As for subjects it's:
p.intro span.subject{ color: #5c2929; } I suggest throwing it in your user CSS on the options menu to get a look at it all put together before you throw it up on your board.
This isn't the only thing you can change, you can change everything from the hover banner, to the watchlist, to the report pop up, to the options menu itself. I use a variation of the options menu found on 8lounge, and it's fucking nice because you're not forced into a tiny ass box.
Anonymous 03/02/15 (Mon) 04:01:39 No. 5416
>>5413 >>5415 Thanks. I'll try to get this up on my board tomarrow
Anonymous 03/02/15 (Mon) 04:04:07 No. 5418
>>5417 Oh yeah, I guess you do need to change the border color unless you set it to 0 pixels in size.
Anonymous 03/02/15 (Mon) 04:15:38 No. 5419
>>5416 >>5417 >>5418 Also I really fucking hate the tiny ass options menu as it is. I basically leave this bit of code in my custom CSS just because I hate the options menu so much.
Anonymous 03/02/15 (Mon) 09:06:32 No. 5432
>>5374 >>5370 I fixed it. Baically I did this:
#quick-reply{ min-width:350px; } I screwed around with it but 300px forced it down on bottom. You could probably shrink it more without pushing it down but I don't care to find it when 350px in width is fine.
Anonymous 03/02/15 (Mon) 11:03:36 No. 5436
>>5417 Yea, I knew that it wouldn't take long, but I had to get some sleep last night. I'll have it up this afternoon after work.
Anonymous 03/02/15 (Mon) 20:39:29 No. 5453
>>5432 I'm glad you found out your way. Good job.
Anonymous 03/02/15 (Mon) 23:31:15 No. 5461
Does anybody know how to edit the replies' opacity but keep the attached images opaque? I can't figure out how to give them separate amounts.
Anonymous 03/03/15 (Tue) 00:12:33 No. 5466
>>5415 so where do i throw all this CSS into? Do I put into my stylesheet? How do i get it on my board?
Anonymous 03/03/15 (Tue) 00:18:51 No. 5468
>>5466 In your admin dashboard, go to setting and dump your codes in the stylesheet text area.
Anonymous 03/03/15 (Tue) 01:03:39 No. 5477
>>5468 ok thanks. The colors turned out okay on my board, but the red title and subtitle do not go together well with the green background. Can I have some CSS to change the board title color and board subtitle color? I'd also like to get some CSS to change the color of the poster's name.
Anonymous 03/03/15 (Tue) 02:03:43 No. 5486
How do I make the announcement and red text a different color?
Anonymous 03/03/15 (Tue) 03:07:19 No. 5494
>>5486 div.blotter { color: red; font-weight: bold; text-align: center; }
Anonymous 03/03/15 (Tue) 03:11:43 No. 5495
>>5477 >Can I have some CSS to change the board title color and board subtitle color? For the board title:
h1 { color: #000; font-size: 24pt; }The subtitle is this:
[code]header div.subtitle {
font-size: 16pt;
color: #000;
}[/cpde]
The font size is the size of it and the color is obvious.
>>5461 I don't think I understand the question. I've fiddled with opacity on my board but why would you give opacity to post replies?
Anonymous 03/03/15 (Tue) 03:22:00 No. 5497
>>5495 header div.subtitle { font-size: 16pt; color: #000; } I really fucked up those tags. Anyway, I wanted to note that the size also effects the catalog link but you can't change the color since it's a link you'd have to change the color of the linked text.
Anonymous 03/03/15 (Tue) 11:29:23 No. 5558
>>5497 Thanks. Do you know how to chang the color of the poster's name too?
Anonymous 03/03/15 (Tue) 14:16:11 No. 5562
>>5495 >I've fiddled with opacity on my board but why would you give opacity to post replies? I don't know. I haven't figured out how I want the board yet - but it looks neat to have a background pattern and the replies 0.9 opacity (so still readable but with a bit of a pattern). I'm just wondering if it's possible because I'll just end up having to give the whole threads backgrounds so the OPs are readable.
Anonymous 03/03/15 (Tue) 16:48:10 No. 5564
>>5562 In that case I'm not sure. I didn't mess with post opacity because I didn't see the point as my board's background is completely one color.
>>5558 p.intro span.name { color: #000; } There is a separate option for changing name colors with Email links.
Anonymous 03/03/15 (Tue) 16:49:55 No. 5566
Also as an important note you can view any board's custom style sheet by going to:
https://8ch.net/stylesheets/board/boardinitials.css So if I wanted to look at the CSS of /ebola/ I'd go to
https://8ch.net/stylesheets/board/ebola.css
Anonymous 03/03/15 (Tue) 23:06:01 No. 5571
>>5330 You could try asking on
>>>/csp/
Anonymous 03/03/15 (Tue) 23:25:05 No. 5572
>>5564 thanks. this really is going to help my board look great.
Anonymous 03/04/15 (Wed) 03:07:21 No. 5578
>>5571 CSS isn't really code. It's code-lite. That's a good board though I'll keep it in mind.
Anonymous 03/04/15 (Wed) 04:31:32 No. 5582
>>5578 Well, it says it covers all languages, so, I guess CSS would be included in that.
Anonymous 03/04/15 (Wed) 12:36:54 No. 5591
>>5461 try this
div.post .post-image { opicity : 1.0 important; }
Anonymous 03/04/15 (Wed) 13:42:14 No. 5593
>>5591 >opicity typo, anon, "opacity".
Anonymous 03/04/15 (Wed) 14:20:33 No. 5595
>>5591 >>5593 That didn't change anything. Thanks though.
Anonymous 03/04/15 (Wed) 16:03:37 No. 5598
>>5595 Hmm the best way to do this is to set opacity on each portion you want to have opacity individually
/*user post's background and text color opacity*/ div.post.reply { background: rgba(214,218,240,0.2); color :rgba(0,0,0,0.2); } /*this is your top left arrow menu in every post*/ a.post-btn { opacity: 0.2; } /*this is Annonymous name, date, ect posted*/ p.intro{ opacity:0.2; } /*image posted file info on user oost*/ p.fileinfo{ opacity:0.2; } /*user reply reference post number*/ div.post.reply div.body a { opacity:0.2; } /*user quote text post*/ span.quote{ opacity:0.2; } /*user code tag's text post lel*/ pre.prettyprint.prettyprinted{ opacity:0.2; }
Anonymous 03/04/15 (Wed) 16:10:28 No. 5599
>>5598 correction
/*user code tag's text post*/ pre.prettyprint{ opacity:0.2; }
Anonymous 03/04/15 (Wed) 19:45:46 No. 5603
Board Owner of /late/ here
I need my regular text a lighter white
Links and replies to a blue, similar to Tomorrow CSS color. Same goes with the catalog button.
This is what I got on now
http://pastebin.com/wBa6ZfRC
Anonymous 03/04/15 (Wed) 23:52:01 No. 5619
How do I change the color of my basic text in a post? Like the basic black text of a post. I need help with this fast, because right now its fucking up my board.
Anonymous 03/05/15 (Thu) 00:20:31 No. 5622
>>5598 >background: rgba(214,218,240,0.2); That fixed it. Perfect. I kept putting the opacity and the colour separate.
>>5619 If you need it that badly, just take down your CSS until it's done.
Anonymous 03/05/15 (Thu) 00:21:24 No. 5623
>>5622 >>5598 >forgot to add 'thank you' Sorry, thanks.
Anonymous 03/05/15 (Thu) 00:29:50 No. 5625
Alright her comes a hard question. Anyone knows how to change background-image into another background-image through mouse hover in the main body tag?
Anonymous 03/05/15 (Thu) 00:55:28 No. 5627
>>5603 To change all text white in your body{} bit type in color:#fff;
It should look a little like this
body{ All your other shit; color:fff; } This will change all post text and the date and time and file text to white. If you want to ONLY change the post textyou'd need to find the option for posts and I'm not exactly sure what that is at the moment, I'd have to look it up. I think it's div.post.reply or something like that.
Anonymous 03/05/15 (Thu) 00:57:58 No. 5628
>>5619 see>>5627
replace the #fff with any color you desire.
if you put color:(Whatever hex color or RGBA color); in your body, it will change ALL text that relies on the default. AKA post reply, OP, file info and other misc text.
Anonymous 03/05/15 (Thu) 01:42:59 No. 5629
>>5627 aright thanks. The CSS on my board is no longer broken.
Anonymous 03/05/15 (Thu) 14:14:56 No. 5641
>>5625 .desktop-style body{background-image:url("link1");} .desktop-style body:hover{background-image:url("link2");} I don't think you can change the background of another element by hovering over the body, if that's what you were after.
Anonymous 03/05/15 (Thu) 21:29:27 No. 5647
>>5641 Yeah something like that, but I wish I could trigger it on a specific region since my background image isn't that big, which is locked inside the body tag. I tried looking for imagemap tutorial and apply its code but no luck getting it work. Same goes with css image fade tricks. I believe the main reason why it doesn't work because it needs to call an id identifier.
Anonymous 03/06/15 (Fri) 01:00:18 No. 5655
how do you make it so theres a gif in the bottom right hand corner that stays in the bottom right hand corner? What I'm talking about is exactly what
>>>/int/ has. Does anyone know how to do this?
Anonymous 03/06/15 (Fri) 01:36:45 No. 5660
>>5655 that gif is a background image set up inside a body tag.
body { background-image:url("dancingburger.gif"); background position:right left; }
Anonymous 03/06/15 (Fri) 01:37:59 No. 5661
>>5655 that gif is a background image set up inside a body tag.
body
{
background-image:url("dancingburger.gif");
background position:bottom right;
}
Anonymous 03/06/15 (Fri) 01:57:25 No. 5662
Anonymous 03/06/15 (Fri) 02:17:39 No. 5665
>>5660 >>5661 >>5662 Actually, not noice. I have another image as my generall background. Is there anyway to have the gif in the corner while still keeping my background image?
Anonymous 03/06/15 (Fri) 04:07:25 No. 5690
Anonymous 03/06/15 (Fri) 10:08:38 No. 5707
>How can I change the "implying" color?
Anonymous 03/06/15 (Fri) 17:31:00 No. 5713
Anonymous 03/07/15 (Sat) 01:00:18 No. 5726
Anonymous 03/07/15 (Sat) 20:16:41 No. 5755
>>5726 dont forget to put
body{ background-attachment: fixed; }in there
Anonymous 03/08/15 (Sun) 07:33:44 No. 5779
Does anyone know how to change the "spoiler image" text? I can't figure it out.
Anonymous 03/08/15 (Sun) 08:14:26 No. 5780
>>5779 I don't know if that's possible, because it seems like the spoiler image is just that: an image. You'd have to have a way to change the actual "spoiler" image, and I'm not sure if that can be done.
Anonymous 03/08/15 (Sun) 08:40:17 No. 5781
>>5780 The image? I changed the spoiler image. I want to change the text next to the textbox.
Anonymous 03/08/15 (Sun) 11:47:23 No. 5789
>>5756 it still isnt coming out right. This is what I have now:
body {
background: url(
https://media.8ch.net/loz/src/1425510823747.jpg ), url(
https://media.8ch.net/loz/src/1425607147196.gif );
background-attachment: fixed;
background position: bottom right;
color: #ffffff
}
>pic related to what it looks like on my board.I want the gif to be in the bottom right hand corner, and i want the jpg to be the basic background. The background turns out fine, but the gif never shows up.
Anonymous 03/08/15 (Sun) 11:48:20 No. 5790
>>5789 >>5781 oops. forgot the picture
>here is the pic related.
Anonymous 03/08/15 (Sun) 11:52:37 No. 5791
>>5790 you suppose to code
background-image:not
background:
Anonymous 03/08/15 (Sun) 12:41:14 No. 5793
>>5791 for both the gif and the jpg? or for just one of them?
Anonymous 03/08/15 (Sun) 12:49:52 No. 5795
>>5793 both, look closely how I coded in on this pic related
>>5756 . It not that hard.
Anonymous 03/08/15 (Sun) 20:05:44 No. 5805
>>5793 >>5790 >>5331 Hey, your boardlist and options are mismatched so I made this for you.
div.boardlist:not(.bottom) { background-color: #08360F!important; border-bottom: 1px solid #ECBC03!important; color: #0D6222; font-size: 10px; padding: 4px; } a, a:visited { text-decoration: none; color: #70C23C; } a:hover { color: #ECBC03; } a[title="Options"] { position: absolute; right: 12px; } #options_div{ background-color:#0D6222; margin:0; top:10%; height:80%!important; width:80%!important; border-bottom: 1px solid #ECBC03!important; border-top: 1px solid #ECBC03!important; border-right: 1px solid #ECBC03!important; } #options_tablist{ margin:0; padding:14px 6px 0; height:calc(100% - 14px); background-color: #0D6222; border-bottom: 1px solid #ECBC03!important; border-left: 1px solid #ECBC03!important; border-top: 1px solid #ECBC03!important; border-right: 1px solid #ECBC03!important; } .options_tab_icon{color:#70C23C;} .options_tab_icon.active{color:#ECBC03;} .options_tab{padding:20px;} .options_tab h2{color:#70C23C;} .options_tab textarea{ background-color:#CDF7A1; position:relative!important; top:0!important; left:0!important; bottom:0!important; right:0!important; border-left: 1px solid #ECBC03!important; border-right: 1px solid #ECBC03!important; margin-top:34px!important; width:100%!important; max-width:2000px; min-height:calc(100% - 60px); } .options_tab input[type="button"]{ top:42px; width:calc(18% - 4px)!important; left:20px!important; } #alert_div { width: 500px; background-color: #0D6222!important; border-bottom: 2px solid #ECBC03!important; border-top: 2px solid #ECBC03!important; border-left: 2px solid #ECBC03!important; border-right: 2px solid #ECBC03!important; } #watchlist{ position: fixed; top: 22px; right:1px; background-color:rgba(0,0,0,0.1); border-radius:4px; border-width:1px; border-style:solid; border-color: #ECBC03 #ECBC03 #ECBC03 #ECBC03; } This changes your options, your report pop up, and your boardlist and watchlist.
Anonymous 03/09/15 (Mon) 11:13:15 No. 5829
>>5805 Oh, thank you. I'll add this in as soon as I get back from work.
Anonymous 03/09/15 (Mon) 13:11:24 No. 5834
Anyone know how to work with the new shit HW added? My post button on the QR box is all mushed and I still want my spoiler images thing up by the add image button.
Anonymous 03/09/15 (Mon) 14:14:02 No. 5835
>>5834 I would wait a day or so before working on the Post Box's CSS, it's currently being changed, that squashed button is a bug
>>>/operate/6367
Anonymous 03/09/15 (Mon) 15:02:14 No. 5838
>>5834 LEL! I'm actually trying to fix that as well.
Anonymous 03/09/15 (Mon) 16:34:00 No. 5841
>>5834 here's your fix
#quick-reply tr td:nth-child(2) input[type="submit"] { width: 80px !important; }
Anonymous 03/09/15 (Mon) 18:09:35 No. 5844
How do I change the capcode?
Anonymous 03/10/15 (Tue) 02:30:02 No. 5860
>>5844 The color?
>>5841 >>5838 >>5835 HW fixed it but now the spoiler image checkbox is ugly as sin. How do I fix that?
Anonymous 03/10/15 (Tue) 22:09:40 No. 5872
>>5860 it should be temporary, Hotwheels is gunna change it Soonâ„¢ hopefully
>>>/operate/7284
Anonymous 03/11/15 (Wed) 13:17:11 No. 5901
I need some help. I have a good style I've been working on but it wont let me upload it… Do I need to change the formatting or do I need to validate the css somehow? Pic related
Anonymous 03/11/15 (Wed) 13:48:13 No. 5902
>>5901 You need to use https instead of http.
Anonymous 03/11/15 (Wed) 14:14:47 No. 5903
>>5902 Thank you, that helped.
One more thing - How do I make the custom css the default one for my board?
Anonymous 03/11/15 (Wed) 14:44:36 No. 5904
How do you change the border on the quotes which appear while hovering over a reply number on someone's post?
Anonymous 03/12/15 (Thu) 01:00:56 No. 5929
What I want to do: font size of the css styles at the bottom of the page to go up when hovered over
What happens: keeps pushing the rest of the line/page down and looks like shit.
div.styles a:hover { font-size: 14pt;} is all I added.
Any fix?
Anonymous 03/12/15 (Thu) 02:31:08 No. 5930
>>5903 there's a box at the bottom of your board settings page
Anonymous 03/12/15 (Thu) 09:55:04 No. 5942
>>5903 >>5930 Wait, what? There is an option for it? Or are you just talking about the stylesheet text box and not a checkbox?
Anonymous 03/13/15 (Fri) 04:46:44 No. 5959
>>5929 You should set your font styling from its specific class div. The code you wrote is narrowed down to global styling.
Anonymous 03/13/15 (Fri) 12:50:41 No. 5967
>>5904 div.post.reply.post-hover{ ect codes here }
Anonymous 03/13/15 (Fri) 21:03:14 No. 5976
>>5330 I'd like to make the CSS for my board (/txt/) better, but I'd kinda enjoy doing it myself, so I was wondering: Where is a good place to learn CSS? I know a bit, but not enough to make a theme (such as how people just magically know how to "contact" I guess, the code from the HTML file such as <div id="quick-reply">). Thanks.
P.S. I feel stupid asking this question, so sorry if it really is stupid. I've just had bad luck finding good teachers for things in the past.
Anonymous 03/13/15 (Fri) 22:20:52 No. 5979
>>5976 http://www.w3schools.com/css/ But seriously, it doesn't take that much of an effort to self learn and understand how to connect everything related to css in most part simply because you can look over it in 'inspect element' with firefox and use the 'select element with mouse' cursor feature. It tells you where and which div or id classes are related to where you click on that page.
Here's a video explain about 'inspect element' tool.
https://www.youtube.com/watch?v=4fZWATTNi1c
Anonymous 03/14/15 (Sat) 00:31:26 No. 5986
>>5904 >>5967 It makes these shaded lines along the right side and the bottom of the hover quote, I thought I might be able to remove it with a css but maybe its a part of a script. Either way I don't know how to change it. Anyone know how to fix that?
Anonymous 03/14/15 (Sat) 01:32:24 No. 5987
>>5986 Try add box-shadow: 0px 0px 0px rgb(153, 153, 153); inside-> div.post.reply.post-hover{} and see if that makes any difference.
Anonymous 03/14/15 (Sat) 03:07:20 No. 5990
>>5860 Not the capcode's color, but what it says.
For example, on /a/ "## Board Owner" is "## Head Meido."
Anonymous 03/14/15 (Sat) 11:21:56 No. 5997
>>5987 Thank you. At first it didn't work but as experienced as I am with css I figured out that I needed to add !important in there before the semicolon ; just posting this here so that for future reference it may help others as well :)
Anonymous 03/14/15 (Sat) 12:27:29 No. 5999
>>5997 >>5997 yes, adding !important would remove the particular inherited style for that div or id class, and replace it with new updated css code.
Anonymous 03/14/15 (Sat) 14:44:21 No. 6000
>>5990 You can sorta change it with pseudo-elements, but it's not perfect and it will not work when users change the theme to something else.
>>>/a/ got Hotwheels to manually change it for them, I suggest you either email him for this, or make a thread on
>>>/operate/ asking for a Board setting that lets you change what "Board Owner"/"Board Volunteer" says so that no one else has to bother PMing him directly.
Anonymous 03/14/15 (Sat) 15:22:52 No. 6001
>>5990 Meido was hardcoded by copypaste, but this is how /bane/ changed the
(You) to
(For You) :
.own_post{ visibility: hidden; position: relative; margin-right: 1.3em; } .own_post:after{ visibility: visible; position: absolute; top: 0; left: 0; content: '(For You)'; width: 9em; }
Anonymous 03/14/15 (Sat) 23:32:18 No. 6006
>>5976 You can figure it out simply enough. If you know a board with CSS you can like you can view that board's CSS by goin to 8ch.net/stylesheets/board/boardname.CSS
The stuff is named pretty plainly, though it may take a bit of messing with it to figure it out. If there is a new element not covered in the custom CSS you can go to any board with a default theme (and I'm assuming you have firefox, I don't know how to do this on other browsers) right click, hit inspect element, and then click on style editor It should list most of the stuff on the style.css and the various other things on the other tabs on the left hand side.
Anonymous 03/18/15 (Wed) 00:36:02 No. 6093
Whats the CSS to change the color of the cells on catalog view and the color of the mouse hover?
Anonymous 03/24/15 (Tue) 03:21:49 No. 6315
>>6093 .theme-catalog div.thread{ backgroud:whatverhexcolor; } .theme-catalog div.thread:hover{ backgroud:whatverhexcolor; }
Anonymous 03/24/15 (Tue) 06:20:39 No. 6317
>>6006 >8ch.net/stylesheets/board/boardname.CSS link doesn't work
Anonymous 03/24/15 (Tue) 14:06:05 No. 6321
>>6317 Are you putting the board name in the right spot?
For example if you wanted to look at /ebola/'s url you type in: 8ch.net/stylesheets/board/ebola.CSS
for a board like /v/ you type in 8ch.net/stylesheets/board/v.CSS
This is only assuming the board actually has a custom CSS.
Anonymous 03/24/15 (Tue) 14:07:20 No. 6322
>>6321 >>6317 Oh shit, just noticed the problem. the CSS is supposed to be lowercase.
Anonymous 03/25/15 (Wed) 00:06:55 No. 6333
Is there a way to customize smaller elements like [Reply] or is it impossible? I'm guessing the latter.
Anonymous 03/25/15 (Wed) 17:07:21 No. 6358
>>6333 As in the button? I'd assume so, you'd just need the name for the element.
Anonymous 03/25/15 (Wed) 20:40:59 No. 6362
>>6358 I haven't been able to affect it without affecting lots of other shit.
Anonymous 03/29/15 (Sun) 04:40:48 No. 6548
I'm testing out the following piece of css on
>>>/white/ .post-image { -webkit-filter: invert(100%); filter: invert(100%); }
It inverts the colors of the post images, and I'd like to know if it works on firefox and IE, as I only use chromium.
grayscale(100%) is also a thing.
Anonymous 03/30/15 (Mon) 09:57:09 No. 6587
I'm new here. Is there a base code I can use to edit myself? Also, where am I supposed to put the CSS?
Anonymous 03/30/15 (Mon) 13:44:52 No. 6589
>>6587 >base code Check out the example stylesheets here:
https://github.com/ctrlcctrlv/infinity/tree/master/stylesheets >where put CSS?check your board settings area
Anonymous 05/24/15 (Sun) 05:12:03 No. 8104
How do I change the color of the boardlist at the top of the screen?
When i edit the attributes of boardlist it only seems to change the one at the bottom.
Anonymous 05/24/15 (Sun) 06:42:20 No. 8109
reposting from operate
How to edit the text of the items next to the arrows? For the first one, the board name /name/
Anonymous 05/24/15 (Sun) 11:48:12 No. 8124
>>8109
try this
>Big header text
h1 { whatever}
>Catalog text
header div.subtitle > a{ whatever}
>Email's table
form table tr th:nth-of-type(1n) { whatever}
>Subject's table
form table tr th:nth-of-type(2n) { whatever}
>Comment's table
form table tr th:nth-of-type(3n) { whatever}
>File's table
form table tr th:nth-of-type(5n) { whatever}
Anonymous 05/24/15 (Sun) 17:59:49 No. 8139
Anonymous 05/24/15 (Sun) 19:34:53 No. 8143
This one might be tough. I'd like to set a single image to the middle of the background (position doesn't change when scrolling), and I'd also like it to be transparent. Any ideas?
Anonymous 05/24/15 (Sun) 22:38:27 No. 8155
>>8124
I don't think it worked
Here is the board in questions
>>>/anywherebuthere/
Anonymous 05/24/15 (Sun) 23:19:03 No. 8158
I'm trying to make an announcement on my board, but for some reason it's only displaying when I'm logged in as a moderator. Normally I can't see it, and neither can anyone else.
I've tried changing the text, it doesn't seem to matter.
Does anyone know what the problem might be?
Anonymous 05/24/15 (Sun) 23:39:08 No. 8160
>>8158
You've got to make a new post/thread to rebuild the board and see it
Also, old threads won't see it until you post in them
Anonymous 05/24/15 (Sun) 23:56:39 No. 8163
>>8160
oh, that's weird. Thank you.
Anonymous 05/25/15 (Mon) 17:10:50 No. 8194
>>8155
Do you even know how to css? When I post "whatever", you should know what code you should type in there.
Follow the guide in here >>8139 . Also the th:nth-of-type(?n) code might be wrong. Try replace it with th:nth-child(?).
Anonymous 05/25/15 (Mon) 17:28:29 No. 8197
>>8143
.desktop-style body::after{ content:""; z-index: -1; position:fixed; width: exact width of that image in px; height: exact height of that image in px; right : adjust image position in px or %; bottom : adjust image position in px or %; background-image:url('image-url-here'); background-repeat: no-repeat }
Anonymous 05/25/15 (Mon) 17:36:17 No. 8198
>>8197
But how would I adjust the opacity of the background image? I notice the z-index is set to -1, does this mean it would be positioned behind the background and I could just set the rgba of the background color in order to make it as transparent as desired?
Anonymous 05/25/15 (Mon) 17:43:28 No. 8199
>>8198
You need to edit your image using image editor to get its opacity. There's no way you can edit the image opacity by code.
Anonymous 05/25/15 (Mon) 17:47:08 No. 8200
>>8198
the z-index would apply against reply post div. It doesn't affect against the body {} tag background.
Anonymous 05/25/15 (Mon) 17:47:27 No. 8201
>>8199
Not the image itself, but since I can set the rgba of the background, then if the image were placed behind the background and the alpha was set to like 0.9 then the opacity of the image would be effectively 0.1, correct?
I think that's doing things the hard way, though. Do you have any software suggestions for image editing? Photoshop is out of the quesiton.
Anonymous 05/25/15 (Mon) 17:47:37 No. 8202
Anonymous 05/25/15 (Mon) 17:51:10 No. 8203
>>8201
>Do you have any software suggestions for image editing.
Krita, GIMP
Anonymous 05/25/15 (Mon) 17:53:07 No. 8204
Anonymous 05/27/15 (Wed) 01:17:27 No. 8278
Okay, so I changed the color of the hyperlinks on my board with
a:visited {color: #FF0000; text-decoration: underline; }
a:link {color: #FFFFFF; text-decoration: underline; }
I only wanted it to apply to the boardlists, but it's also applying to things like filenames and such in the posts. Is there any way to specify this?
It looks good for the board lists, but otherwise it's hard to see because my main background is fairly light. I added a lot of dark shadows to the links as a temporary solution, but it still looks very messy (and edgy).
>>>/otomad/
Anonymous 05/27/15 (Wed) 01:24:44 No. 8281
>>8278
and I know the underlies are superfluous
Anonymous 05/27/15 (Wed) 01:31:07 No. 8282
>>8278
Nevermind. Figured it out. Where's the delete button for this board?
Anonymous 05/28/15 (Thu) 02:35:06 No. 8308
>be me
>try to make a single code line
>fail
what I'm doing it wrong?
Anonymous 05/28/15 (Thu) 03:47:09 No. 8311
>>8308
use background-color
Anonymous 05/28/15 (Thu) 16:18:59 No. 8317
I have a gif set in the background on my CSS. I'd like it to only display on the various pages, not when inside threads. Is it possible to do this?
Anonymous 06/06/15 (Sat) 09:44:07 No. 8548
This might be a dumb question but where do I even enter my css code (did as >>6006 said, got one I like) for my board?
Anonymous 06/06/15 (Sat) 14:22:09 No. 8551
>>8548
"stylesheet" under board configuration
Anonymous 06/06/15 (Sat) 16:08:21 No. 8554
Anonymous 06/07/15 (Sun) 07:25:55 No. 8579
Which bit of the CSS refers to the colour of the text in the "subject" of a thread? How do I make this not blue? I can't seem to find it anywhere in the CSS code I'm using (stolen from another board)
Anonymous 06/07/15 (Sun) 13:08:07 No. 8582
>>8579
You can right click on the Subject text and click "Inspect Element" to read the page's source code and see what element the Subject is, as well as the CSS currently being applied to it.
Anonymous 06/07/15 (Sun) 14:07:39 No. 8583
>>8317
I think you'll have to tinker around with using CSS elements that only exist on the various pages , but not in threads, so that the gif can't appear in threads
Anonymous 06/07/15 (Sun) 21:08:51 No. 8587
>>8583
Are there any elements that fit that description?
Anonymous 06/07/15 (Sun) 21:10:39 No. 8588
>>8587
well, actually, now that I think about it I guess I there's the page numbers, but I'm not sure how that'd work. Could I try to place the gif relative to the page numbers, so that if the page number element wasn't displayed on the page the gif wouldn't be displayed either?
Anonymous 06/07/15 (Sun) 21:12:36 No. 8589
Anonymous 06/07/15 (Sun) 21:38:06 No. 8590
Anonymous 06/07/15 (Sun) 21:48:04 No. 8591
>>8590
if this is the gif you're talking about i see it on every page, not only inside threads, is this what you want?
Anonymous 06/07/15 (Sun) 23:04:58 No. 8594
>>8591
No, I don't want it to display when in threads.
Anonymous 06/07/15 (Sun) 23:28:45 No. 8595
>>8594
i'm sorry but i don't know how to do it then. I managed to make it work using page box as replacer but it's not a good solution cos you'll lose the page navigation menu..
another solution could be using that gif as textbox background.. it's not the same thing tho
textarea { background: url("https://media.8ch.net/otomad/src/1432833158675.gif "); min-height: 175px; max-width: 230px; padding: 2px 5px font-size: 1.5em; }
Anonymous 06/08/15 (Mon) 00:32:14 No. 8596
Is audio allowed on boards?
I'm not sure how to add audio from a link like pomf.
Anonymous 06/08/15 (Mon) 02:03:54 No. 8597
>>8596
Background music? You can't do that yet (or ever), it's not on the cards, you'll haves to ask Hotwheels (8chan) or Josh (Infinity-Next) for that feature.
If you mean just uploading audio files, you can't do that either, Hotwheels said he would support .ogg and .opus audio files (but not .mp3)
>>>/operate/17060
We're still waiting for the feature.
.mp3 files will be supported in Infinity-Next according to >>>/operate/19039, >>>/operate/19042
Anonymous 06/08/15 (Mon) 03:00:34 No. 8600
Anonymous 06/08/15 (Mon) 05:25:38 No. 8601
This is a modification of the scurv board theme. Needs more editing, though, I didn't even check the catalog page.
body { background: url("http://i.imgur.com/i5j9NfN.png ") repeat rgb(0, 0, 0); } body { color: rgb(205, 205, 205) !important; ; } div.post.reply { background: none repeat scroll 0% 0% rgba(33, 33, 33, 0.5) !important; border-right: 20px !important; border-bottom: 5px !important; border-style: none solid solid none !important; border-color: rgba(0, 0, 0, 0) !important; display: inline-block max-width: 94% !important; } span.pun { color: yellow; } span.lit { color: #169281; } time { color: white; font-weight: normal; } span.kwd { color: #3879D9; } div.blotter { color: white; } span.heading { color: wine; } a { color: #DC9D06; } tr:nth-child(2n) { background-color: rgba(33, 33, 33, 0) !important; } div.post.reply:hover { background: rgba(33, 33, 33, 0.8) !important } div.post.reply.post-hover { background: rgba(33, 33, 33, 0.8) !important; } div.post.reply.highlighted { background: rgba(77, 77, 77, 0.5) !important } a, a:visited, p.intro { text-decoration: none; !important; color: rgba(255, 181, 5, 1) !important; font-weight: normal; } span.name { text-decoration: none; !important; color: white !important; } div.boardlist { background-color: rgb(33, 33, 33) !important; } p.intro { color: #117743 !important; font-weight: bold !important; } span.quote { color: #047A00 !important; } p.intro span.subject { color: rgba(43, 201, 95, 1) !important; } .options_tab, #options_tablist { background-color: #212121 !important; } header div.subtitle, h1 { color: #FFB505; } div.boardlist { color: #89A !important; font-size: 10pt !important; } header, .content_menu, .button { background-color: transparent !important; } table.modlog tr th { background: none repeat scroll 0% 0% #212121 !important; } .theme-catalog div.thread:hover { background: none repeat scroll 0% 0% #212121 !important; border-color: #B7C5D9 !important; } .intro a.email span.name { color: #DA1515!important; } div.pages { color: #CDC6BA !important; background: #212121 !important; display: inline !important; padding: 8px !important; border-right: 1px solid #212121 !important; border-bottom: 1px solid #212121 !important; } form table tr th { background: #101010 !important; } style div.boardlist:nth-child(1) { border-bottom: 0px solid !important; } div.post.op { margin-right: 20px !important; margin-bottom: 5px !important; } div.ban h2 { background: #212121 !important; color: white !important; font-size: 12pt !important; } div.banner { background-color: #212121; } pre.prettyprint { padding: 10px; border: 0px solid #888 !important; background:rgba(0,0,0,0.45) !important; display: inline-block !important; } div.ban { background: white !important; border: 0px solid #98E !importanppet; max-width: 700px !important; margin: 30px auto !important; } span.pln { color: white; } div.ban p { font-size: 12px !important; margin-bottom: 12px !important; color: black !important; } body > div.ban { color: black !important } .banlist-opts .checkboxes label { display: block; color: white !important; } tr.tblhead > th { color: white !important; } user agent stylesheetstrong, b { font-weight: bold !important; } #banlist td:hover { overflow: visible !important; height: auto !important; background-color: #212121 !important; z-index: 1 !important; position: relative !important; border: 1px solid black !important; padding: 1px !important; color: white !important; } #content > div.col.col-9.bodyCol > div > table > tbody > tr:nth-child(2) { background-color: #212121 !important; } table tbody tr:nth-of-type( even) { background-color: #101010 !important; } .desktop-style div.boardlist:not(.bottom) { border-bottom: 0px solid !important; } .post-menu ul { background-color: rgba(33, 33, 33, 0.5) !important; border: 0px solid #666 !important; } #options_div, #alert_div { background-color: #101010; } .cb-menuitem { display: table-row; } .cb-menuitem span { padding: 5px; display: table-cell; text-align: left; border-top: 1px solid rgba(0,0,0,0.5); }
Anonymous 06/08/15 (Mon) 06:02:52 No. 8603
>>8601
>>8602
I like what you did with the postmenu icon!
Anonymous 06/08/15 (Mon) 07:17:54 No. 8605
>>8603
What postmenu icon, anon? And in which theme? BTW, this is the one I generally used. It's a modification of another theme, also, with some tweaks to fit my preferences.
body { background: url("http://i.imgur.com/f3veYKD.png ") repeat rgb(0, 0, 0); } body { color: rgb(205, 205, 205) !important; ; } div.post.reply { background: none repeat scroll 0% 0% rgba(33, 33, 33, 0.5) !important; border-right: 20px !important; border-bottom: 5px !important; border-style: none solid solid none !important; border-color: rgba(0, 0, 0, 0) !important; display: inline-block max-width: 94% !important; } span.pun { color: yellow; } span.lit { color: #169281; } time { color: white; font-weight: normal; } span.kwd { color: #3879D9; } div.blotter { color: white; } span.heading { color: #FFB505 !important; font-size: 14pt !important; } a { color: #DC9D06; } tr:nth-child(2n) { background-color: rgba(33, 33, 33, 0) !important; } div.post.reply:hover { background: rgba(33, 33, 33, 0.8) !important } div.post.reply.post-hover { background: rgba(33, 33, 33, 0.8) !important; } div.post.reply.highlighted { background: rgba(77, 77, 77, 0.5) !important } a, a:visited, p.intro { text-decoration: none; !important; color: rgba(255, 181, 5, 1) !important; font-weight: normal; } span.name { text-decoration: none; !important; color: white !important; } div.boardlist { background-color: rgb(33, 33, 33) !important; } p.intro { color: #117743 !important; font-weight: bold !important; } span.quote { color: #047A00 !important; } p.intro span.subject { color: rgba(43, 201, 95, 1) !important; } .options_tab, #options_tablist { background-color: #212121 !important; } header div.subtitle, h1 { color: #FFB505; } div.boardlist { color: #89A !important; font-size: 10pt !important; } header, .content_menu, .button { background-color: transparent !important; } table.modlog tr th { background: none repeat scroll 0% 0% #212121 !important; } .theme-catalog div.thread:hover { background: none repeat scroll 0% 0% #212121 !important; border-color: #B7C5D9 !important; } .intro a.email span.name { color: #DA1515!important; } div.pages { color: #CDC6BA !important; background: #212121 !important; display: inline !important; padding: 8px !important; border-right: 1px solid #212121 !important; border-bottom: 1px solid #212121 !important; } form table tr th { background: #101010 !important; } style div.boardlist:nth-child(1) { border-bottom: 0px solid !important; } div.post.op { margin-right: 20px !important; margin-bottom: 5px !important; } div.ban h2 { background: #212121 !important; color: white !important; font-size: 12pt !important; } div.banner { background-color: #212121; } pre.prettyprint { padding: 10px; border: 0px solid #888 !important; background:rgba(0,0,0,0.45) !important; display: inline-block !important; } div.ban { background: white !important; border: 0px solid #98E !importanppet; max-width: 700px !important; margin: 30px auto !important; } span.pln { color: white; } div.ban p { font-size: 12px !important; margin-bottom: 12px !important; color: black !important; } body > div.ban { color: black !important } .banlist-opts .checkboxes label { display: block; color: white !important; } tr.tblhead > th { color: white !important; } user agent stylesheetstrong, b { font-weight: bold !important; } #banlist td:hover { overflow: visible !important; height: auto !important; background-color: #212121 !important; z-index: 1 !important; position: relative !important; border: 1px solid black !important; padding: 1px !important; color: white !important; } #content > div.col.col-9.bodyCol > div > table > tbody > tr:nth-child(2) { background-color: #212121 !important; } table tbody tr:nth-of-type( even) { background-color: #101010 !important; } .desktop-style div.boardlist:not(.bottom) { border-bottom: 0px solid !important; } .post-menu ul { background-color: rgba(33, 33, 33, 0.5) !important; border: 0px solid #666 !important; } #options_div, #alert_div { background-color: #101010; } .cb-menuitem { display: table-row; } .cb-menuitem span { padding: 5px; display: table-cell; text-align: left; border-top: 1px solid rgba(0,0,0,0.5); }
Anonymous 06/08/15 (Mon) 13:08:14 No. 8607
How do I set a new CSS as board owner? I tried pasting the code in the stylesheet field, but it didn't do anything. Pls halp.
Anonymous 06/08/15 (Mon) 14:34:56 No. 8609
>>8607
Have you tried viewing your board as a normal user?
What does https://8ch.net/stylesheets/board/yourboardname.css show?
Anonymous 06/08/15 (Mon) 16:37:52 No. 8610
>>8609
>Have you tried viewing your board as a normal user?
Yeah.
>https://8ch.net/stylesheets/board/yourboardname.css
Thanks for the link.
You can simply paste links to other boards' css in the stylesheet field, right?
Anonymous 06/09/15 (Tue) 05:04:20 No. 8618
>>8610
Uh, I haven't tried it but I guess something like @import url("https://blahblah.blah/blah.css "); might work.
I'd just copy+paste the css itself into the stylesheet box.
Anonymous 06/09/15 (Tue) 10:40:28 No. 8622
>>8618
Alright, thanks for the help m8.
I think I've got it figured out now.
Test 06/09/15 (Tue) 21:43:02 No. 8637
Shouldn't our main CSS be something more personal? Last night I was messing around on >>>/pol/2289822 and I've been wondering about this. What do you guys think?
Anonymous 08/01/15 (Sat) 04:31:02 No. 9409
Does anyone know how to hide the new ads? I can't get anything to work.
Anonymous 08/01/15 (Sat) 07:00:15 No. 9410
>>9409
I don't know why you'd want to, the new ones are a lot more interesting.
div[id="8ch-bottom"], div[id="8ch-top-ads"] { display: none !important; }
Anonymous 08/01/15 (Sat) 07:23:36 No. 9411
Thanks!
The ads aren't terrible but I keep seeing the same ones.
Anonymous 08/17/15 (Mon) 19:46:16 No. 9556
How can I make the board log more readable without messing anything up on the main board?
https://8ch.net/log.php?board=roze
Anonymous 08/18/15 (Tue) 00:42:58 No. 9557
>>9556
.modlog tbody tr:nth-of-type( even ) { background: none; }
Anonymous 08/18/15 (Tue) 01:58:00 No. 9558
Anonymous 08/23/15 (Sun) 23:25:45 No. 9578
>>5330
What game is that screencap from?
Anonymous 08/29/15 (Sat) 03:16:11 No. 9613
Ruggarell !!/.w2RQAw9s 09/03/15 (Thu) 13:29:13 No. 9639
how do I force sage in email field :^)
Ruggarell !!/.w2RQAw9s 09/03/15 (Thu) 13:35:24 No. 9641
How do I make an image stretch among the whole background?
Ruggarell !!/.w2RQAw9s 09/03/15 (Thu) 14:02:29 No. 9642
css to automatically ban anybody who says a filtered word?
Anonymous 09/05/15 (Sat) 08:08:33 No. 9651
How do I view a board's css?
Anonymous 10/04/15 (Sun) 08:04:18 No. 9714
When posting a short comment + video/image, the word wrapping can be pretty terrible.
A narrow column of words, only a couple per line. >>>/film/3034
Or, one word stuck above the image and the rest of the comment below it. >>>/mu/55042
Has anyone tried to fix this sort of thing with CSS, if it's even possible?
Anonymous 10/04/15 (Sun) 10:54:07 No. 9715
>>9651
You can either view the source css with your browser or use the link ;
>>8609
If its your board then in the control panel you go to board -> settings to bring up the board configuration.
Changes to the css may take a while to show or may require the refreshing of the browser.
View the board as a regular user to see the css changes.
>>9714
https://8ch.net/operate/res/37373.html
Anonymous 10/18/15 (Sun) 03:32:35 No. 9762
Anonymous 04/02/16 (Sat) 02:09:14 No. 9944
Does anyone know where I can get the CSS that halfchan uses on October 1st?
I'd like to use the code that makes birthday hats appear on the posts.
Anonymous 04/03/16 (Sun) 16:01:26 No. 9945