Discussion:
Datatable width 100%
mhaertl73
2008-02-25 12:44:23 UTC
Permalink
I try to update to YUI 2.5.0 but i can't get the new datatable to use
100% of its space. My table consists of only 1 column which should
fill all the space in a grid layout (no pixels involved...). In 2.4.1
i simply used this CSS:

.yui-skin-sam .yui-dt-table {width:100%;}

But this doesn't work anymore. I can't find anything in the docs or on
this list. I start to feel like this is not part of the concept of a
datatable.




Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ydn-javascript/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/ydn-javascript/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:ydn-javascript-digest-***@public.gmane.org
mailto:ydn-javascript-fullfeatured-***@public.gmane.org

<*> To unsubscribe from this group, send an email to:
ydn-javascript-unsubscribe-***@public.gmane.org

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
mhaertl73
2008-02-26 11:00:40 UTC
Permalink
Post by mhaertl73
I try to update to YUI 2.5.0 but i can't get the new datatable to use
100% of its space. My table consists of only 1 column which should
fill all the space in a grid layout (no pixels involved...). In 2.4.1
.yui-skin-sam .yui-dt-table {width:100%;}
But this doesn't work anymore. I can't find anything in the docs or on
this list. I start to feel like this is not part of the concept of a
datatable.
Does the silence mean, i'm right? Only pixel based width for
DataTables? What's the reason for this?




Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ydn-javascript/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/ydn-javascript/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:ydn-javascript-digest-***@public.gmane.org
mailto:ydn-javascript-fullfeatured-***@public.gmane.org

<*> To unsubscribe from this group, send an email to:
ydn-javascript-unsubscribe-***@public.gmane.org

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
Jing Ceawlin
2008-02-26 11:16:22 UTC
Permalink
Due to the structural change for DataTable's markup in YUI 2.5, your css
rule doesn't work as you expected.
Suppose your DataTable's id is 'example', then you can define a css rule
like this:
#basic table{
width:100%;
}

Hope this helps :)

Jing
Post by mhaertl73
Post by mhaertl73
I try to update to YUI 2.5.0 but i can't get the new datatable to use
100% of its space. My table consists of only 1 column which should
fill all the space in a grid layout (no pixels involved...). In 2.4.1
.yui-skin-sam .yui-dt-table {width:100%;}
But this doesn't work anymore. I can't find anything in the docs or on
this list. I start to feel like this is not part of the concept of a
datatable.
Does the silence mean, i'm right? Only pixel based width for
DataTables? What's the reason for this?
Nahuel Defossé
2008-02-26 13:11:04 UTC
Permalink
Post by mhaertl73
I try to update to YUI 2.5.0 but i can't get the new datatable to use
100% of its space. My table consists of only 1 column which should
fill all the space in a grid layout (no pixels involved...). In 2.4.1
.yui-skin-sam .yui-dt-table {width:100%;}
But this doesn't work anymore. I can't find anything in the docs or on
this list. I start to feel like this is not part of the concept of a
datatable.
Yahoo! Groups Links
I think you should wrtite something like
.yui-skin-sam .yui-dt-bd table,
.yui-skin-sam .yui-dt-hd table {
100%
}

Nahuel




Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ydn-javascript/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/ydn-javascript/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:ydn-javascript-digest-***@public.gmane.org
mailto:ydn-javascript-fullfeatured-***@public.gmane.org

<*> To unsubscribe from this group, send an email to:
ydn-javascript-unsubscribe-***@public.gmane.org

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/

Loading...