Posted by Benjamin Niemann on 01/11/07 10:39
Hello,
milanobybike@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/
Navigation:
[Reply to this message]
|