|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 8/31/2008 9:22:00 AM
Posts: 5,
Visits: 56
|
|
| I've found the property in my background style that allows my background to adjust to the size of my browser window. If I set (x) background-postion to centre and (y) background-position to centre, then the background will re-size according to my browser window. This is great, however all the layers that I have placed on my page don't adjust with the window size. All my layers scatter when I re-size my window. What property must be set so that my layers stay in position. help!!!
Restaurant POSWinRest restaurant management software www.abspos.com www.winrest32.com
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 11/9/2008 3:16:24 PM
Posts: 7,
Visits: 45
|
|
Ok I saw this yestarday and was going to reply but was too tired to make an understandable response.
First of all, I tried centreing a background image on the x and y myself and the image jumped up and cut the top of it off, probably something to do with my page size but that's not important.
As far as centreing the other layers I have work around that MAY work but no promises.
Basically the work around is to have a relatively positioned layer starting X pixels in and X pixels down, this is a wrapper that holds all other (relative) divs inside of it. I haven't experimented fully with it but it does hold relative DIVs inside of it just fine.
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 8/31/2008 9:22:00 AM
Posts: 5,
Visits: 56
|
|
thanks for you response. I've tried this method with no success. I'm pretty new to expression web and building html based websites, so I'm ready to pull out my hair. Any other ideas? This is a pretty standard thing, I'm sure it's so simple.
Restaurant POSWinRest restaurant management software www.abspos.com www.winrest32.com
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 11/9/2008 3:16:24 PM
Posts: 7,
Visits: 45
|
|
Hmm I'm kind of surprised it didn't work. As for another solution it may help if you can upload the code you have (just go to your code view in EW, select all, copy and paste it all and upload it to a pastebin (link).
The reason I suggest this is that if you've looked at the image you linked in the first post it's a bit hard to see exactly what the problem is, ontop of that a small problem in the code might be what is making it not work so it also allows for error checking.
When you get the pastebin uploaded just paste the link into either the original post or a new one here.
I'll mess around a bit more in EW and see if I can come up with anything, I'll check back with any possible answers as well.
[EDIT]
I played around with EW a little more after posting and got the hang of centred background images, the long story short is that if you want to have a div over the image for whatever reason you simply can't do it in a reliable manner. Centred background images move with the centre of the browser so resizing will mess it up.
Anyway, it's just gone midnight here so I'll check back tomorrow.
|
|
|
|
|
Supreme Being
      
Group: Administrators
Last Login: 10/24/2008 2:27:36 PM
Posts: 437,
Visits: 632
|
|
Without seeing the code, I'm going to guess that your layers are not encased in a container. If you wrap all of your divs inside of a sort of "master" div, you can set the margin-left and margin-right on that div to auto, and that will center your page.
=========================
My wife has given birth to our twins, so I'm still going to be spotty around here. It never seems to correct itself does it? I'm sorry, I'm trying.
=========================
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 8/31/2008 9:22:00 AM
Posts: 5,
Visits: 56
|
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 8/31/2008 9:22:00 AM
Posts: 5,
Visits: 56
|
|
I figured it out. The problem was that I was not applying the margin properties to the page, instead I will applying them to my div. Once I applied margin properties to the actual page, everything behaved the way I wanted it to. That was the problem. Dustin, you are the man.
Restaurant POSWinRest restaurant management software www.abspos.com www.winrest32.com
|
|
|
|