Tables - No Colour?

Change your online store into modern look with myStore eCommerce VirtueMart Joomla template - discussion forum.
GK User
Mon Jun 28, 2010 8:57 am
Hi Team

I'm using tables in a page... the tables use background colours... any idea why these colours would not show up?
User avatar
Junior Boarder

GK User
Mon Jun 28, 2010 9:59 am
Perhaps your CSS is overuled by something else.

Have you tried using !important for the color.

It sometimes works, probably not in IE6, but then again not much do :)
User avatar
Senior Boarder

GK User
Mon Jun 28, 2010 11:29 am
Hi and thanks for getting back to me.

As an update:
This does not work:
<td bgcolor="#FF0000">Some text here</td>

This does:
<td style="background-color: #f5f5f5;">Some text here</td>

??? Any ideas on why this would be???

Also as a note, the default styling for tables is pretty, well not good.
User avatar
Junior Boarder

GK User
Mon Jun 28, 2010 11:34 am
Perhaps because the bgcolor property i overridden somewhere in the CSS via a background value. And when not setting it as a CSS style it will choose the value from the CSS.
User avatar
Senior Boarder

GK User
Wed Jun 30, 2010 2:07 am
Thanks for getting back to me farouche.

Any idea where this would be? I have no idea... I just would like to have full control of a table that I create (I also noticed that that the padding of the table is being overwritten by something as well).

Any help is greatly appreciated...

Cheers

Mark
User avatar
Junior Boarder

teitbite
Wed Jun 30, 2010 2:27 pm
Hi

Please show me Your site and point where table with background is.
User avatar
Moderator

GK User
Thu Jul 01, 2010 1:20 am
Hi teitbite

Thanks for getting back to me, I've emailed you with the login details fsor the site.

Thanks and hope you can help.

Cheers
Mark
User avatar
Junior Boarder

teitbite
Thu Jul 01, 2010 1:29 pm
Hi

Please edit addons.css file and search for:

Code: Select all
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
background:none repeat scroll 0 0 transparent;
border:0 none;
font-size:100%;
margin:0;
outline:0 none;
padding:0;
}


and remove the line with background.
User avatar
Moderator

GK User
Fri Jul 02, 2010 1:09 am
Hi and thanks for getting back to me and pointing me in the right direction.

The code to remove is this:
background: transparent;
If you remove the rest there's some alignment issues with the main menu as well some other alignment issues here and there.

Thanks a million... still some padding isssues when it comes to imahes in cells but - at least that's one thing off the list!

Cheers

Mark
User avatar
Junior Boarder


cron