Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Subsequent declaration on TH and TD doesn't work

0 views
Skip to first unread message

milano...@gmail.com

unread,
Jan 11, 2007, 5:24:11 AM1/11/07
to
Ok.. now.. in my css file I declare the following:

#th { width:100px }
#th.h50 { width:50px }

Now.. when I go into the html code and put <th class="h50">, the
browsers just ignore that and leaves the width to 100px.. usually
declaring something later overwrites what's been declared earlier..
Does anyone know why it doesn't work in this case?

Thank you so much!

Benjamin Niemann

unread,
Jan 11, 2007, 5:39:33 AM1/11/07
to
Hello,

milano...@gmail.com wrote:

> Ok.. now.. in my css file I declare the following:
>
> #th { width:100px }
> #th.h50 { width:50px }

Replace this with

th { width:100px }
th.h50 { width:50px }

'#' is used to refer to elements by their ID.

> Now.. when I go into the html code and put <th class="h50">, the
> browsers just ignore that and leaves the width to 100px.. usually
> declaring something later overwrites what's been declared earlier..
> Does anyone know why it doesn't work in this case?

HTH

--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://pink.odahoda.de/

milano...@gmail.com

unread,
Jan 11, 2007, 5:59:26 AM1/11/07
to
ops, sorry.. I left the # in but it's not there (I removed some parts
of the actual code not to clutter up my message with useless stuff)..

which means that the actual code is like the one you wrote.. and
doesn't work

(it was #nameofsection th)

thanx anyway!

Toby Inkster

unread,
Jan 11, 2007, 6:05:40 AM1/11/07
to
milanobybike wrote:

> Does anyone know why it doesn't work in this case?

No. Because you failed to post a URL.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

Jukka K. Korpela

unread,
Jan 11, 2007, 7:39:53 AM1/11/07
to
Scripsit milano...@gmail.com:

> ops, sorry..

Please learn to quote or paraphrase to give context for your reply.

> I left the # in but it's not there (I removed some parts
> of the actual code not to clutter up my message with useless stuff)..

Your problem description is pretty useless without a URL, and posting the
wrong code was just one indication of this.

Actually, the use of 100px and 50px suggests that the page should be
rewritten rather than polished a bit here and there.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

milano...@gmail.com

unread,
Jan 11, 2007, 10:29:33 AM1/11/07
to
> Your problem description is pretty useless without a URL, and posting the
> wrong code was just one indication of this.

After reading two replies, I understand that this is a problem that I
am having, which means that my code is not correct somewhere (otherwise
your replies would have been "Of course, with TD's and TH's you can't
do that!).. this is good enough a reply to me: I just wanted to know if
it's something that people is aware of or if it's my code's problem..
seems to be the latter..

> Actually, the use of 100px and 50px suggests that the page should be
> rewritten rather than polished a bit here and there.

Not quite.. I have a table containing data and I want one of the cells
to be 50px wide instead of 100px.

Oh, I forgot to write something very important: I'm in Italy and we all
know that here in Italy we're like 10 years behind the rest of the
world.. that's the reason why I HAVE TO use px instead of ems, % or
nothing at all.. one day we'll have the web like it's meant to be.. not
yet, though.. and it's a shame, but this is a different story..

Thank you very much!

Jonathan N. Little

unread,
Jan 11, 2007, 11:02:29 AM1/11/07
to
milano...@gmail.com wrote:
<snip>

> Oh, I forgot to write something very important: I'm in Italy and we all
> know that here in Italy we're like 10 years behind the rest of the
> world.. that's the reason why I HAVE TO use px instead of ems, % or
> nothing at all.. one day we'll have the web like it's meant to be.. not
> yet, though.. and it's a shame, but this is a different story..

Now that explains it all! Way to say "I'm ignorant and damn proud of
it!" What a shame.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

dorayme

unread,
Jan 11, 2007, 4:56:19 PM1/11/07
to
In article
<1168513166.7...@i39g2000hsf.googlegroups.com>,
milano...@gmail.com wrote:

(earlier:

> Oh, I forgot to write something very important: I'm in Italy and we all

> know that here in Italy...

)

> ops, sorry..

It is "oops" not "ops", all tolerance for these things ran out
when Luigi left.

--
dorayme

Ed Mullen

unread,
Jan 11, 2007, 5:54:23 PM1/11/07
to

Dang, Martian, you are harsh! ;-)

--
Ed Mullen
http://edmullen.net
http://mozilla.edmullen.net
http://abington.edmullen.net
How can you tell when the blue cheese goes bad?

dorayme

unread,
Jan 11, 2007, 6:29:05 PM1/11/07
to
In article <TcSdnWjze8SCXTvY...@comcast.com>,
Ed Mullen <e...@edmullen.net> wrote:

> >> ops, sorry..
> >
> > It is "oops" not "ops", all tolerance for these things ran out
> > when Luigi left.
> >
>
> Dang, Martian, you are harsh! ;-)

I am unlikely to mellow until Luigi comes back. It strikes me
that we might still communicate with him via... a... a... luigi
board

Boom boom.

--
dorayme

mbstevens

unread,
Jan 11, 2007, 6:41:25 PM1/11/07
to
On Fri, 12 Jan 2007 10:29:05 +1100, dorayme wrote:

> I am unlikely to mellow until Luigi comes back. It strikes me
> that we might still communicate with him via... a... a... luigi
> board
>
> Boom boom.

Sounds like a left-floated and cleared ba-dump bump.
Zhat how one ba-dump bumps down under?

Beauregard T. Shagnasty

unread,
Jan 11, 2007, 6:54:26 PM1/11/07
to
dorayme wrote:

> .. It strikes me that we might still communicate with him via... a...
> a... luigi board

<groan>

--
-bts
-Motorcycles defy gravity; cars just suck

dorayme

unread,
Jan 11, 2007, 8:01:06 PM1/11/07
to
In article <pan.2007.01.11....@xmbstevensx.com>,
mbstevens <NOXweb...@xmbstevensx.com> wrote:

Pretty well! <g>

--
dorayme

Andy Dingley

unread,
Jan 12, 2007, 5:42:23 AM1/12/07
to

milanobyb...@gmail.com wrote:

> Oh, I forgot to write something very important: I'm in Italy

Just so long as you're not a Swede living in Italy. We really couldn't
cope with that.

0 new messages