r/csshelp • • May 05 '13

Resolved Syntax error: No start { of style declaration found. How do I fix this?

6 Upvotes

Screenshot

The whole code is:

<div style="display: block !important; position: relative !important;    left: 0 !important; top: 0 !important; max-height: none!important;    overflow: auto !important; text-indent : 0 !important; font-size 12px !important;z-index: 2147483647    !important;">_</div>

<div id="subButtons-css" class="subButtons" style="margin: 0 !important;">_</div>

<span class="subscriber">_</span>

<p class="users-online fuzzed" title="logged-in users on this subreddit in the last 15 minutes">

    <span class="number" style="

        position: absolute

        top: 4em

        left: 10.4em

        z-index: 1000000

        background-color: red>

    <span class="word">users here right now</span>

</p>

<form class="toggle flairtoggle">_</form>x

<div class="tagline">_</div>

<form action="#" class="usertext" onsubmit="return post_form(this, 'editusertext')" id="form-t5_2qifvr5s">_</form>

The whole error is:

[line 16] syntax error: "CSSStyleRule: No start { of style declaration found: u'<div style="display: block !important; position: relative !important; left: 0 !important; top: 0 !important; max-height: none!important; overflow: auto !important; text-indent : 0 !important; font-size 12px !important;z-index: 2147483647 !important;">_</div>\n<div id="subButtons-css" class="subButtons" style="margin: 0 !important;">_</div>\n<span class="subscriber">_</span>\n<p class="users-online fuzzed" title="logged-in users on this subreddit in the last 15 minutes">\n<span class="number" style="\nposition: absolute\ntop: 4em\nleft: 10.4em\nz-index: 1000000\nbackground-color: red>\n<span class="word">users here right now</span>\n</p>\n<form class="toggle flairtoggle">_</form>x\n<div class="tagline">_</div>\n<form action="#" class="usertext" onsubmit="return post_form(this, \'editusertext\')" id="form-t5_2qifvr5s">_</form>\n' [16:1: ]"

I am a beginner in CSS coding. Any help would be greatly appreciated. Thanks!


r/csshelp • • Apr 28 '13

Resolved "You have mail!" using the .havemail:after class?

6 Upvotes

I'm not sure if it's possible, but I've been trying to make a message pop up when you have a message in your inbox. I have this now:

					.havemail:after {
						position: absolute !important;
						display: block !important;
						height: 50px !important;
						width: 50px !important;
						top: 150px !important;
						left: 40px !important;
						background-color: purple !important;
						color: white !important;
						content: "You have mail" !important;
						z-index: 999 !important;
					}

It doesn't seem to work though, :< anyone has any ideas?


r/csshelp • • Apr 21 '13

How do you customize a text color for flair?

6 Upvotes

I have this already

/*flair only works for one person */
.author[href$="/Single_Username"]:after {
color: red;
content: " But users can't add it themselves and clutters CSS"
}

Please CSS gods, you're my only hope.


r/csshelp • • Apr 17 '13

image flair?

6 Upvotes

Hi, I've seen alot of subreddits that have a small image of their flair instead of simple text. And I've been google'ing like crazy with no results. Anyone able to explain this to me in baby language?

Best regards


r/csshelp • • Apr 15 '13

Quick Question about r/noahJK- it's a little off topic though.

6 Upvotes

What was NoahJK I keep seeing mentions to it in this subreddit, especially to its wiki. What was /r/noahjk and what's up with all the references to it? And what happened to it, why can't I see anything?


r/csshelp • • Apr 12 '13

[Tutorial] How to create flair for your sub in 15 easy to follow steps

6 Upvotes

It is all here Feel free to ask questions, I tried to be specific as possible.


r/csshelp • • Apr 07 '13

Adding a photo to the sidebar.

6 Upvotes

I am sure this is a very easy thing, however I am having trouble with it.

I want to add a photo to my sidebar, but not a background image.

r/boxed has exactly what I want.

I want to add an image of my link flair, so the community can appropriately tag their posts.

Any suggestions?


r/csshelp • • Mar 31 '13

How to make color themes available on my sub?

6 Upvotes

r/ELI5 does exactly what I want on my sub! Where it says: "Themes! Click on a color to use that theme." And they even have a "suggest a theme" box.


r/csshelp • • Mar 25 '13

Could Someone help me with creating user flair? I've looked around a bit, and I can't seem to find anything that I can really understand. Thanks in advance!

6 Upvotes

r/csshelp • • Mar 10 '13

Is there a way to change the NSFW button so it says spoiler instead? NSFW

6 Upvotes

So instead of it looking like this I want it to say "SPOILER". It's for my subreddit /r/PrettyLittleLiars. Thanks!


r/csshelp • • Mar 02 '13

Hi, I mod a small minecraft related subreddit and I recently added image flair to go along with our users username as text flair, but the image flair seems to overlap with the text flair, any idea on how to fix this

6 Upvotes

/r/fishycraft is the subreddit and [here] (http://www.reddit.com/r/FishyCraft/comments/178ak1/give_me_your_fishy_user_names_and_i_will_give_you/) is an example of the issue I am having, look for the users Hinata7blood and Valforia, their text flair and image flair are overlapping and I am having issues fixing it. Thanks in advance to anyone who can help me.


r/csshelp • • Feb 08 '13

Resolved List of Valid Wiki Table Formatting?

6 Upvotes

Has anyone worked out which HTML table tags will work in the newish reddit wiki system? Most of the usual tags for borders, spacing, padding, etc. don't seem to have any effect as far as I can tell.


r/csshelp • • Jan 25 '13

Any primer on how to override the Wiki CSS?

6 Upvotes

The headers are a bit too huge for my tasting. But when I try to use the same CSS as the wiki it is always over-ridden. It's like their CSS file is placed after our subreddits CSS style making it more difficult than it needs to be... Maybe I am just missing something.


r/csshelp • • Jan 22 '13

HELP? Arrow Images for Dummies.

6 Upvotes

I'm trying to customize my subreddit and I've found some information on how to change it but I frankly don't understand. Could someone put it in VERY simplistic terms (like, step by step) thanks.


r/csshelp • • Dec 31 '12

How do you adjust the top bar to be compatible with RES nightmode?

6 Upvotes

In /r/ffxi, my header bar at the top looks fine without RES nightmode. But in nightmode, it creates a black/grey blank bar at the top.

Screenshot: http://i.imgur.com/FBRHp.jpg

How can I fix my CSS to not make that happen?


r/csshelp • • Dec 25 '12

Is it possible to modify the redirect page for a subreddit made private?

6 Upvotes

I own the subreddit r/fredericton that gets easily confused with r/freddit because we give ours the nickname Freddit for fun. The r/Freddit is set to private so I figured if I send them everything they need css-wise then it will be easier for to convince them to change it to help redirect lost users to r/fredericton.

Is this possible? I'm not even sure people have considered it yet :P


r/csshelp • • Oct 26 '12

Need help using a spritesheet for deadb33f's random image css from /r/stunts.

6 Upvotes

Hello. We need help getting this working somehow, if it's possible. Any input on why this isn't working, or how to make it work is appreciated.

/*Random image container*/ 
input[name=uh] ~ a:after {
    position: absolute !important;
    top: 25px !important;
    right: 5px !important;
    width: 300px !important;
    height: 250px !important;
    z-index: 100 !important;
    border: 0 !important;
    font-size: 0px !important;  
}
.side .usertext-body h3:last-of-type a {
    position: absolute !important;
    top: 25px !important;
    right: 0px !important;
    width: 300px !important;
    height: 250px !important;
    z-index: 100 !important;
    border: 0 !important;
    font-size: 0px !important;
}
 /*36 random images to appear at the top of the sidebar*/ 

input[name=uh][value$="0"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 0!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}
input[name=uh][value$="1"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 -255px!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}
input[name=uh][value$="2"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 -510px!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}
input[name=uh][value$="3"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 -765px!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}
input[name=uh][value$="4"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 -1020px!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}
input[name=uh][value$="5"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 0!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}
input[name=uh][value$="6"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 -255px!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}
input[name=uh][value$="7"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 -510px!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}
input[name=uh][value$="8"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 -765px!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}
input[name=uh][value$="9"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 -1020px!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}
input[name=uh][value$="a"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 0!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}
input[name=uh][value$="b"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 -255px!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}
input[name=uh][value$="c"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 -510px!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}
input[name=uh][value$="d"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 -765px!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}
input[name=uh][value$="e"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 -1020px!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}
input[name=uh][value$="f"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 0!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}
input[name=uh][value$="g"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 -255px!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}
input[name=uh][value$="h"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 -510px!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}
input[name=uh][value$="i"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 -765px!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}
input[name=uh][value$="j"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 -1020px!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}
input[name=uh][value$="k"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 0!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}
input[name=uh][value$="l"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 -255px!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}
input[name=uh][value$="m"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 -510px!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}
input[name=uh][value$="n"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 -765px!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}
input[name=uh][value$="o"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 -1020px!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}
input[name=uh][value$="p"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 0!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}
input[name=uh][value$="q"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 -255px!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}
input[name=uh][value$="r"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 -510px!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}
input[name=uh][value$="s"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 -765px!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}
input[name=uh][value$="t"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 -1020px!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}
input[name=uh][value$="u"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 0!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}
input[name=uh][value$="v"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 -255px!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}
input[name=uh][value$="w"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 -510px!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}
input[name=uh][value$="x"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 -765px!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}
input[name=uh][value$="y"]~a:after {background:url(%%sbsprite%%) no-repeat!important; background-position:0 -1020px!important; display:inline-block!important;cursor:default!important;width: 300px !important; height: 250px !important;}

r/csshelp • • Sep 28 '12

Is it possible to have two subreddit layouts?

6 Upvotes

Is there a way to have two subreddit layouts that users can choose between? Maybe if there were a button in the sidebar that let you choose (sort of like the lights off option on some websites). When clicking said button, the image header, background, and image in the sidebar changes.

Are there any subreddits that have this? Thanks!


r/csshelp • • Sep 24 '12

Trying to crate a sprite sheet with over 300 images. What is the quickest and easiest way to create and implement said sprite sheet?

6 Upvotes

Title says it all, I'm a moderator for the /r/Bengals subreddit and I'm trying to add flair with jerseys in 3 different colors using numbers 00 through 99. It's taken me quite a while, but I've finally put in waaaay too much time and now have 300 images that need to go into a sprite sheet and then into the custom CSS.

Are there any easy ways to do this, or are my hands going to fall off due to the amount of tedious labor ahead of me?

Thanks for your help!

VERYstuck


r/csshelp • • Aug 27 '12

Resolved making a sidebar section or link visible only to subscribers, is it possible?

6 Upvotes

basically I'd like to have a chat room for a subreddit but the link to it visible to subscribers only... to boost subscriptions and to keep trolls away.


r/csshelp • • Aug 26 '12

Anyone interested in being a mod to help me program?

6 Upvotes

I just started a subreddit for a semi-popular to unknown books series, the Morganville Vampires. I feel it would give the books some recognition, but I need help making it look good. If anyone out there would like to help I would be eternally grateful.

For clarification:

I'm a noob who doesn't know what she's doing, I'm not new to Reddit, I just can't figure out this CSS stuff.

I just need someone to help program some stuff, but you could be a mod for however long you like.

I would like to talk for a bit, just to be sure of what we're doing, and what our jobs would be. Please help! I really need it ):


r/csshelp • • Jun 08 '12

How do I hide posters usernames from being shown on a sub-reddit (like /r/4chan does) and only Mods can see the usernames?

6 Upvotes

r/csshelp • • May 28 '12

Is is possible to override RES styling?

6 Upvotes

I'm currently overhauling a theme for a subreddit and I've run into a small snag. The overall theme is quite dark and looks decent as it is, but RES is adding certain elements that only work to complement Reddit's default formatting (such as white borders around comment boxes).

I've tried searching the /r/CSSHelp archives and a few of them hinted to the future addition of some tags that would help people with my problem, but I've no idea if they've been implemented or not and I don't exactly know how to go about discovering it.

This is pretty much the last snag I have with my theme and I'd like to do what can be done to make this subreddit just a good looking for RES users as it is for default redditors.


r/csshelp • • Apr 27 '12

Me again... I've accidentally managed to move the moderation tools box to the top of the sidebar, before all the sub information. How do I fix that?

6 Upvotes

r/csshelp • • Apr 08 '12

What are the dimensions for the top banner?

6 Upvotes

Assuming the width is the only requirement, what dimensions should I make the top banner for my subreddit?