Remove "width: 100%" form table in style.css

juerg - December 19, 2007 - 19:30
Project:Denver
Version:5.x-1.x-dev
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:colorado
Status:active
Description

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

#1

colorado - December 28, 2007 - 17:07

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

colorado - December 28, 2007 - 16:57
Assigned to:Anonymous» colorado
Status:active» by design

#3

juerg - December 31, 2007 - 12:24

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

colorado - January 1, 2008 - 19:34

Thank you Juerg - Happy 2008 to you as well!

#5

juerg - April 10, 2008 - 10:15
Category:feature request» support request
Priority:minor» normal
Status:by design» active

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

millions - October 7, 2008 - 05:29

subscribe

 
 

Drupal is a registered trademark of Dries Buytaert.