+ Start a Discussion
Suman KuchSuman Kuch 

How can we align (center) the visualforce page on object page layout?

Hi,

the requirements is based on the contact photo setup on Contact page. I created a Visualforce page to show/upload photo and embeded on contact's edit page layout. The photo is showing left side of section  but we need to show in center how can we do that? I tried div tag with align center but no use.

Please give me clue on this.

Sumant K
Best Answer chosen by Suman Kuch
Tejpal KumawatTejpal Kumawat
Hi Suman,

You can use image tag between <CENTER></CENTER> tag. Also you can also try using margin-left:25% CSS.

Regards
Tej Pal Kumawat
Skype : tejpalkumawat1991

If this answers your question mark Best Answer it as solution and then hit Like!

All Answers

Tejpal KumawatTejpal Kumawat
Hi Suman,

You can use image tag between <CENTER></CENTER> tag. Also you can also try using margin-left:25% CSS.

Regards
Tej Pal Kumawat
Skype : tejpalkumawat1991

If this answers your question mark Best Answer it as solution and then hit Like!
This was selected as the best answer
Suman KuchSuman Kuch
Thanks Tejpal,

Your second solution (CSS) worked for me but still the first one is not working
<CENTER>
   <apex:image value="{!photoString}" height="200" width="200"/>
</CENTER>
Anything wrong im doind here?