Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COI'm trying to avoid javascript, assuming there is a remedy with CSS alone. I've already tried several versions of the method you've suggested, but the problem is that either the extra divs (and their backgrounds) don't attach to the main div. Worse still, the three divs together have a whopping 1540 total pixel width, and that's the minimum size if you try to resize the browser window. I'd really prefer that only the main div remains centered in the window as the viewport is decreased. Any suggestions on how I can do this?
      singulars
    2. COIn that case using SVG is a real good option. You may use Adobe Illustrator to create SVG and that lies below your centered Div and using animate transform from HTML5 you can get certain effects. To know more Google it out. and also see a post [SVG to clip background]http://stackoverflow.com/questions/10286576/using-svg-to-clip-or-mask-a-div/10288237#10288237
      singulars
    3. COI've now solved the problem very simply: I created two more divs as you've suggested, but I nested them within the main div which was relatively positioned. The two additional divs were the same size, but that wouldn't matter. Rather than insert the two backgrounds as stand-alone images within those divs, I set them in the CSS as true backgrounds. Finally, rather than floating the divs left and right as you've kindly suggested, I just positioned them absolutely, using negative values on the left and positive values on the right so that they would appear attached to the central div. Presto!
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload