I have the following structure, for now:
Thesidemenucamewithinclude_once'menu.php'
andthepagewe'reviewingishome.php
.
MenuCSS:
.longBarVertical{width:180px;min-height:100%;background-color:transparent;border:1pxsolidblue;float:left;}.logoMenu{margin-top:15px;}.logoMenuimg{width:50px;}.menuVertical{position:relative;width:180px;padding:0px;list-style:none;overflow:hidden;margin-top:15px;}.menuVerticallia{padding-left:15px;line-height:45px;display:block;overflow:hidden;position:relative;text-decoration:none;color:rgb(225,225,225);border-left:5pxsolidtransparent;}.menuVerticalli:hovera,.menuVerticalli:hoverai{color:black;-webkit-transition:all0.15slinear;-moz-transition:all0.15slinear;-o-transition:all0.15slinear;transition:all0.15slinear;}
Somaybeeverythingisright,whatIwouldlikewastobeabletoputthediv
inredthatiswritten"Home" next to the side menu and be able to put widht: 100%
. As it is in print, it has width: 200px
(for example only) and if I put width: 100%
, the div
is under the side menu, which is not what you want.
Codes of div
in red, can also be called "content":
<div style="background-color: red; width: 200px; float: left;">
<h1>Home</h1>
</div>
Maybe I can not put width: 100%
to div "content", if it is not, how can I make the "content" div be on the right side of the menu and occupy the rest of the screen? (The rest would be from the menu border to the right side of the page, something like a (hypothetically) width: 100%-180px
.
Desired:
Note: I'm using the Bootstrap 4
framework.