Preserved Topic: CSS Question (Page 1 of 1) |
|
---|---|
Maniac (V) Inmate From: there...no..there..... |
posted 08-27-2001 16:47
I didn't know where else to post this so I posted it here. |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 08-27-2001 18:56
I think you have the answer to your second question in the first part. It is all to do with CSS2 child selector properties (which come in useful for the IE/Win CSS hack: see glish.com/css) for example this says if the body tag is the child of the html tag (as it always is if you've coded correctly) then the style is: |
Maniac (V) Inmate From: there...no..there..... |
posted 08-27-2001 19:34
Thanks Emp! The #Content>p+p was really confusing me. If you do come across the URL of the translator please let me know, I know that this will come in handy since I am re-doing my site in all CSS. |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 08-27-2001 21:59
I should have also said that there is a CSS forum over at the sister site: |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 08-27-2001 22:07
Isn't it always the way. I pressed the button to submit the reply while nosing around the WaSP website in another window and, as I should have predicted, they had the link: quote:
|
Maniac (V) Inmate From: there...no..there..... |
posted 08-28-2001 19:46
OK I must be either not understanding how this works or I am doing something wrong. |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 08-28-2001 20:30
As a far as I can tell that looks like it should work - the problem might be with the browser you are using as I believe this only works in NS6+, Op5+, IE5/Mac (I may be wrong on some of these) - it won't work in IE5/Win. Try testing it in a couple of browsers or if its online you could put the URL here and we'll have a look at it. |
Maniac (V) Inmate From: there...no..there..... |
posted 08-28-2001 22:25
I thought that I was loosing it there for a while. Here is how I fixed it: |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 08-29-2001 02:16
Glad I could help (its also helped my straighten a few things out too). The second, working version is more along the lines of the way I'd have done things as I rarely use id instead of class (you can also safely leave out the div bit before the class) - it looks like I'll have to familiarise myself with the CSS2 selectors more as there must be places where they are better than the CSS1 way but clearly not in this case. |
Maniac (V) Inmate From: under the bed |
posted 08-29-2001 03:49
just for the record - you can still use the id method, you just need to use a space rather than the '>' like you did for the class example. |