I have div(class: review-tiems-container) with some items, on flex-direction:column they all show up, on flex-direction:row first one completely and some part of the second item disappear from screen, even when moving with mouse over mobile resolution.Even from editor mode hovering over their element, it shows empty space on dom.
this is how html looks, those item have inside content aswell but removed to reduce code length
<div id="reviews">
<h1 class="reviews-header">
Hear what our customers
<span>
are saying
<img class="why-underline" src="./Imgs/why/headerunderline.png"/>
</span>
</h1>
<section>
<div class="review-info-bar">
<div class="review-numbers">
</div>
<button class="review-btn">
</button>
</div>
<div class="review-items-container">
<div class="review-item">
</div>
<div class="review-item">
</div>
<div class="review-item">
</div>
<div class="review-item">
</div>
</div>
</section>
</div>
I tried different overflow options, none of them work
Related
<body>
<div class="header-8">
<div class="container">
<div class="row">
<div class="col-md-8">
<h1 class="#headline.6">International Network</h1>
<h4>We know how large objects will act, but things on a small scale</h4>
<div class="cta">
<button class="button.bt.primary-color.btn-round">
Get Quote Now
</button>
<button class="button.bt.primary-color.btn-outline.btn-round">
LEarn More
</button>
</div>
</div>
<div class="col-md-4"></div>
</div>
<div class="row">
<div class="col_md_4">
<div class="card-item">
<div class="icn resize icn-md">
</div>
</div>
</div>
</div>
</header>
</body>
Please click the above link to view the picture.
As you can see, I am not able to find the vector icon code for my project in FIGMA.
See the left side, Vector is clicked and on the right side the icon are visible.
But I don't know what's the code for it.
Moreover, if anyone have done any FIGMA project, can you tell me that I have placed the div tags correctly in VSCODE according to the left side objects?
By the way,you can right click the svg icon and copy as svg,or download the svg and show in your browser,check the html elements and copy the svg elements is also works
Try to find your vector icon in inspect selection,it's here:
I have a nav bar going across the top of my page, on :active of a certain one, I would like a certain div on another part of the page to pop up, is this possible or does the div i want to pop up have to be within the nav bar div?
The first nav part is a nav bar going across the top of the page with. There are 4 buttons and a logo in the middle. The second section, that is within the wrapper div, uses the grid system to display three columns, in the first column is 'SubNavBar', second is 'Info' then third is 'Links'. There is a second nav bar, within the first column that I would like to appear when clicking on the first option from the top nav bar.
<nav class="container">
<div class="1">
Nav1
</div>
<div class="2">
Nav2
</div>
<div class="logo"> Garrett Sauls
</div>
<div class="3">
Nav3
</div>
<div class="4">
Nav4
</div>
</nav>
<div class="wrapper">
<div class="one">SubNavBar
<nav class = "container2">
<div class="partOne">
Nav1.1
</div>
<div class="partOne">
Nav1.2
</div>
<div class="partOne">
Nav1.3
</div>
<div class="partOne">
Nav1.4
</div>
</nav>
</div>
<div class="two">Info
</div>
<div class="three">Links
</div>
</div>
So you can do it, but it depends on the structure of your HTML.
If the element you want to apply the hover effect to is next to your div (adjacent), you can use the + adjacent selector.
If there are elements in between the two elements you want interacting, use the ~ general sibling selector:
.first-element:hover + .adjacent-element {
background: #9dff73;
}
.second-element:hover ~ .distant-element {
background: #9dff73;
}
<div class="first-element">Hover over me</div>
<div class="adjacent-element">Watch me light up!</div>
<br />
<div class="second-element">Hover over me</div>
<div>I'm a div</div>
<span>I'm a span</span>
<section>I'm a section</section>
<div class="distant-element">Watch me light up!</div>
What i have is sidebar and on right side i have content. What i want is that both sides are in container but that are both full width . This is my demo: https://jsfiddle.net/DTcHh/19067/
So i want that left background color start from beging of page but text inside is in container and also i want that background color of right content go to the end of page but text is in container. Any suggestion?
<div class="container">
<div class="col-md-3">
<div class="left_sidebar">
menu
</div>
</div>
<div class="col-md-9">
<div class="right-content">
content
</div>
</div>
</div>
Its simple, wrap the colored containers above the container class and use two different containers:
<div class="left_sidebar">
<div class="container">
<div class="col-md-3">
menu
</div>
</div>
</div>
<div class="right-content">
<div class="container">
<div class="col-md-9">
content
</div>
</div>
</div>
Here is a working Fiddle
REMOVED other edits because EDIT 3 should do the trick best
EDIT 3
Here it is, that must be it for sure now. The trick is done with a linear gradientand a custom container above your bootstrap container.
See Fiddle
What you're asking, is by default impossible, since the .container class has a set width on different viewports and it is also horizontally "centerised" by margin:auto.
To achieve what you are trying you will have to follow a different "logic".
I would propose something like this:
<div class="left-sidebar col-md-3">
<div class="sidebar-menu col-xs-6 pull-right">
menu
</div>
</div>
<div class="right-content col-md-9>
<div class="content-text col-xs-10>
content
</div>
</div>
I propse this solution in order to stay in the same "flow" as your code. You could also, just play with paddings, which makes more sense.
use class row before col div
<div class="row">
<div class="col-md6"></div>
<div class="col-md-6"><div>
</div>
On my current website using bootstrap, I have a set of 'wells' within a container-fluid. The effect I am trying to achieve is to have each well is side by side in one row. This was fine for a few wells. However, now I have added more wells and I have begun testing on smaller resolutions.
Now, when the wells reach the edge of the browser window, they wrap around. This is not the behavior I'd like. Instead, I would like a horizontal bar to appear and allow users to scroll sideways to view the rest of the wells. All the wells should be in the same row, irrespective of screen resolution, the number of wells, and the width of the well's contents.
Here is a brief section of code to give you an idea of my structure:
<div class="container-fluid">
<div class="row">
<div class="span">
<div id="pipelinesPackagesViewPane" class="well well-sm">
<h2> Well 1 </h2>
<p> Long line of texxxtttttttttttttt </p>
</div>
</div>
<div class="span">
<div id="pipelinesPackagesViewPane" class="well well-sm">
<h2> Well 2 </h2>
<p> Long line of texxxtttttttttttttt </p>
</div>
</div>
<div class="span">
<div id="pipelinesPackagesViewPane" class="well well-sm">
<h2> Well 3 </h2>
<p> Long line of texxxtttttttttttttt </p>
</div>
</div>
<!-- MORE WELLS HERE -->
</div>
</div>
Am I using the correct Container? How can I achieve this 'no wrap' row result?
Thanks!
You may need some custome CSS to get that result use this:
<div class="container-fluid">
<div class="row wells"> // ADD Class "wells"
<div class="span">
Then on CSS
.row.wells {
white-space:nowrap;
overflow:auto;
}
.span {
display:inline-block;
}
Check this Demo
I have a layout built using CSS display:table (inline, row, cell, etc). I'm doing local development on it with apache, and when I refresh the page, two of the div containers are incorrectly lined up. However, if I uncheck and re-check display:table-row, they correct themselves, and the page displays correctly.
http://jsfiddle.net/fNNKT/
You can see the HTML and CSS at the jsFiddle above. It's actually not working there either, so maybe I'm doing something wrong, and can use help with that.
<div class="cabinet-container">
<div class="mode-bar">
<div class="mode-bar-left">
<div class="mode-bar-item">logo</div>
<div class="mode-bar-item active">Dispense</div>
<div class="mode-bar-item">Inventory</div>
</div>
<div class="mode-bar-right schedule">
<div class="mode-bar-item">Sign-Out</div>
</div>
</div>
<div class="table"></div>
<div class="left-container"></div>
<div class="center-container">
<div class="search-container">
<div class="table-cell">
<div class="search-field"></div>
</div>
</div>
<div class="nav-button-center-container">
<div class="table-cell">
</div>
</div>
<div class="list">
<div class="table-cell">
<div class="list-item-center-container"></div>
<div class="list-item-center-container"></div>
<div class="list-item-center-container-partial"></div>
</div>
</div>
<div class="nav-button-center-container-down-active">
<div class="table-cell"></div>
</div>
</div>
<div class="footer">
<div class="button-group table-border-5">
<div class="button-secondary">Dispense Non-Drug</div>
<div class="button-secondary">Sort By: Last Name</div>
</div>
<div class="button-group-right table-border-5">
<div class="button-primary">New Clinical Order</div>
</div>
</div>
</div>
Is your question related to .mode-bar-left and .mode-bar-right wrapping onto two lines? If so, the problem relates to whitespace. Think of two images displayed inline, side by side. If there's whitespace between the tags in the code, there will be whitespace displayed in the browser.
Solution #1:
Take your logic one level higher up in the DOM. Change the display value for both mode-bar elements to table-cell (instead of the current inline-table). Then change the .mode-bar-item elements to display: inline-block (instead of table-cell).
Solution #2:
A faster, less elegant solution is to add float: left to .mode-bar-left.
On the topic of elegance, I strongly recommend that you consider some more semantically meaningful tags than just div. For example, .mode-bar-left is clearly a list (ul perhaps?) and the .mode-bar-item elements are clearly list items (li).
Are you using any javascript/jQuery? On a recent project of my own, I was having a similar issue and all I had to do was move my custom lightbox script from the to right before the tag, and it seemed to fix the issue. Sometimes javascript can be wonky like that. I don't understand why, but that's the way it is.