![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - table width ignored [Thread Next] Re: table width ignoredTo: NULL Date: 12/5/2006 5:47:00 PM
"Lee" <lee.baker@h...> wrote in message
news:1165332211.379371.321320@j......
> Hi,
>
> I would like to be able to set the width of a table. Using the xsl
> below it does not work and the first row is on a single line, hence is
> very wide (above the width value specified). It appears that using
> "<xsl:value-of select="somexmltag"/>" screws up the width setting on
> the table, see below.
>
> Suggestions greatly appreciated.
>
> Lee
>
> The applicable xsl code is as follows:
>
> .sectionTableBorderSub
> {
> width:400px;
> }
Add:-
overflow:hidden
to the style. By default a HTML element will grow to accomadate it's
content even if you have specified the a fixed size.
Depending on your desired output you may need to consider other styles and
elements as well.
For example you may need table-layout:fixed on the table. You might also
want to place the cell content of a TD in a SPAN and specify
white-space:nowrap on the selector TD.tableData SPAN
IOW, this isn't a problem with XSL this is a problem with understanding CSS
correctly.
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
