11
Burning
Re: Show table cell borders
  • 2010/6/13 12:06

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

... my apologizes, #module-folder-name selection does not work with this theme

You should try :
/* smartsection tables */
table.i-want-a-black-border tr td {
border1px solid #888 !important;
padding10px;
}


... I believe you can easily obtain something nicer, but it should work.
Still learning CSS and... english

12
chefry
Re: Show table cell borders
  • 2010/6/13 12:13

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


and i have to insert that
class="i-want-a-black-border"
in all my tables?

13
Burning
Re: Show table cell borders
  • 2010/6/13 12:28

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


oups ! dbl post :(
Still learning CSS and... english

14
Burning
Re: Show table cell borders
  • 2010/6/13 12:29

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


You have another solution, but borders will be displayed for all tables used by smartsection module (it means you will have to correct some templates).


1. Modify theme.html

Replace :
Quote:

<div id="xo-content">
<{$xoops_contents}>
</div>


... by :
Quote:

<div id="xo-content" class="<{$xoops_dirname}>">
<{$xoops_contents}>
</div>



2. Modify style.css

Replace :
Quote:
/* smartsection tables */
table.i-want-a-black-border tr td {
border: 1px solid #888 !important;
padding: 10px;
}


... by :
Quote:

#xo-content .smartsection table tr td {
border: 1px solid #888 !important;
padding: 10px;
}



3. Modify your input

Delete class="i-want-a-black-border", not used anymore.



... tell me if it works and if you have trouble with templates


Edit : smartsection template (smartsection_item.html) encapsulates articles content in a div

Quote:

<div class="itemText">
<{$item.maintext}>
</div>


Try to replace by :
Quote:

<div class="itemText plus-border-for-my-tables">
<{$item.maintext}>
</div>


And in style.css replace :
Quote:

#xo-content .smartsection table tr td {
border: 1px solid #888 !important;
padding: 10px;
}


... by :
Quote:

#xo-content .smartsection .plus-border-for-my-tables table tr td {
border: 1px solid #888 !important;
padding: 10px;
}


If it works, it should not impact other smartsections tables...



Edit bis : write table and not .table as I wrote before. Code corrected.
Still learning CSS and... english

15
chefry
Re: Show table cell borders
  • 2010/6/13 14:55

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


The lines for theme.html won't work because there is no xo-content in it

The smartsection style.css was blank. a zero byte file.

I did all the other changes you called for but still not working.

16
Burning
Re: Show table cell borders
  • 2010/6/13 15:27

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


Ok... I don't know why it does not work.

Just replace last lines in style.css by :
Quote:

/* smartsection tables */
div.itemText table tr td {
border: 1px solid #888 !important;
padding: 10px;
}
Still learning CSS and... english

17
chefry
Re: Show table cell borders
  • 2010/6/13 16:03

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


the smartsection style.css or the theme style.css?

18
Burning
Re: Show table cell borders
  • 2010/6/13 16:53

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


It is as you want, not important ;)
Still learning CSS and... english

19
chefry
Re: Show table cell borders
  • 2010/6/13 21:39

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


HOORAY!!! That Worked!!!

Thanks Burning!

Login

Who's Online

200 user(s) are online (72 user(s) are browsing Support Forums)


Members: 0


Guests: 200


more...

Donat-O-Meter

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

Latest GitHub Commits