Jump to content

Background Position


liamoco

Recommended Posts

Can't be done. An image isn't really the best idea, as a little CSS is much smaller to load than an image.

 

You can do it like this I believe:

 

<div id="container">
  <div id="underlay"></div>
  <p>Some text some text some text some text</p>
</div>

 

CSS:

#container
{
  position:relative;
}
#underlay
{
  position:absolute;
  height:50%;
  bottom:0;
  left:0;
}

You may have to set the z-index on the #underlay as well.

Link to comment
https://forums.phpfreaks.com/topic/220978-background-position/#findComment-1144436
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.