Jump to content
php.lv forumi

2 backgroundi


Kefiirs

Recommended Posts

Sveiki!

 

Nemāku uzlikt 2 fonus savā mājaslapā!

Pagaidām man stāv tikai viens - puķīte lapas kreisajā stūri, bet man vajag vēl vienu tādu pašu lapas labajā augšējā stūrī!

KĀ MAN TO IZDARĪT?

 

Pagaidām man stāv:

<style type="text/css">
body
{ 
background-image:url('images/lol.jpg');
background-repeat:no-repeat;
background-attachment:fixed;
background-position: 0%;
}
</style>

Kā man uzlikt 2 zīmējumus?

Link to comment
Share on other sites

Nemāku uzlikt 2 fonus savā mājaslapā!

fons peec defeniicijas var buut TIKAI VIENS !!!

---

vari izmantot position absalute ...

 

a nu jaa katram Elementam var buut savs fons, bet tikai viens...

Edited by Grey_Wolf
Link to comment
Share on other sites

Tiklīdz es liku position absolute koordinātes, viņš man kustināja manu tabulu, nevis zīmējumu!

{ 
background-image:url('images/lol.jpg');
background-repeat:no-repeat;
background-attachment:fixed;
position:absolute;
left:500px;
top:150px;
}

Nekustējās zīmējums, bet tabula! Kā mainīt zīmējuma koordinātes, nevis tabulas?

Link to comment
Share on other sites

Viss ok, sataisīju! :)

img.lol
{
position:absolute;
left:0px;
bottom:0px;
z-index:-1
}
img.rofl
{
position:absolute;
right:0px;
bottom:300px;
z-index:-1
}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...