1
Bazus
why this simple html code don't work fine in a theme ??
  • 2003/11/5 1:14

  • Bazus

  • Not too shy to talk

  • Posts: 144

  • Since: 2002/9/23


I'm having a hell trying to sit the word 'company' at the base of its cell on this simple table:


Quote:
<table border="0" cellpadding="0" cellspacing="0">
<tr valign="bottom">
<td>
<img src="picture.gif" alt="" border="0" width="10" height="30"></td>
<td background="object.gif"><p class="menu01"><a href="www.mycompany.com">COMPANY</a></p></td>
<td>
<img src="picture.gif" alt="" border="0" width="10" height="30"></td>

</tr>
</table>


it should sit at the bottom of the cell but the theme.html displays it at top of the cell.

any suggestions how to make it work?

2
DobePhat
Re: why this simple html code don't work fine in a theme ??
  • 2003/11/5 2:05

  • DobePhat

  • Friend of XOOPS

  • Posts: 656

  • Since: 2003/4/15


Check td and tr properties in your themes style sheet...
And...don't know if you just didn't copy it..but here there is a missing opening <div> tag
(I think...my computer eyes may be playing trix!)
And how is p class defined in your sheet?etc.

Hope that gets you started...
It could just be the cell padding in the css even...

3
robekras
Re: why this simple html code don't work fine in a theme ??
  • 2003/11/5 8:03

  • robekras

  • Documentation Writer

  • Posts: 187

  • Since: 2002/12/10


As far as I understand:

If there is a stylesheet within a hmtl file,
you can't use normal html tag attributes for all the tag attributes which are defined within the stylesheet.

So if, within the stylesheet, you define the background,
border styles etc. for a table:

table
{
border: #960 3px solid;
background: #ffc;
}

the following will not take affect:

<table background="#ff00ff">

There several ways to make your table look like you want
(Without changing the XOOPS style):

- Write the following for your table (and also for td tr etc. if you need):
<table style="background=#f0f">
...

- Add a new table class definition to the themes/yourTheme/style.css
and in your source:
<table class="yourTableClass">
...


4
CBlue
Re: why this simple html code don't work fine in a theme ??

Are you trying to put this code in the footer of your theme.html?

Login

Who's Online

122 user(s) are online (69 user(s) are browsing Support Forums)


Members: 0


Guests: 122


more...

Donat-O-Meter

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

Latest GitHub Commits