Backgrund images alignment...

Post non-phpwcms related topics here - but I don't want to see "hey check this or that other cms". Post if you have a point or worthwhile comment, don't post just to increase you post count!
Post Reply
User avatar
oeconom
Posts: 337
Joined: Fri 13. May 2005, 09:33
Location: Stuttgart
Contact:

Backgrund images alignment...

Post by oeconom »

Hi folks,

I want do do the following:
Having a graphic aligned to the bottom the screen (like a carpet) horizontally spread to the whole widht. If the phpwcms content vertically doesn't reach to the end of the screen, the graphic should anyhow be aligned to the bottom.

Can anyone help me to realize this?!

Thanks for your suggestions,
best wishes,
FELIX
...alles wird gut!
still alive...
Experimenting with phpwcms and hoping to have time one day to get a site live... :wink:
One Site finished! :P
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Post by Jensensen »

Hi Felix,

{one of the few BWLer on board, oder wie???)

try

#box_x {
background: #123 url(../picture/MyBground123.jpg) no-repeat bottom left;
}

OR¿¿

body {
background: url(../picture/bg/MyBodyBG.png) 50% 0px no-repeat;
}
--> visible centered 'behind' your page --> body

body {
background: url(../picture/bg/MyBodyBG.png) 50% bottom no-repeat;
}
--> visible centered 'behind' your page BOTTOM

while
html, body {height: 101%;}



greetz from dipl oec
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
oeconom
Posts: 337
Joined: Fri 13. May 2005, 09:33
Location: Stuttgart
Contact:

Post by oeconom »

from dipl.-oec. to dipl.-oec. :wink:
thakns jensensen for your hint!

Is it also somehow possible to have two different background graphics (both x-repeated)?
One aligned top, the other aligned bottom?

Thanks and best wishes,
FELIX
...alles wird gut!
still alive...
Experimenting with phpwcms and hoping to have time one day to get a site live... :wink:
One Site finished! :P
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Post by Jensensen »

Hi felix,

(ja guck an, Bochum oder Augsburg...??)

Well, I've to admit, that more than one time I wished for the same solution but, NO!

Otherwise and as many times before, it will work with CSS:


The keyword is "wrapper".

Set up first DIV with bg-graphic e.g. top left AND wrap around a second DIV with bg-graphic e.g. bottom right.

Greetz
Jensensen
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
Post Reply