#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!
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/
which means that the actual code is like the one you wrote.. and
doesn't work
(it was #nameofsection th)
thanx anyway!
> 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
> 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/
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!
> 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
(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
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?
> >> 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
> 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?
> .. It strikes me that we might still communicate with him via... a...
> a... luigi board
<groan>
--
-bts
-Motorcycles defy gravity; cars just suck
Pretty well! <g>
--
dorayme
> 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.