The correct sintax for the css .class selector is

.class {
    css declarations;
}

so 

<style> .myeheaders th { padding-right: 2em} ; </style>

should work.


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.

Reply via email to