-
1. Re: padding, dataTable
shadowcreeper Aug 26, 2008 1:55 PM (in response to barbazu)Do set width="100%" or style="width: 100%;" ???
I always use styleClass="fullWidth" (the same as the 2nd one above).
Usually when I find this behavior, I can swap out a padding with a margin and it works fine. Have you tried the div with no padding and the table with a margin? -
2. Re: padding, dataTable
barbazu Aug 29, 2008 7:29 AM (in response to barbazu)Neither style="width: 100%;" nor styleClass="fullWidth" solved my problem.
The second advice you gave me works fine ;)
Thanks for your time. -
3. Re: padding, dataTable
shadowcreeper Aug 29, 2008 2:04 PM (in response to barbazu)I defined fullWidth in my CSS file as ".fullWidth { width: 100%; }", I just have a whole bunch of simple things like that to tack on wherever I need them. Other examples are "invisible", "fullHeight", "blockCenter" (for divs -- ".blockCenter { margin-left: auto; margin-right: auto }"), etc.
Also, I believe width="100%" just sets the style width to 100% anyway, so I didn't expect any changes there. However, sometimes the components will use javascript to figure out the exact width and height they need and set them in pixels from that.