Topic: Naming Styles (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=10764" title="Pages that link to Topic: Naming Styles (Page 1 of 1)" rel="nofollow" >Topic: Naming Styles <span class="small">(Page 1 of 1)</span>\

 
Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

posted posted 06-26-2002 17:49

This is one of th0se topics that you end up thinking yourself around in circles...

Originally, I had this:
table.table_out {
width: 305px;
background-color: #FFFFFF;
border: 4pt solid #000000;
}

Now, I need to set the TD width to 1pt solid for the tables ID'd "table_out".
Thanks for the help.

Karl

Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

posted posted 06-26-2002 18:15

... so, here I am, RTFM but I can't find WTFILF : )..



synax
Maniac (V) Inmate

From: Cell 666
Insane since: Mar 2002

posted posted 06-26-2002 18:24

td#table_out {
width: 1pt;
}

That *should* work, although I haven't tested it.

Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

posted posted 06-26-2002 18:32

Hmm... tested, and didn't work : (

You know what I'm thinking is, that maybe it isn't possible to set the props for a TD if all you have is a table with an assigned class (without resorting to global TD definnition).

<table class="foobar">
<tr>
<td></td>
</tr>
</table>


Karl

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 06-26-2002 18:44

Might I suggest some reading material:
http://www.gurusnetwork.com/tutorials/css/cssintro/cssintro1.html
http://www.gurusnetwork.com/tutorials/css/cssintro2/cssintro2-1.html
http://www.w3.org/Style/CSS/#specs


There's really only so many of these type of questions that can be answered for you - if you don't have the basic knowledge to back up the answers that you get.

(so, you know, RTFM )



kuckus
Bipolar (III) Inmate

From: Berlin (almost)
Insane since: Dec 2001

posted posted 06-26-2002 18:48

If you want to have a style that affects all the <td>s in a table called "foobar", you can use

table.foobar td { ..... }

But if you're going to do more things with CSS you should really read up a bit, e.g. have a look at the CSS tutorials at the GurusNetwork or the W3C specs. It's all in the FAQ.

edit: Heh, we had the same thoughts. And DL even posted the links for you!

kuckus (cell #282)

[This message has been edited by kuckus (edited 06-26-2002).]

Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

posted posted 06-26-2002 18:52

Believe me, I'm R'ingTF'ingM... : )
Thanks for the links.

By the way, the subject of the post should be changed to:
Selectors: how to select the TD of TABLE
(or something like that)

Here's where I'm at: http://www.w3.org/TR/REC-CSS2/selector.html#child-selectors

Thanks - Karl

Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

posted posted 06-26-2002 19:04

All right, I admit it, I feel like I'm being picked on.

Seriously, am I asking stupid questions? Do you imagine that I sit here, post a question to the forum and continuosly hit <F5> <F5> <F5> <F5> while picking my nose and waiting for someone to answer my post?

Honestly, I think that my question was a good one. Certainly one without an obvious answer. Was it so obvious?

This is a great forum, the best. However, (most of) the response I've received in this thread is really disheartening and not appreciated.

Karl



[This message has been edited by Karl (edited 06-26-2002).]

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 06-26-2002 19:25

KarL:

quote:
This is a great forum, the best. However, (most of) the response I've received in this thread is really disheartening and not appreciated.



Just about every reply has been a good one and, as far as I can tell, kuckus has given you the answer. Have you tried that and it doesn't work? If so you may need to post a link to a page showing us your work so far. You may also need to use border-collapse (from another current thread here) to get it to work properly.

[edit: Oh and you aren't being picked on but you are having your leg pulled!! If you start a thread called RTFM: www.ozoneasylum.com/Forum1/HTML/004767.html
you can expect to be told to RTFM everytime you ask an obvious question (the W3C specs and/or birggl's tutorials would have answered your questions for you in most cases) until people get bored of it - give it a couple of years but the more you complain the longer the leg pulling will go on ]

___________________
Emps

FAQs: Emperor

Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

posted posted 06-26-2002 19:34

Emps:

Yes, kucks response was the correct one, it works great. That plus setting border-collapse to collapse is all working great now.

I'm not guilty of not reading the manual, thats all.

I do appreciate the help.

Karl

Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

posted posted 06-26-2002 19:37

Emps:

quote:
you can expect to be told to RTFM everytime you ask an obvious question

Was it an obvious question?

Karl

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 06-26-2002 19:52

Karl:

quote:
Was it an obvious question?



Now I'm guilty of pulling your leg too. There is no such thing as an obvious question . However, a fairly quick read through of CSS resources would quickly have suggested an answer (contextual/descendant selectors)
www.gurusnetwork.com/tutorials/css/cssintro/cssintro3.html
www.w3.org/TR/REC-CSS2/selector.html#descendant-selectors

but was it obvious ~shrugs~ I don't know - clearly not

___________________
Emps

FAQs: Emperor

Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

posted posted 06-26-2002 19:59

Thanks Emps...
and if you all were pulling my leg and your thinking (god this guy is a BFD), my apologies.

Karl

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 06-26-2002 20:13

Karl: Is there an acronym manual as I really need to read it??

Be assured we'll always do our best to answer your question despite the leg pulling!!

___________________
Emps

FAQs: Emperor

kuckus
Bipolar (III) Inmate

From: Berlin (almost)
Insane since: Dec 2001

posted posted 06-26-2002 20:16

Karl: I don't think that there's anyone in here who doesn't want you to ask these questions. This place is about asking, receiving answers and learning. And if I notice that someone asks a couple of questions about the 'basics' of CSS, I'll sooner or later point him to ressources where he can get an overview about it by reading a tutorial, article, whatever. I'm not doing that to pick on you but to help you help yourself.

What's next?

kuckus (cell #282)

[This message has been edited by kuckus (edited 06-26-2002).]

Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

posted posted 06-26-2002 20:20

Kuckus: Thanks, I do appreciate your help.
Emps: Nope... no manual for the acronyms, but maybe we need one!

Karl

kuckus
Bipolar (III) Inmate

From: Berlin (almost)
Insane since: Dec 2001

posted posted 06-26-2002 20:34

Well, I found an abbreviation manual:

http://piology.org/yabla.txt

It doesn't contain Karl's BFD but lots of other acronyms which would made me pretty mad if someone used them since I couldn't understand a word without Reading This F***ing Manual every time. BSOTAPG.

edit: And wow, I just noticed that this Babylon Translator thingie installed a while ago knows many of those acronyms! TRPH.

[This message has been edited by kuckus (edited 06-26-2002).]

Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

posted posted 06-26-2002 20:43

Ok... this is F'n funny!

[Excerpt from kucks link]

ROTFL rolling on the floor laughing (also, ROFL)
ROTFLAHMS ... and holding my sides
ROTFLASTC ... and scaring the cat
ROTFLBTC ... biting the carpet
ROTFLBTCACTC ... ... and scaring the cat
ROTFLBTCASTCIIHO ... ... ... if I had one
ROTFLBTCDICAJTTWADBSIHPWTRHITSBKABAYB ... ... dancing in circles and jumping through the window almost dieing by smashing into HP who's then running horrified into the street beeing killed accidentally by a yellow bulldozer


Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 06-26-2002 21:06

RTFFAQ

synax
Maniac (V) Inmate

From: Cell 666
Insane since: Mar 2002

posted posted 06-26-2002 21:16

The reason why my solution didn't work is because you were trying to call it as a CLASS instead of an ID like you asked. If you want to call it as a class then you would name it td.table_out { ... } and call it using <td class="table_out"> ... </td> Calling using my previous method can be done by writing <td id="table_out"> ... </td>

Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

posted posted 06-26-2002 21:27

Ahh... you are correct. I did say "Tables ID'd..." my mistake.

Karl

me~
Bipolar (III) Inmate

From: Detroit, MI
Insane since: Jun 2002

posted posted 06-28-2002 04:14

i wouldnt suggest using <table id="something"> for CSS as it is poorly supported by browsers and can screw with your javascript.

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 07-01-2002 22:19

Hmm? I'd disagree. Any browser that supports CSS, as far as I've seen, supports IDs on any element, except for maybe NN4. But I've certainly never seen it messing up javascript.

maninacan
Paranoid (IV) Inmate

From: Seattle, WA, USA
Insane since: Oct 2001

posted posted 07-01-2002 22:47

try using 1px instead of 1pt
maybe somebody already said this, too many posts to read.

Maninacan Cell #471
kewl
Mad Scientists

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 07-02-2002 00:59

I just wanna say that I don't think this was an obvious question.

That and I hate RTFM. It's so much simpler (and more polite) to answer the question and point someone to a resource with more information.

yes this is in "the manual" but it's a big ass manual and sometimes early on it's hard to even know what you're looking for. (I mean selectors = child elements??)



.:[ Never resist a perfect moment ]:.



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu