0 Replies Latest reply on Jan 19, 2008 2:10 AM by Newsgroup_User

    Re: CSS background position

    Level 7
      Hi Michael,
      I already tried coding a page like this

      > <div class="first">
      > <div class="second">
      > ... content
      > </div></div>

      but didn't work and i don't understand why (especially because once i did
      it!)

      I think better to start from scratch again rethinking the whole layout in a
      better way

      Thank you very much
      Nicola

      "Michael Fesser" <netizen@gmx.de> ha scritto nel messaggio
      news:l2a2p3l2g684cmke41nnhhkfe4jikgmict@4ax.com...
      > .oO(Nicola Rubeo)
      >
      >>I undesrtand you perfectly
      >>
      >>don't understand why this option is not present
      >
      > It would require to not only say "repeat-y", but also in which direction
      > to tile, up- or downwards. Currently this can't be done.
      >
      > In CSS 3 it should become possible to achieve this effect, even if it
      > might be just faked with multiple background images on the same element.
      > But CSS 3 still has a loooong way to go.
      >
      > Hmm ... wait a minute ... CSS 3 will allow to apply multiple background
      > images to the same element, but even in CSS 2.1 this can be faked
      > already, it just requires one additional block-level element per image:
      >
      > <div class="first">
      > <div class="second">
      > ... content
      > </div></div>
      >
      > Apply your normal repeat-y background image to .first and another image
      > to .second to "hide" the first 142 pixels of the first one. Quite ugly,
      > but maybe it works for you. Of course it depends on the images and the
      > overall layout.
      >
      > HTH
      > Micha