Screen placing - Page 2 - Post ID 197430

User 271657 Photo


Ambassador
3,816 posts

I see the white screen around the sides and bottom.
The image either needs to be repeated vertically and horizontally to fill the browser; or if it wouldn't look good repeated, check this out: http://css-tricks.com/perfect-full-page … und-image/

You could also try this... Find a sky/stars background image (that's made to repeat seamlessly). Set it for your page background then set it to continue beyond the page borders (per Eric's post above). Now take just the earth image and put it where you want it on your page.

(Inger – I like that slideshow/background on the restaurant site ;))

I love deadlines. I like the whooshing sound they make as they fly by. (Douglas Adams)
https://www.callendales.com
User 122279 Photo


Senior Advisor
14,622 posts
Online Now

paintbrush wrote:


(Inger – I like that slideshow/background on the restaurant site ;))


Thanks for that! :) The images are not 100% good, I need to play around with them in PhotoShop when I get home from my holiday. (We are where that restaurant is).
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 271657 Photo


Ambassador
3,816 posts

Looks like a great place to be :) I'm jealous :P
I love deadlines. I like the whooshing sound they make as they fly by. (Douglas Adams)
https://www.callendales.com
User 2435248 Photo


Registered User
54 posts

Inger wrote:
That was what I wanted to show you on the site I quoted above. Here is another one: www.fokaibalik.com

I don't use VSD, though, but it is possible to link to css files/insert scripts in VSD too.



ok I dont understand completely but I get that it is possible


http://jilmi.org/index.html

currently I have the middle as a PNG so it can feather fade into the back ground

but this means when i add my spinning world Gif or advanced text it gets a nasty square around them because VSD does not support dual transparency Mapping

what I want is to have the picture dead center of the persons screen and cover about 85% of it from the center out and then just have a black screen from there

no matter their screen resolution

User 122279 Photo


Senior Advisor
14,622 posts
Online Now

Here is the code for centering an image vertically and horizonally:

<img src="images/yourimage.png" width="300" height="300"
style="position: fixed;
top: 50%;
left: 50%;
margin-top: -150px;
margin-left: -150px;"/>


You will have to give it the name of your file and the dimensions, and note that the margins have to be exactly half og those dimensions, and as negative values.

As I mentioned to another of your posts, the VSD experts will have to help yougetting this code where it belongs.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 2435248 Photo


Registered User
54 posts

Thanks I put it in http://jilmi.org/index.html

It worked sort of but I noticed on zoom in and out the words can move

is there a script like this that can regulate the entire page?

User 122279 Photo


Senior Advisor
14,622 posts
Online Now

I wasn't thinking that you wanted to apply the code to the background. Try this instead:
body {

background: #000 url(space.jpg)
center center fixed no-repeat;
-moz-background-size: cover;
background-size: cover;
}

Not sure it will work in VSD, though. If not, use the trick that Paintbrush posted earlier in this thread, about a small image tiling all the background.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 187934 Photo


Senior Advisor
20,266 posts

Yes that will work in VSD. This the part I like about VSD you can override a lot of stuff.:)


<style type="text/css">
<!--
body {
background: #000 url(space.jpg)
center center fixed no-repeat;
-moz-background-size: cover;
background-size: cover;
}
-->
</style>

I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 122279 Photo


Senior Advisor
14,622 posts
Online Now

Sorry, I tried my suggestion in VSD and it didn't work. (Did you get it to work, Eric?)
My guess is that because VSD can't handle html5, it won't read this bit:

-moz-background-size: cover;
background-size: cover;

But while experimenting I found something that did work:

First you use a picture editing programme and make a pic with a transparent background and nothing more in it. It doesn't have to be large, just a wee rectangle.
Save it as 'whatever.png'.
Then boot VSD, set the page dimensions and centering, and for website background you choose picture, and then browse to the 'whatever.png'.
After having clicked ok, go to Settings -> background fill properties.
In there choose image, and browse to where you have the space.jpg.
Then click ok, and preview. :)
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 122279 Photo


Senior Advisor
14,622 posts
Online Now

Sorry again for the confusion. The code I posted last night, which Eric repeated, works after all. I had made a mistake when testing at first, and of course, then it wouldn't work.

Anyway, Lord Maddog, now you have two ways of getting that space background to cover the whole page.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com



Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.