Needs work
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Jun 2011 at 15:01 UTC
Updated:
12 Dec 2011 at 00:25 UTC
Here's a simple patch to cover this.
Widths are rounded to two decimal places.
| Comment | File | Size | Author |
|---|---|---|---|
| views-7x-3x-views-view-grid-tpl.patch | 771 bytes | wjaspers |
Comments
Comment #1
dawehnerThis should be really optional, this will break css from a lot of people.
Comment #2
merlinofchaos commentedBut really cool so I highly encourage getting this to work in a way that will be good for people upgrading as well as people going forward!
Comment #3
wjaspers commented@dereine In most cases CSS takes precedence over structural values (td { width: x; } will override <td width="x">), but I see what you're saying, especially if others are depending on that value not being present.
@merlinofchaos How would you feel about having the whole output plugin modified so that it generated <div>'s instead of a table? or for reverse-compatibility, provided an option to switch between divs or a table? Then we somehow add a width setting on each "column"...
From a semantic standpoint, it might be more appropriate than a table.......it'll probably take some time to piece this idea together...but lots of food for thought.
Any feedback from other readers is always encouraged!
Comment #4
merlinofchaos commentedIt would need to be optional. Changing the structure significantly would impact people's markup and CSS code pretty severely. Plus, sometimes the table really is better.
Comment #5
lifepillar commented+1 for this feature. If changing the current grid has too many implications, how about adding a new (div-based) “proportional grid” or something like that?
Comment #6
wjaspers commentedThat was the thought. I havent gotten to it yet, though.
Comment #7
jdufaur commented+1 subscribe
Comment #8
summit commentedHi, In drupal 6 this was suggested: http://drupal.org/node/354124
It didn't work on Bartik on D7. I tried:
Adding table-layout:fixed;
It didn't work..
Thanks for going into this in advance,
greetings, Martijn