I think you mean;
veggieman001 wrote:
i automatically semicolon everything ;o;
Offline
no because that makes it look like i'm crying
i meant while programming!
Offline
really?;
because it's bad syntax not to end everything with a semicolon;
Offline
yeah and it doesn't work then;
Offline
No semicolons === error;
Offline
jji7skyline wrote:
No semicolons === error;
*"error" ;o
and no
it just doesn't display properly
it doesn't yell at you though
it probably should
Offline
Well, it does in PHP;
Not so much so in JS I don't think, though I'm not quite sure about that;
Offline
CSS just doesn't work without semicolons;
Doesn't give you an error though;
Offline
Thanks;
Offline
clap clap clap;
Offline
What I really hate about CSS is that whenever you have a canvas, if you use css styling, the drawings in the canvas are not going to be whatever dimensions you say, also with images in divs (well I know it happens in my browser(safari), not sure about the others). Here's and example (copy and paste this into url bar, the press enter):
javascript:var bod=document.getElementsByTagName("body")[0]; bod.innerHTML=""; var c=document.createElement("canvas"); bod.appendChild(c); c.style.borderStyle="solid"; c.style.borderWidth="2px"; c.style.height="200px"; c.style.width="200px"; ctx=c.getContext("2d"); ctx.fillStyle="#FF0000"; ctx.fillRect(20,20,20,20); var d=document.createElement("canvas"); bod.appendChild(d); d.style.position="absolute"; d.style.left="500px"; d.style.borderStyle="solid"; d.style.borderWidth="2px"; d.height="200"; d.width="200"; dtx=d.getContext("2d"); dtx.fillStyle="#00FF00"; dtx.fillRect(20,20,20,20); var para=document.createElement("p"); bod.appendChild(para); para.style.top="400px"; para.style.left="20px"; para.innerHTML="the red square is the one on the canvas with the dimensions of the canvas in CSS, while the green square has the dimensions put in HTML. Both use the same measurements to draw the square which is: 20px from the top, 20px from the left, and have the square be 20x20. As you can see, the one styled with CSS, is not a square, but a rectangle.";
Last edited by TorbyFork234 (2012-10-09 00:13:10)
Offline
veggieman001 wrote:
transparent wrote:
Yeah that is possible with Javascript. Personally, I don't think that CSS should use that though, as helpful as it is, because it's really not a 'language' itself. Just a simple styling system.
Perhaps if they used it along with a percentage. Like 100% -100px or something.you can already do that though with calc()
It's not very widely supported, though.
Offline
trinary wrote:
veggieman001 wrote:
transparent wrote:
Yeah that is possible with Javascript. Personally, I don't think that CSS should use that though, as helpful as it is, because it's really not a 'language' itself. Just a simple styling system.
Perhaps if they used it along with a percentage. Like 100% -100px or something.you can already do that though with calc()
It's not very widely supported, though.
Perhaps that's why I've never heard of it.
Offline
transparent wrote:
Yes, and sometimes even in Firefox when I use webkit properties.
Yeah, the whole -moz- -webkit- -o- -ms- thing. *shudder*
Offline
Yeah, they really need to buckle down to work better together. Sure, I know some things are features in a certain browser, but come on, most of this stuff is essential web styling that needs to be universal.
Offline
transparent wrote:
Yeah, they really need to buckle down to work better together. Sure, I know some things are features in a certain browser, but come on, most of this stuff is essential web styling that needs to be universal.
Yeah. Gradients are a pain.
Offline
TRocket wrote:
veggieman001 wrote:
i automatically semicolon everything ;o
same;
and I keep pressing Ctrl-Space to finish words;
And I keep spelling everything the British way which doesn't work;
I hate having to use color in CSS and stuff
Offline
I can see that being a problem. >_<
Offline
Beautiful CSS makes all the difference.
Offline