Best practice for Text with right floating image?

More
10 years 10 months ago - 10 years 10 months ago #53298 by Macjoomla
Hello FC Team,

what would you suggest for best practice to have a description text with a floating right image of a separate custom fc image field as in attached image?
[attachment=0:3n7c3j66]<!-- ia0 -->textplusimage.jpg<!-- ia0 -->[/attachment:3n7c3j66]
Thank you and best regards, Macjoomla 8-)

PS Sorry for having this asked before in a solved topic, for sure its better to open a new thread :oops:
Last edit: 10 years 10 months ago by Macjoomla.

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #53300 by micker
just create a field image
put it in description position
use css class for a float left
not good ?

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #53301 by Macjoomla
Hi Micker, thank your for this answer, unfortunately, this worked til update to version 3, please see also this thread, that has been originally solved: www.flexicontent.org/phpbb/viewtopic.php?f=28&t=7584#p53269 For now, after some work the best i can get is as in following image, but how to get the text to the left side of the image?
[attachment=0:3nrb06x1]<!-- ia0 -->imagefloatingrightabovetext.jpg<!-- ia0 -->[/attachment:3nrb06x1]

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #53316 by Rooney
Hi, we need to have a link to the page. This is all depending on the css code of your Joomla/FlexiContent template!
Rooney

Joomla! 3.9.24 and FC 3.3.9

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago - 10 years 10 months ago #53319 by Macjoomla
Hello Rooney,

thank you for this answer, here are my infos:

Joomla 3.4.1 with Template protostar - Default

Flexicontent 3.0 BETA5 with copy of default template, single item content layout with following fields in area of description: 1. custom image field "hammfoto" and 2. Default field "description".

In my used copy of the template i added following to the file "item.css":
Code:
.field_hammfoto { float: right !important; }

Link: deleted

Thank you and best regards, Macjoomla

Rooney wrote: Hi, we need to have a link to the page. This is all depending on the css code of your Joomla/FlexiContent template!
Rooney

Last edit: 10 years 10 months ago by Macjoomla.

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #53322 by micker
just change this in item.css
Code:
span.flexi.value, .flexi.value { display: block; float: none; max-width: 100% !important; padding: 0 !important; }

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #53323 by Macjoomla
Hello Micker,

thank you, that works and is exactly what i was looking for 8-)

Just one thing, after this is working now, i thought, it would be easy to increase the distance between floating text and the image, but "margin", "border", "padding" did not work for me. Do you have an additional hint to increase the distance left from the image?

My custom css now reads:
Code:
span.flexi.value, .flexi.value { display: block; float: none; max-width: 100% !important; padding: 0 !important; } .field_hammfoto { float: right !important; }

Thank you and best regards, Macjoomla

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #53325 by Rooney
Hi, you have many !important statements in your css:
Code:
#flexicontent .flexi.value, .flexi.value { margin: 2px 0 !important; padding: 0 !important; } span.flexi.value, .flexi.value { display: block; float: none; max-width: 100% !important; padding: 0 !important; } span.flexi.value, .flexi.value { display: block; float: left; max-width: 100% !important; padding: 0 !important; } #flexicontent .flexi.value, .flexi.value { margin: 2px 0 !important; padding: 0 !important; } .field_hammfoto { float: right !important; }
You should ONLY use !important if absolutely necessary or during site development. In your example you can see that many padding: 0 are important. Why? Get rid of all the important and change the paddings.

Rooney

Joomla! 3.9.24 and FC 3.3.9

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #53326 by Macjoomla
Hello Rooney, you may be right, but these importants have already been there from flexicontent, so i would not dear to eliminate them because this could cause any other layout issues.

I was just adding the last important of your list to let my image float left. without important it does not work.

Thank you and best regards, Macjoomla

Rooney wrote: Hi, you have many !important statements in your css:

You should ONLY use !important if absolutely necessary or during site development. In your example you can see that many padding: 0 are important. Why? Get rid of all the important and change the paddings

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #53327 by Macjoomla
Finally i was adding following code to same "item.css":
Code:
.fc_field_image { margin-left: 10px; margin-bottom: 10px; }
And now it seems to work as expected. Thank you guys for your hints and help 8-)

Best regards, Macjoomla

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save