1
areaten
Stuck on changing <TH> style
  • 2006/4/20 0:53

  • areaten

  • Just popping in

  • Posts: 30

  • Since: 2004/3/9 1


Hi,
I'm stuck on changing the appearence of the 'th' tag in my site.

I've changed in the css (previous style is commented out):

th {padding2px;color#000000 /* #fff */;background: #FFFF33 /* #48b */;font-family: Verdana, Arial, Helvetica, sans-serif;vertical-align: middle;}


yet it is still showing the previous stlye!
I've made other changes in the css with no problem.

You can see the example in:
http://www.area10.info/modules/archcontact/
The top bar of the table is still blue, when I'm trying to change to yellow.

The template of that page is below:
<link href="../../../../xoops-2.2.3a-Final/html/themes/xmt/css/styleNN.css" rel="stylesheet" type="text/css"> <{$contactform.javascript}>
<
form name="<{$contactform.name}>" action="<{$contactform.action}>" method="<{$contactform.method}>" <{$contactform.extra}>>

<
br>
  <
table class="outer" cellspacing="1" align="center">
    <
tr>
    <
th style="text-align:center;" colspan="2"><{$ac_archcontact}></th>
    </
tr>
    <!-- 
start of form elements loop -->
    <{foreach 
item=element from=$contactform.elements}>
      <{if 
$element.hidden != true}>
      <
tr>
        <
td class="head"><{$element.caption}></td>
        <
td class="<{cycle values="even,odd"}>"><{$element.body}></td>
      </
tr>
      <{else}>
      <{
$element.body}>
      <{/if}>
    <{/foreach}>
    <!-- 
end of form elements loop -->
  </
table>
  </
form>


Any advice?

2
c2uk2003
Re: Stuck on changing style
  • 2006/4/20 1:01

  • c2uk2003

  • Just popping in

  • Posts: 3

  • Since: 2006/3/16


Might be that there is something else with a higher order defining the style of it. Adding an !important behind the value makes this one the highest order:

th {padding2px;color#000000 !important/* #fff */;background: #FFFF33 !important/* #48b */;font-family: Verdana, Arial, Helvetica, sans-serif;vertical-align: middle;}


This should do the trick for most of the browsers, if not, try to take out the comments.

3
areaten
Re: Stuck on changing style
  • 2006/4/20 15:51

  • areaten

  • Just popping in

  • Posts: 30

  • Since: 2004/3/9 1


Thanks c2uk2003, adding the !important bit really works.
Makes me laugh that!
Cheers

Login

Who's Online

157 user(s) are online (110 user(s) are browsing Support Forums)


Members: 0


Guests: 157


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits