Want to thank and support me for my work?
Buy my iWebFAQ.org E-Book (15$) (reviews) (sample) or...
iWebFAQ.org is presented by Cédric and hosted by HostExcellence
It is currently Sat May 25, 2013 12:31 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Changing Browserbackground to adjusting Picture - possible?
Author Message
 Post subject: Changing Browserbackground to adjusting Picture - possible?
PostPosted: Wed Jun 27, 2012 7:33 pm 
Offline

Joined: Wed Jun 27, 2012 7:16 pm
Posts: 2
Hello there!

I got a little Problem with my iWeb. I created two websites so far and for information and basic sharing of pictures, they are quite allright but nothing special (have a go at www.fabiankremser.com or www.tricademy.ch). As a complete beginner I used Templates and changed them - but now I'd like to go one step further. (I've plowed through the FAQ's and didn't find anything there - if I overlooked it I'm sorry!)

I'd like very much to create a browser Background that consists of a picture which adjusts itself to whatever size your browser has. (for example: www.mottolino.com - no matter if you open the website on a small iBook or the big iMac, the picture will always fill out the whole space of the browser and I really dig that! ;-) )

Question is - is it possible to create something like that in iWeb? (I got as far as to take a picture for browser-background but the best I could to was to repeat itself over and over and that looked a bit late 1990ies to me...)

I'd be glad for some advice - and since I know that you're very busy, I'm not really pressed for time! ;-)

Thanks in advance,

Fabian


Top
 Profile Send private message  
 
Changing Browserbackground to adjusting Picture - possible?
Author Message
 Post subject: Re: Changing Browserbackground to adjusting Picture - possib
PostPosted: Thu Jun 28, 2012 1:33 am 
Offline
Site Admin

Joined: Tue Jun 10, 2008 1:14 am
Posts: 1840
Location: Basel, Switzerland
Hi Fabian,

that's only possible editing the code post-publishing.

1) In iWeb go to Inspector, Page, Browser background, Image Fill, Original size and choose the image.
2) Publish your website
3) Open the page in TextWrangler and look for this line:

Code:
<body style="background: rgb(255, 255, 255) url(Blank_13_files/IMG_0177.jpg) no-repeat scroll center center; margin: 0pt; " onload="onPageLoad();" onunload="onPageUnload();">


the url certainly is not the same but the rest should be quite similar.
4) Replace that line with the following:

Code:
<body style="background: rgb(255, 255, 255) url(Blank_13_files/IMG_0177.jpg) no-repeat center center; margin: 0pt; background-attachment: fixed; background-size: 100%;" onload="onPageLoad();" onunload="onPageUnload();">


hence remove scroll and add background-attachment: fixed; background-size: 100%;

That should do it. See an example here:
http://iwebfaq.org/test/test/Blank_13.html
you will have to login entering the following data to see the example:
Username: username
Password: password

Hoffe es ist so wie du es dir vorgestellt hast.

Grüsse,
Cédric

_________________
Thank you for visiting my websites:
http://iwebfaq.org - http://rapidweaverfaq.org - http://wpfaq.org - http://ebookstoretoday.com
All my websites are hosted by: HostGator


Top
 Profile Send private message  
 
Changing Browserbackground to adjusting Picture - possible?
Author Message
 Post subject: Re: Changing Browserbackground to adjusting Picture - possib
PostPosted: Thu Jun 28, 2012 9:09 am 
Offline

Joined: Wed Jun 27, 2012 7:16 pm
Posts: 2
Hey Cédric!

Thank you for your very fast response - that's exactly what I was looking for! I'll try that out immediately - thank you very much!

Cheers,
Fabian


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron






Want to support me for my work?

or buy my iWebFAQ.org E-Book (15$)

(reviews) (sample)

Thanks,
Cédric



 

This website is hosted by HostExcellence



© 2008, 2009 Powered by phpBB Group
Macinscott 3 style by Scott Stubblefield