1
I have the following structure for now:
The side menu came by include_once 'menu.php'
and the page we’re looking at is home.php
.
CSS from the menu:
.longBarVertical {
width: 180px;
min-height: 100%;
background-color: transparent;
border: 1px solid blue;
float: left;
}
.logoMenu {
margin-top: 15px;
}
.logoMenu img {
width: 50px;
}
.menuVertical {
position: relative;
width: 180px;
padding: 0px;
list-style: none;
overflow: hidden;
margin-top: 15px;
}
.menuVertical li a {
padding-left: 15px;
line-height: 45px;
display: block;
overflow: hidden;
position: relative;
text-decoration: none;
color: rgb(225, 225, 225);
border-left: 5px solid transparent;
}
.menuVertical li:hover a, .menuVertical li:hover a i {
color: black;
-webkit-transition: all 0.15s linear;
-moz-transition: all 0.15s linear;
-o-transition: all 0.15s linear;
transition: all 0.15s linear;
}
Until then maybe it’s all right, what I’d like is to get the div
in red that is written "Home" next to the side menu and power put widht: 100%
. The way it is in the print, you’re with width: 200px
(just for example) and if I put width: 100%
, to div
is under the side menu, which is not what is desired.
Codes of div
in red, can also be called "content":
<div style="background-color: red; width: 200px; float: left;">
<h1>Home</h1>
</div>
Maybe it’s not possible to put width: 100%
To div "content", if not, how can I do to div "content" to be on the right side of the menu and occupy the rest of the screen? (The rest would be from the menu edge to the right side of the page, something like a (hypothetically) width: 100%-180px
.
Desired:
Note: I am using the framework Bootstrap 4
.
Bola Show?vı, functioned perfectly. Thank you!
– D. Watson