How can I set the width of table with css

Hi,

How can I set the width (pixels) of a table using css. (When I check the help I see it’s not available, maybe there’s a workaround?)

Thanks

Rgds,

Subject: How can I set the width of table with css

just use the width property

eg

HTML…

CSS…

#mytable {

width:560px;

}

for more info on using CSS in tables check out Tables

or better still don’t use tables at all :->

Subject: How can I set the width of table with css

If you are using a Notes/Domino table rather than an HTML table, right click on the table in designer, and go to table properties, on the last tab (HTML Properties), under table HTML tage in the “other” field, type width=“x” where x is the desired width in pixels.

HTH,

Niall.

Subject: RE: How can I set the width of table with css

ok, but when i now add text to it which is more than number of pixels the the table will be larger.

So I want a no resizable table is this also possible?

Thanks

Rgds,

Rudy

Subject: RE: How can I set the width of table with css

Ok, I can’t tell if you’re using Notes tables or not since you were asking for css help but this response seems to be directed at the “if you’re using notes tables” thread…

Assuming you’re using css, the previously referenced url is a great place to go. specifically:

http://www.w3.org/TR/REC-CSS2/tables.html#width-layout

Subject: RE: How can I set the width of table with css

If your table is a fixed width in pixels, the content should wrap, without the table resizing.If you have more than one column, you should define the width of each cell in “Cell HTML Tags” as well

Subject: RE: How can I set the width of table with css

Your content should wrap, without the table resizing.

That’s clear but how do i say this in css?

Thanks

Rgds,

Rudy

Subject: How can I set the width of table with css