Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Width of ComplexTableFields


Go to End


2 Posts   1452 Views

Avatar
adesweb

Community Member, 39 Posts

12 September 2008 at 3:38am

Hi,

I'm noticing if you have a lot of columns, or a lot of text within each column, the width can get stretched off the right-hand side of the screen.

Has anyone a quick CSS fix for this?

Ideally I guess, you don't want to have a max. character limit in each field and put elipses after that limit, to reduce the chance of this happening.

Adrian

Avatar
grilldan

Community Member, 135 Posts

12 September 2008 at 4:26am

Find the ID or Class name of the conatining element (usualy a div), then apply a "max-width: xx;"

Example:

#navigation {
max-width: 200px;
}