This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#76 2012-10-08 19:43:14

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: CSS Discussion

i automatically semicolon everything ;o


Posts: 20000 - Show all posts

Offline

 

#77 2012-10-08 20:08:23

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: CSS Discussion

I think you mean;

veggieman001 wrote:

i automatically semicolon everything ;o;


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#78 2012-10-08 20:09:00

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: CSS Discussion

no because that makes it look like i'm crying
i meant while programming!


Posts: 20000 - Show all posts

Offline

 

#79 2012-10-08 20:24:24

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: CSS Discussion

really?;

because it's bad syntax not to end everything with a semicolon;


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#80 2012-10-08 20:39:30

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: CSS Discussion

yeah and it doesn't work then;


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#81 2012-10-08 21:07:13

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: CSS Discussion

No semicolons === error;


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#82 2012-10-08 21:44:30

luiysia
Scratcher
Registered: 2011-07-05
Posts: 1000+

Re: CSS Discussion

yeah but it's just a hassle and I always forget! I dunno what they would use otherwise though


http://i50.tinypic.com/dx00pd.gif

Offline

 

#83 2012-10-08 21:46:28

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: CSS Discussion

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


Posts: 20000 - Show all posts

Offline

 

#84 2012-10-08 21:49:20

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: CSS Discussion

Well, it does in PHP;

Not so much so in JS I don't think, though I'm not quite sure about that;


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#85 2012-10-08 21:56:12

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: CSS Discussion

yeah in php
not in js or css


Posts: 20000 - Show all posts

Offline

 

#86 2012-10-08 21:59:09

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: CSS Discussion

CSS just doesn't work without semicolons;

Doesn't give you an error though;


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#87 2012-10-08 22:01:52

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: CSS Discussion

nice summarising skills


Posts: 20000 - Show all posts

Offline

 

#88 2012-10-08 22:02:11

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: CSS Discussion

Thanks;


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#89 2012-10-08 22:19:02

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: CSS Discussion

clap clap clap;


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#90 2012-10-08 22:47:59

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: CSS Discussion

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):

Code:

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

 

#91 2012-10-12 22:29:20

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: CSS Discussion

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.  smile

you can already do that though with calc()

It's not very widely supported, though.


http://trinary.tk/images/signature_.php

Offline

 

#92 2012-10-12 22:31:05

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: CSS Discussion

Gravitation wrote:

mythbusteranimator wrote:

I love the "class" feature.

I love it too, it's like, so convenient.

Yes, it is.


http://trinary.tk/images/signature_.php

Offline

 

#93 2012-10-13 07:40:52

transparent
Scratcher
Registered: 2011-04-19
Posts: 1000+

Re: CSS Discussion

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.  smile

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.


yes, yes i do.

Offline

 

#94 2012-10-13 07:55:53

Gravitation
New Scratcher
Registered: 2012-09-26
Posts: 500+

Re: CSS Discussion

transparent wrote:

Yes, and sometimes even in Firefox when I use webkit properties.  tongue

Yeah, the whole -moz- -webkit- -o- -ms- thing. *shudder*

Offline

 

#95 2012-10-13 07:57:43

transparent
Scratcher
Registered: 2011-04-19
Posts: 1000+

Re: CSS Discussion

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.


yes, yes i do.

Offline

 

#96 2012-10-13 07:59:04

Gravitation
New Scratcher
Registered: 2012-09-26
Posts: 500+

Re: CSS Discussion

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

 

#97 2012-10-13 08:05:07

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: CSS Discussion

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;


http://i.imgur.com/1QqnHxQ.png

Offline

 

#98 2012-10-13 08:30:17

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: CSS Discussion

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  tongue


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#99 2012-10-13 08:33:29

transparent
Scratcher
Registered: 2011-04-19
Posts: 1000+

Re: CSS Discussion

I can see that being a problem. >_<


yes, yes i do.

Offline

 

#100 2012-10-13 12:04:58

projectcafe
New Scratcher
Registered: 2012-03-14
Posts: 7

Re: CSS Discussion

Beautiful CSS makes all the difference.

Offline

 

Board footer