E
E
enerjze2018-11-09 14:04:57
css
enerjze, 2018-11-09 14:04:57

How to make 3 bootstrap blocks on top of the background?

I'm trying to do the following, 3 blocks, left, center, right.
5be5692e8d6ab666289933.jpeg
As in the picture, it turned out so far only to make the menu in the center
5be5696f90efb724190453.jpeg
+ when scrolling down, the menu is not the full width of the screen
5be4ccd55fef5160799341.jpeg

.ftco-navbar-light.scrolled {
    position: fixed;
    right: 0;
    left: 50%;
transform: translateX(-50%);
    top: 0;
  z-index: 3;
    margin-top: -130px;
    background: #fff !important;
    -webkit-box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1); }

I tried using width and it doesn't work(

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry, 2018-11-09
@enerjze

Show the html code
The easiest way is to put the block in container-fluid - it will stretch to the full width and the desired fill, for example black.
Next in the block write container where your menu items will be centered and give it a background transparent and color for the a tags white.

A
Alexander59, 2018-11-09
@Alexandr59

Do you have the opportunity to create a sandbox?
It's easier to suggest a solution

N
NaN, 2018-11-09
@KornevaViktoria

You have 3 blocks so wrap their parent block and give it display:flex and align-items: space-between;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question