Posted by juerg on December 19, 2007 at 7:30pm
Jump to:
| Project: | Denver |
| Version: | 5.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | colorado |
| Status: | active |
Issue Summary
In style.css, there is about at line 202 the setting:
table {
...
width:100%
}
I suggest to remove the width setting for tables (or if this is not possible to change it to width:auto). When you add a table to the content, the width of the table is being ignored. So whenever I do an upgrade of the denver theme, I first need to remove this line from style.css (which I sometimes forget...).
Thank you
Juerg
Comments
#1
Thank you for the suggestion, Juerg, but the width:100% is needed more than it is not.
Instead of removing it from style.css you can instead override it using the Inline CSS near the bottom of the Theme Settings if you want.
If you want all tables on your site to be affected just put this into the Inline CSS (and of course put a check in the box to enable the Inline CSS):
.table {width: auto;}or, to affect only certain divs, for example:
#main .table {width: auto;}I hope this helps...
#2
#3
Colorado,
Thank you very much for your reply. I was not aware that this setting is indeed needed. So I will add it back again and overwrite it with the inline CSS as you suggested.
IMO the inline CSS is a very convenient feature of the denver theme. It makes it easy to keep the personal modifications when the theme is updated!
Best regards and happy New Year!
Juerg
#4
Thank you Juerg - Happy 2008 to you as well!
#5
After installing the latest version of denver 5.x-1.x-dev, setting of
.table {width: auto;}
in inline CSS has no effect any more. It does not overwrite the default "table width: 100%" any more. However if I remove the dot before "table" it works. I doubt whether the following statement is correct as part of inline CSS:
table {width: auto;}
You can see the problem at the following Link: http://wendezeit.ch/elektrosmog-handy-strahlung-messungen-empfehlungen
Thank you in advance and best regards
Juerg
#6
subscribe
#7
I use
#main table {
width: 1%;
}