Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / October 2004

Tip: Looking for answers? Try searching our database.

Centering Background Image

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Johnny Corona - 12 Oct 2004 23:05 GMT
Does anybody know if there is a way to center a background image in InfoPath?
I have a nice looking form with a background that enhances it nicely but the
background is overwhelming when the user maximizes the InfoPath window - too
much background on either side of the form.

I would like the form to look fixed in width, with white borders on the
sides if the user expands the window.  

The only options for background image position are "upper-right" and
"upper-left."  I also tried adjusting the Custom Layout Width, but this only
affects the default size of the tables.

Any ideas?

Thanks in advance!

~Johnny
Brian Teutsch [MSFT] - 12 Oct 2004 23:26 GMT
If you use File->Extract Form Files while you're designing the form, you can
view the XSL (and XHTML+CSS) used to create the form. Set the value to be
top-left beforehand, so you have the style to play around with.

Open the XSL for your view in Notepad, then just change the
background-position style to be "center center". You can re-open the XSF
file in that folder in the designer, then perform save-as to repackage all
those files into an XSN. Your centered style should remain just fine.

This isn't included by default, because InfoPath forms with layout tables
and repeating containers don't grow as the window expands, so most of the
time an iamge that moves around would be in an unpredictable location.

Brian

> Does anybody know if there is a way to center a background image in
> InfoPath?
[quoted text clipped - 17 lines]
>
> ~Johnny
Johnny Corona - 13 Oct 2004 02:11 GMT
Nice, Brian!   Worked like a charm.  

The appropriate tag for me was "top center" - I have it repeating vertically.

FYI, it's a nice feature for making slick looking forms.  Might consider
this is a feature in the next rev.

Thanks!

~Johnny

> If you use File->Extract Form Files while you're designing the form, you can
> view the XSL (and XHTML+CSS) used to create the form. Set the value to be
[quoted text clipped - 32 lines]
> >
> > ~Johnny
Johnny Corona - 13 Oct 2004 02:13 GMT
Nice, Brian!   Worked like a charm.  

The appropriate tag for me was "top center" - I have it repeating vertically.

FYI, it's a nice feature for making slick looking forms.  Might consider
this is a feature in the next rev.

Thanks!

~Johnny

> If you use File->Extract Form Files while you're designing the form, you can
> view the XSL (and XHTML+CSS) used to create the form. Set the value to be
[quoted text clipped - 32 lines]
> >
> > ~Johnny
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.