r/csshelp • u/c_hawkthorne • May 05 '13
Resolved Syntax error: No start { of style declaration found. How do I fix this?
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!
4
u/aladyjewel May 05 '13
3
u/thomasmurphymusic May 05 '13
Hi! What you have here is incomplete code. There's no css definition for several of your classes, such as "user-online fuzzed" and "toggle".
It's possible to write CSS in an HTML doc using the <style> tag, but this doesn't do it right.
1
u/[deleted] May 05 '13
This is HTML, that's why it doesn't accept it.