On Sunday, December 4, 2016 at 2:48:15 AM UTC-8, Paolo Caruccio wrote:
>
> The correct sintax for the css .class selector is
>
> .class {
> css declarations;
> }
>
> so
>
> <style> .myeheaders th {padding-right: 2em;} </style>
>
> should work.
>
>
>
Thanks, but what I ended up with was
<style> th { padding-right: 2em ! important } </style>
but I could change the color or background color without the !important.
<style> *.odd {background-color: #ddffcc} /* light green-bar */
The _class parameter was assigning the class name to the whole table.
Using th.myeheaders in the style rule did not work, even with the
!important. I'm doing this starting with the welcome app, so I'm
interacting with bootstrap3, which seems to have some pain points involved.
Maybe I should try starting with the examples app and stupid.css instead.
/dps
> Il giorno domenica 4 dicembre 2016 05:32:55 UTC+1, Dave S ha scritto:
>>
>> I'm finding that SQLTABLE, though mostly well-behaved, doesn't properly
>> take the th elements into account when sizing the table space; I'd like to
>> add padding-right to those elements, but I've forgotten how to do it.
>>
>> My view looks like:
>>
>> <style> myeheaders: th { padding-right: 2em} ; </style>
>>
>>
>> {{extend 'layout.html'}}
>> <h1>This is the default/sorted.html template</h1>
>> {{=SQLTABLE(rows, truncate=30, headers = {'tbl1.a':'Ayy', 'tbl1.b':'Bee',
>> 'tbl1.c':'Cee', 'tbl1.d':'Dee'},
>> columns=['tbl1.a', 'tbl1.b', 'tbl1.c', 'tbl1.d'],
>> _class="myeheaders")}}
>>
>>
>> but I don't have this right, do I?
>>
>> /dps
>>
>>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.