OE: How can I get an image to NOT be left nor right floated?

Author Message

Espen R

Friday 04 May 2007 5:22:41 am

And not centered either. I just need it to follow the text flow. I guess I could alter the css for align left so that it doesn't float the div, but some other times I actually want images to be floated left.

Seems to me that there should be another option called "none" or something. Since that option isn't there by default, I need to add it myself. Where do I have to hack?

I find it quite amazing that no one else has mentioned this problem before. At least I couldn't find anything in the forum. (Of course there might be an obvious solution that I am too stupid too see).

Please help :)

Børge Warvik

Monday 07 May 2007 1:21:50 am

How about "display:inline"?

Espen R

Monday 07 May 2007 3:28:56 am

No. I want it to display as a block element, but that's not the problem. I know how to do the css. The problem is that I have to figure out how to add another option to the alignment selection in the OE object dialog box. Left, right and centre just isn't enough. I need another option where I can set the css to display it as a block and not floated.

Then again, I could just add a custom class and apply it to those images in question. But still not the best solution in my opinion. A "none" option would be best maybe since then I could just set images to be non-floated and block displayed by default.

Maybe it can't be done?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 00:19:53
Script start
Timing: Jan 31 2025 00:19:53
Module start 'layout'
Timing: Jan 31 2025 00:19:53
Module start 'content'
Timing: Jan 31 2025 00:19:53
Module end 'content'
Timing: Jan 31 2025 00:19:53
Script end

Main resources:

Total runtime0.0456 sec
Peak memory usage8,192.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 588.3906151.2422
Module start 'layout' 0.00650.0042 739.6328220.7500
Module start 'content' 0.01080.0331 960.3828997.7734
Module end 'content' 0.04380.0017 1,958.156333.9922
Script end 0.0456  1,992.1484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00326.9100140.0002
Check MTime0.00132.8630140.0001
Mysql Total
Database connection0.00132.823810.0013
Mysqli_queries0.00275.866630.0009
Looping result0.00000.028210.0000
Template Total0.00122.610.0012
Template load0.00102.084710.0010
Template processing0.00020.539510.0002
Override
Cache load0.00061.425010.0006
General
dbfile0.016335.687480.0020
String conversion0.00000.017840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs