A
A
AntonGoretskiy2014-09-02 20:35:03
css
AntonGoretskiy, 2014-09-02 20:35:03

Is it possible to position the block so that it is located from the center of the screen (horizontally) a certain number of pixels to the left?

At the same time, the block should not occupy a background (except, of course, the necessary part from the center to the left), because there will be a Google map under them and it should be usable (the map occupies the entire horizontal line). If it is possible, please show how?
Thanks in advance

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
Lynn "Coffee Man", 2016-08-03
@salexseen

Firefox "honestly" calculates fractional values ​​of margins, paddings, etc. and applies them when rendering SVG.
The "hack" usually works

svg {
  transform: translateZ(0);
}

https://jsfiddle.net/fdvn17o0/6/

_
_ _, 2014-09-02
@AntonGoretskiy

margin-left: 50% left: -50px;
Where 50 is half the width of the element

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question