Change size of image through css in outer div container


I want to change the width of an image via css. As I am doing this through typo3 I only have access to the outer div container (custom border of the content element). So I added the following line to my css file:

.Bild-Startseite img { max-width:50% !important; }

The div container is using Bild-Startseite. Unfortunately the container does not resize, leaving a blank area on the right of the image. How can this be corrected, so the image is aligned to the right and the text floating around it? I only want to change this image and not the others on the site. Also typo3 does not give me access to the other containers.

The site is here: <a href="http://web182.theta.ibone.ch/klingler_ag/home.html" rel="nofollow">http://web182.theta.ibone.ch/klingler_ag/home.html</a>



In order for that to work, you should style your image container. In your case:


You stated that you wish this to be applied only on this specific page. Please try the following:

#c48 figure.csc-textpic-image.csc-textpic-last { max-width: 400px; /* or whatever value you may fit. */ }

I believe #c48 is specific to that page only. So you have that rule applied only to that page.

If #c48 is not specific to that page only, then you should add a css class to your body page.

You should edit your typo3 template from the setup field on your main template, and do:

page = PAGE page { ... bodyTagCObject { field = uid wrap = <body class="uid-|"> } ... }

With this you would have a single class and, with that, you can simple do:

.uid-yourIdNumberHere figure.csc-textpic-image.csc-textpic-last { //your page specific style here. }


  • Accessing variables in other classes (Java)
  • what is the use case for scala List's companion function returning GenericCompanion?
  • Excel VBA Delete Row If Misspelled Word
  • 'Set' in Components of Cake PHP
  • Could be Text orientation of JTextArea changed by keyboard shortcut?
  • Zooming an element and its contents— an alternative to CSS3's zoom property?
  • Group variable in cobol
  • Create a multiple screen android application
  • Javascript unload page condition
  • CKeditor stripping font tags instead of converting to span
  • Implementation of RTTI using typeid
  • CoreData basics – to-many relationship array data
  • Why does the following throw an “Object doesn't support property or method 'importNode
  • Microsoft Excel Pivot miscalculation in Sum for positive and negative numbers
  • react split panel resize
  • Python PIL to extract number from image
  • Issue with routerLink directive
  • Put value at centre of bins for histogram
  • CSS - Cannot get one spanned style to override another inherited style and align left
  • Cannot get text from text area
  • Outputting SharePoint Hyperlink Column as URL
  • Why must we declare a variable name when adding a method to a struct in Golang?
  • Redshift Querying: error xx000 disk full redshift
  • Disable Kendo Autocomplete
  • DIV instruction jumping to random location?
  • Validate child input components on submit with Vee-Validate and vue js 2
  • AndEngine Applying Transparancy to AndEngine View
  • RxJava debounce by arbitrary value
  • Diff between two dataframes in pandas
  • How to view images from protected folder with php?
  • D3 get axis values on zoom event
  • Moving Android View and preventing onDraw to be called over and over again
  • xtable package: Skipping some rows in the output
  • C: Incompatible pointer type initializing
  • Rails Find when some params will be blank
  • Projection media query: browser support and workarounds?
  • VBA Convert delimiter text file to Excel
  • How to get next/previous record number?
  • Setting background image for body element in xhtml (for different monitors and resolutions)
  • jQuery Masonry / Isotope and fluid images: Momentary overlap on window resize