TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

Die TYPO3 Mailingliste - nicht fragen: lesen!

[TYPO3] How can I define a max width for inserted content?

This is a discussion on [TYPO3] How can I define a max width for inserted content? within the typo3-english@lists.netfielders.de forums, part of the TYPO3-Mailinglists: ENGLISH category; Hi, I have inserted a table from Microsoft Word in the RTE-window. The table it is to broad for ...


Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-english@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 21.06.2008, 18:24
Christopher
Gast
 
Beiträge: n/a
Standard [TYPO3] How can I define a max width for inserted content?

Hi,

I have inserted a table from Microsoft Word in the RTE-window.
The table it is to broad for my frontend.
For pictures I know that there is a possibility to enter the maxWidth of a
block; is there something similar for tables?

Or any other possiblity to give them a binding maximum width?

--
Christopher


_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #2  
Alt 22.06.2008, 19:27
Tapio Markula
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] How can I define a max width for inserted content?

Christopher kirjoitti:
> Hi,
>
> I have inserted a table from Microsoft Word in the RTE-window.
> The table it is to broad for my frontend.
> For pictures I know that there is a possibility to enter the maxWidth of a
> block; is there something similar for tables?
>
> Or any other possiblity to give them a binding maximum width?
>


Table is a html element and it depends on browsers, how they handle CSS
and html.
Even if there would be possible to set some TS to set style attribute,
that could work because it would be *impossible* to calculate, how wide
the final table would be.
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #3  
Alt 22.06.2008, 19:51
virgil huston
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] How can I define a max width for inserted content?

Christopher,
Have you tried doing the table in html and putting it in the RTE with the <>
html view enabled? Or, you could make it an html content element. Anything
pasted directly into the RTE from Word come out badly in my experience.

Cheers,
Virgil

On Sun, Jun 22, 2008 at 1:27 PM, Tapio Markula <tapio.markula (AT) xetpoint (DOT) fi>
wrote:

> Christopher kirjoitti:
> > Hi,
> >
> > I have inserted a table from Microsoft Word in the RTE-window.
> > The table it is to broad for my frontend.
> > For pictures I know that there is a possibility to enter the maxWidth of

> a
> > block; is there something similar for tables?
> >
> > Or any other possiblity to give them a binding maximum width?
> >

>
> Table is a html element and it depends on browsers, how they handle CSS
> and html.
> Even if there would be possible to set some TS to set style attribute,
> that could work because it would be *impossible* to calculate, how wide
> the final table would be.
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english (AT) lists (DOT) netfielders.de
> http://lists.netfielders.de/cgi-bin/.../typo3-english
>




--
Regards,
Virgil Huston
Kudzu Media
http://kudzumedia.com
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #4  
Alt 22.06.2008, 21:22
Christopher
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] How can I define a max width for inserted content?

Hi Virgil,

"virgil huston" <virgil.huston (AT) gmail (DOT) com> schrieb im Newsbeitrag
news:mailman.9239.1214157122.4573.typo3-english (AT) lists (DOT) netfielders.de...
> Christopher,
> Have you tried doing the table in html and putting it in the RTE with the
> <>
> html view enabled? Or, you could make it an html content element. Anything
> pasted directly into the RTE from Word come out badly in my experience.


I have taken it from Word and pasted it in the RTE.
I know that there is a table-content-element, but my users use Word and
don't want to enter everything again.
The RTE is the right (and only) choise for them.

There is the possibility to remove some format in the RTE, e.g. "Format from
MS Word".
Doing so I get a table which fits in the width I have available.
Is there a way that makes the RTE apply this option automatically?
(So that the user does not have to click and and if he forgot -happens all
the time- the page looks ugly...)

Christopher


_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #5  
Alt 22.06.2008, 21:25
Christopher
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] How can I define a max width for inserted content?

Hi Tapio,

"Tapio Markula" <tapio.markula (AT) xetpoint (DOT) fi> schrieb im Newsbeitrag
news:mailman.1.1214155685.6001.typo3-english (AT) lists (DOT) netfielders.de...
> Christopher kirjoitti:
>> Hi,
>>
>> I have inserted a table from Microsoft Word in the RTE-window.
>> The table it is to broad for my frontend.
>> For pictures I know that there is a possibility to enter the maxWidth of
>> a block; is there something similar for tables?
>>
>> Or any other possiblity to give them a binding maximum width?
>>

>
> Table is a html element and it depends on browsers, how they handle CSS
> and html.
> Even if there would be possible to set some TS to set style attribute,
> that could work because it would be *impossible* to calculate, how wide
> the final table would be.


A simple table style="width: 558px;" (for example) would do the job.

BUT it also would be great if the options the RTE offers would be available
(width of the table in percent or pixels).
That would not be the case if one standard-value for all tables was set.

The point is: The width should be adjustable, but it should NEVER be more
than ... lets say those 558 px.

Christopher


_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #6  
Alt 22.06.2008, 21:56
Christopher Torgalson
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] How can I define a max width for inserted content?

Hi,

On Sun, Jun 22, 2008 at 9:25 PM, Christopher
<Christopher (AT) temporaryforwarding (DOT) com> wrote:
> Hi Tapio,
>
> "Tapio Markula" <tapio.markula (AT) xetpoint (DOT) fi> schrieb im Newsbeitrag
> news:mailman.1.1214155685.6001.typo3-english (AT) lists (DOT) netfielders.de...
>> Christopher kirjoitti:
>>> Hi,
>>>
>>> I have inserted a table from Microsoft Word in the RTE-window.
>>> The table it is to broad for my frontend.
>>> For pictures I know that there is a possibility to enter the maxWidth of
>>> a block; is there something similar for tables?
>>>
>>> Or any other possiblity to give them a binding maximum width?
>>>

>>
>> Table is a html element and it depends on browsers, how they handle CSS
>> and html.
>> Even if there would be possible to set some TS to set style attribute,
>> that could work because it would be *impossible* to calculate, how wide
>> the final table would be.

>
> A simple table style="width: 558px;" (for example) would do the job.
>
> BUT it also would be great if the options the RTE offers would be available
> (width of the table in percent or pixels).
> That would not be the case if one standard-value for all tables was set.
>
> The point is: The width should be adjustable, but it should NEVER be more
> than ... lets say those 558 px.



You already have a number of possible options using CSS without
changing the RTE in any way. Three possibilities suggest themselves
immediately (there are undoubtedly others

Solution 1: CSS only
----------------------------------------
Your RTE content elements will exist in some HTML element. If that
element does not have an id attribute, add one and then take care of
this in your stylesheet(s). If, for example, the relevant element is a
div with the id "container", the following code should take care of it
in most cases [1]. This won't solve the problem if the issue is with
long words in td elements forcing the table to be wider than the
permissible width, but if that's the case, the RTE couldn't do much
either:

/*
In your main stylesheet:
[note that IE7 sometimes gets max-width wrong]
*/
div#container table { max-width:558px; }

/*
In a stylesheet ONLY for IE versions < 7:
[be warned, IE 6 and lower handle 'width' like 'min-width']
*/
div#container table { width:558px; }


Solution 2: CSS + TSconfig 1
----------------------------------------
Configure the RTE with one or more classes that can be applied to
table elements to 'tame' their widths.

Solution 3: CSS + TSconfig 2
----------------------------------------
Set up a 'wrapper' in the "Frame" selector of the Text content element
in TYPO3 that wraps the tables in a div; then, add something like the
following to your stylesheet (assumes same markup as Solution 1

div#container div { overflow:scroll; }


[1] This will depend on whether the useragent in question implements
CSS 2 or CSS 2.1. As far as I know, all the major useragents that
support max-width *at all* support 2.1 more or less. Ymmv.

--
Christopher Torgalson
http://www.typo3apprentice.com/
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #7  
Alt 23.06.2008, 03:32
bernd wilke
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] How can I define a max width for inserted content?

on Sat, 21 Jun 2008 18:24:42 +0200, Christopher wrote:

> Hi,
>
> I have inserted a table from Microsoft Word in the RTE-window. The table
> it is to broad for my frontend. For pictures I know that there is a
> possibility to enter the maxWidth of a block; is there something similar
> for tables?


I think you misunderstand this.
TYPO3 does not give a size for the block. the image is resized
completely. Afterwards the block is sized acording to the resized image
as to every image.
as there is no native size of a table or other html-tag TYPO3 can not
define a special size. TYPO3 uses CSS and so you can give the class a
size.
> Or any other possiblity to give them a binding maximum width?


If you would use the TYPO3-contentelement TABLE you can give each element
it's own class (and so it's own size)

bernd
--
http://www.pi-phi.de/t3v4/cheatsheet.html
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

Thema Autor Forum Antworten Letzter Beitrag
[TYPO3] QuickEdit - allow users to edit inserted records fromanother page... Timothy Patterson typo3-english@lists.netfielders.de 2 11.10.2007 08:36
Re: [TYPO3] QuickEdit - allow users to edit inserted records fromanother page... Rens Admiraal typo3-english@lists.netfielders.de 0 10.10.2007 21:04
[TYPO3] Gif image turns empty when inserted on a page Brian Bendtsen typo3-english@lists.netfielders.de 0 27.09.2007 11:27
[TYPO3-dev] define the height of RTE in a flexform Fabien Udriot typo3-dev@lists.netfielders.de 2 30.05.2007 21:44
[TYPO3-templavoila] set max image width for content elements. Asbjørn Morell typo3-project-templavoila@lists.netfielders.de 1 16.05.2007 08:41


Alle Zeitangaben in WEZ +1. Es ist jetzt 06:08 Uhr.


Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39