0
Welcome Guest! Login
0 items Join Now

Two image Background

    • armix's Avatar
    • armix
    • Newbie
    • Posts: 11
    • Thanks: 0

    Two image Background

    Posted 15 years 1 month ago
    • Hello, I opened i new topic becouse this discussion maybe help other people two facing the same problem .

      I have a php static site,and uses this tag to put two pictures as a background for the page.
      html {
      background: #64b2e1 url(/images/rafteri-pozadina.jpg) no-repeat ;
      background-repeat: no-repeat;
      background-position:top center;

      }
      body {
      background:url(/images/Pozadina-donja.jpg) no-repeat ;
      background-repeat: no-repeat;
      background-position:bottom center;


      }

      I see the joomla templates at this site are full of two background images examples,but i'm not so much of a joomla user,but still like this forum for getting help of all kind of things,and my example code is a little different from the one u use in joomla.

      So if u take a look at my site w...una-aqua.com you will see that the down picture is not going to the end borders of the window.

      Does maybe somebody have a clue what the problem could be,and is there a simple solution using this code i posted.

      Thank You
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Two image Background

    Posted 15 years 1 month ago
    • depending on what effect you want you can tryadding:

      body, html {margin: 0;padding: 0;}

      or

      body, html {height: 100%; margin: 0;padding: 0;}

      (wich looks cool too)
    • armix's Avatar
    • armix
    • Newbie
    • Posts: 11
    • Thanks: 0

    Re: Two image Background

    Posted 15 years 1 month ago
    • It worked perfectly and is so simple,thank you must start learning this css and other elementary web coding stuff...Just didn't like the height 100%,so i put width and now it's good :D

Time to create page: 0.085 seconds