Teen Programmers Unite  
 

 

Return to forum top

What`s with that CSS stuff??

Posted by IIPen [send private reply] at July 26, 2001, 04:53:54 PM

Wow , it`s been years since I`ve last created a website... don`t even remember the number of the html spec... and now after many years the need of making websites have returned with much bigger strength ... so I sat in front of my computer with great will on creating something...Suddenly I`ve discovered that many things have changed... many things are not the same anymore... and I`ve discovered CSS... after many hours of searching for the CSS docs(which couldn`t help me with a problem I`ve got) I have decided to come to this site...and here comes the question...

I need to give a radio box , or a check box an identificator in order to point to it in my java scripts(which I found preaty easy to use :P ) how to do it?? Any ideas??

And another one (related to this topic): How to use all this CSS stuff????What is it?? Do I need it??? Where can I find a good docs on it??? Please heeeelllppp!!!! :P


Posted by Psion [send private reply] at July 26, 2001, 06:30:58 PM

I think you give a radio or check box a name just like you would anything else, with the name attribute of its tag. CSS lets you specify tag properties in one place and have tags in other places simply reference those classes of properties. The TPU site uses it. I can change the whole look of the site by altering one static file, tpu.css, about which the server need not worry, since it is clients that retrieve it and apply the styles. You can find tutorials on dmoz, as usual. (http://dmoz.org/)

Posted by AngelOD [send private reply] at July 26, 2001, 07:26:18 PM

To access a radio box with JavaScript, you don't have to use CSS at all.. I don't use HTML4, and I limit my use of CSS in HTML3-pages, so I'm not quite sure, but I believe that you're thinking about the so-called DOM.

Anyway, my suggestion is, that you check http://www.w3.org for info on HTML, CSS, DOM and other internet standards. :o)

Posted by triplec1986 [send private reply] at July 27, 2001, 03:16:03 PM

What is DOM?

Posted by taubz [send private reply] at July 27, 2001, 04:15:45 PM

Document Object Model. It's the hierarchy implemented by MS IE or Netscape that's used in Javascript (and elsewhere) to represent the HTML page. For instance, window.document.MyForm.TheCheckBox is a statement in JavaScript that exemplifies the DOM. A window has a document. A document has forms, and forms have fields.

Other things in there are the properties, methods, and events associated with each object type (eg document.location, input.onclick).

Unfortunately, the DOM implemented by IE isn't exactly the same as the DOM implemented by Netscape. (DOM might be an IE-specific term. I'm not sure.)

- taubz

Posted by infryq [send private reply] at July 27, 2001, 08:34:24 PM

you're right, there are some that IE accepts and Netscape doesn't, and vice versa -- but I never really needed to use them when I was fooling around with javaScript and the DOM or whatever... so I have the (perhaps deluded) impression that the inconsistences are a bit on the obscure&complicated side.

I'm also thinking that it's not as evil as the way different browsers interpret CSS styles -- browsers that support portions of the DOM at all tend to agree on what things are, yes?

CSS hasn't been nice to me lately. it's a bit discouraging to have spent all day designing a layout based on floating blocks and absolute positioning, have it look awesome in IE, and then once everything's finished check it against other browsers and have it _all_fall_to_pieces_. Gar. I hate using complex tables but at least they're fairly universally interpreted.

Posted by sphinX [send private reply] at July 27, 2001, 11:11:12 PM

yeah, same. even a simple site like the one i did for my band (the7thseal.org) looks quite different in netscape than in ie. i've tried my best to make it look the same in both, but i've come as close as i think i can.

Posted by AngelOD [send private reply] at July 28, 2001, 07:02:41 AM

I don't remember all of the differences, but I know that one thing IE implemented, that Netscape didn't, was the ability to alter the HTML on the page dynamically.. Just as the path to the elements in the webpage differs in the two major browsers as well..

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.