Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: table width ignored

From: "Anthony Jones" <Ant@------------.--->
To: 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.





transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent