Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Java script or css Re: Java script or css

#135881
Merri
Participant

No. You can’t do same things with them. They are entirely different.

CSS is a way for styling the elements you see on the document. It provides no logic on it’s own, you can’t do programming with it. CSS can do some tricks that make it seem like you’re modifying the document, but you really aren’t touching it all. It is only what you see that changes. Never the underlying logic or structure.

JavaScript is a way for modifying the document and it’s structure on-the-fly, thus providing logic and as such is a full programming language. These days one of the most popular things to do with it is to communicate with the server so that no full page reload is necessary, giving a much smoother user experience as a result.