HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Centering an image on a Comcode page

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#75617 (In Topic #15649)
Avatar

Community saint

I want to display an image after all my text on a Comcode page. I want the image to be centered so I used the "Display as an 'island' (if possible" option when uploading the image.

Looking through the documentation I see you can center text but not block element using the 'align' parameter. Do I need to use CSS to center this picture or is there an easier way?

Thanks for any help.

Bob
Back to the top
 
Posted
Rating:
#75619
Avatar

Community saint

Hi Bob,

You can use the following:

Code

[center][attachtment[/center]


http://digiflash.nl Photo community  (dutch)
Back to the top
 
Posted
Rating:
#75620
Avatar

Community saint

Thanks you so much, Harry. That worked perfectly.

Although I am embarrassed that I did not think of trying that.

I appreciate your help.

Bob
Back to the top
 
Posted
Rating:
#75626
Avatar

Community saint

Your welcome.  :)


http://digiflash.nl Photo community  (dutch)
Back to the top
 
Posted
Rating:
#75629
Avatar

There's also:

Code

[align="center"]<Your attachment here>[/align]


Like ocPortal on Facebook:
Back to the top
 
Posted
Rating:
#75631
Avatar

Community saint

Ahhhh,,,,so there are two ways that I missed.

It does encourage me that there seems to always be some kind soul on these forums to help figure this stuff out.

Thanks, Robbie.

Bob
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: