Unable to centre align frame.
Unable to centre align frame.Hi, Not sure what I am doing wrong as I can get frames to display correctly around my text or images however I am unable to centre the frame itself (NOT the text within the frame, that works OK).
For example I place and highlight the following in my article {AF width=30%}Your Content {/AF} and then select centre align, within the editor the text moves to a central position, however when I check the front end output. The frame is displayed left aligned and not in the centre of the screen. I am using JCE Editor in Joomla 3.2.3 Please help!
Re: Unable to centre align frame.Is your site online? Can you post a link so I could check?
Help Admiror Gallery become even better,
give us a review on JED
Re: Unable to centre align frame.Hi,
I have created a test page at http://www.computerexpertonline.co.uk/test-page I have enclosed an IE logo image and centrally aligned {AF width=30%} IE Logo {/AF} however as you can see the frame is left aligned on the webpage when I would expect to see it centrally in the column. When I toggle the source in the editor it shows as follows: <p style="text-align: center;">{AF width=30%} <img style="vertical-align: middle;" src="images/Articles/IE_Logo.png" alt="IE Logo" /> {/AF}</p> Regards
Re: Unable to centre align frame.OK, this is a little tricky but possible.
You will need to change the code a little bit: Open [joomla]\plugins\content\admirorframes\admirorframes\scripts\AF_helper.php and change line 72: Code: Select all Code: Select all Code: Select all Code: Select all Help Admiror Gallery become even better,
give us a review on JED
Re: Unable to centre align frame.Hi Vasiljevski
I followed your instructions (the code change referred to line 125 was actually line 124 for me) and the frame around the picture now sits as required in the middle, thank you. May I ask and sorry to be a pain, depending on an article and its layout there maybe occasions where a frame around text or a picture would look more suitable left aligned. I am assuming as the php had to be amended directly to allow central alignment it not possible to have some frames centrally aligned while others are left aligned. Regards
Re: Unable to centre align frame.Well I didn't test it, but if you set Float to left and Margin to 0, frame should be aligned left.
You can achieve this by using inline params, for example: Code: Select all Help Admiror Gallery become even better,
give us a review on JED
Re: Unable to centre align frame. (SOLVED)Hi Vasiljevski
Yes all working, thanks for the quick responses. Regards |
