I need this to fill the screen with no scroll bar
#media (min-aspect-ratio: 2/3) and (max-aspect-ratio: 3/2) {
.containerMedia {
columns: 3 auto;
}
.individualBoxMedia{
height: calc(100vh/3);
}
but its like this
but this is working
#media (max-aspect-ratio: 2/3) {
.containerMedia {
columns: 2 auto;
}
.individualBoxMedia{
height: 25vh;
}
}
full code
App.js
//import logo from './images/logo512.png';
import './App.css';
import cardData from './data/cardData';
function App() {
return (
<div className="App">
<div className='container containerMedia'>
{cardData.map(card => {
return (
<div className='individualBox individualBoxMedia'>
<div className='card'>
<div className='cardImageBox'>
<img src={card.location}/>
</div>
<div className='cardTextBox'>
<p>{card.text}</p>
</div>
</div>
</div>
)
})}
</div>
</div>
);
}
export default App;
/*
https://codesandbox.io/s/repeat-element-dpocp?file=/src/App.tsx
*/
app.css
.App {
text-align: center;
}
#media (max-aspect-ratio: 2/3) {
.containerMedia {
columns: 2 auto;
}
.individualBoxMedia{
height: 25vh;
}
}
#media (min-aspect-ratio: 2/3) and (max-aspect-ratio: 3/2) {
.containerMedia {
columns: 3 auto;
}
.individualBoxMedia{
height: calc(100vh/3);
}
}
#media (min-aspect-ratio: 3/2) {
.containerMedia {
columns: 4 auto;
}
.individualBoxMedia{
height: 50vh;
}
}
.individualBox {
border-style: solid;
border-width: 0em;
box-sizing: border-box;
padding: 1vw;
background-color: lightgray;
}
.card{
box-sizing: border-box;
height: 100%;
width: 100%;
padding: 0.5vw;
background-color: white;
border-radius: 0.5em;
}
.cardImageBox{
box-sizing: border-box;
height: 60%;
width: 100%;
}
.cardTextBox {
box-sizing: border-box;
min-height: 0;
min-height: 40%;
max-height: 40%;
width: 100%;
overflow: hidden;
}
.container {
column-gap: 0rem;
max-height: 100vh;
max-width: 100vw;
}
.individualBox img {
width: 100%;
height: 100%;
object-fit: cover;
object-position:top;
border-radius: 0.5em 0.5em 0px 0px;
}
.individualBox p {
padding: 0;
margin: 0;
overflow: hidden;
}
data
//Card Data
export default [
{
text: 'The final Computer Space design uses no microprocessor; the entire computer system is a state machine made of 7400-series integrated circuits, with monochrome graphic elements held in diode arrays.',
location: './images/object1.jpg',
},
{
text: 'object2 rtxyculvy fvgbhjn fcvgbhjn vybhnj ytbjhk xdcfvgbjh ctryvb crtfyvgbh',
location: './images/object2.jpg',
},
{
text: 'object3 cytvub tcvb tcfvyg trcvyb trcyvub yvtub yvtuby vytub vtuyb vtgubh vuybi',
location: './images/object3.jpg',
},
{
text: 'object4 tdrfygu ctryvbuu rtcyvbuni rtyvbu ed5rftyguhijo rextcvyb rtcyguhi rftyguhi',
location: './images/object4.jpg',
},
{
text: 'object5 cvgb ytvubiu rytui rytguhi rtfyguhijo rtfyguhijo zwxretcfyvguhio drftyg',
location: './images/object5.jpg',
},
{
text: 'object6 yvubyhinj ctryvuy rctyvub yrctvubiu rctyfugi f7tygiu rctvyubiu rftyguih',
location: './images/object6.jpg',
},
{
text: 'object7 cfvgbjhkn cfvygtbyhn rxectfvygbuni rtcvybun rctyvbuin rtyvub etcrvytgbu',
location: './images/object7.jpg',
},
{
text: 'object8 cvbyn rcytvubu trcyvubu rfytgui ytugi yrtvubi ytvubi yrctui ytui rfytugih',
location: './images/object8.jpg',
}
];
I would suggest using something like this
.parent {
display: grid;
grid-template-columns: (auto, minmax(250px, 300px))
}
Related
I have sideNavbar and when click on side bar menu return menu componetns on the right side.
Below i have mention the image just look same output want.
Sandboxlink:https://m7tqt3.csb.app/
SideNavbar.js
---
import "./SideNavBar.css";
const SideNavBar = () => {
const menuItems = [
{
text: "Dashboard",
icon: "icons/grid.svg",
},
{
text: "Admin Profile",
icon: "icons/user.svg",
},
{
text: "Messages",
icon: "icons/message.svg",
},
{
text: "Analytics",
icon: "icons/pie-chart.svg",
},
{
text: "File Manager",
icon: "icons/folder.svg",
},
{
text: "Orders",
icon: "icons/shopping-cart.svg",
},
{
text: "Saved Items",
icon: "icons/heart.svg",
},
{
text: "Settings",
icon: "icons/settings.svg",
},
];
return (
<div
className={
"side-nav-container"
}
>
<div className="nav-upper">
<div className="nav-heading">
(
<div className="nav-brand">
<img src="icons/Logo.svg" alt="" srcset="" />
<h2>Showkart</h2>
</div>
)
</div>
<div className="nav-menu">
{menuItems.map(({ text, icon }) => (
<a
className={ "menu-item"}
href="#"
>
<img className="menu-item-icon" src={icon} alt="" srcset="" />
{ <p>{text}</p>}
</a>
))}
</div>
</div>
</div>
);
};
export default SideNavBar;
SideNavbar.css
/* NX = not expanded */
.side-nav-container {
background-color: var(--dark);
width: 300px;
height: 100vh;
position: relative;
color: var(--light);
transition: 0.4s;
}
.side-nav-container-NX {
width: 85px;
}
.nav-upper,
.nav-heading,
.nav-menu,
.menu-item,
.nav-footer {
/* border: 2px solid white; */
display: grid;
}
.nav-heading {
grid-template-columns: 2fr 1fr;
grid-template-rows: 1fr;
height: 75px;
}
.nav-brand {
display: flex;
color: var(--light);
}
.nav-brand img {
width: 40px;
padding: 0 10px;
}
.hamburger {
background: none;
border: none;
cursor: pointer;
margin: auto;
}
.hamburger span {
display: block;
margin-top: 5px;
background-color: var(--light);
border-radius: 15px;
height: 5px;
width: 35px;
transition: 0.4s;
}
.hamburger:hover span {
background-color: var(--primary);
}
.hamburger-in:hover span:nth-child(1) {
width: 25px;
transform: translateY(4px) rotate(-25deg);
}
.hamburger-in:hover span:nth-child(2) {
width: 40px;
}
.hamburger-in:hover span:nth-child(3) {
width: 25px;
transform: translateY(-4px) rotate(25deg);
}
/* ///////////////////// */
/* ///////////////////// */
/* ///////////////////// */
/* ///////////////////// */
.hamburger-out {
margin-left: 24px;
}
.hamburger-out:hover span:nth-child(1) {
width: 25px;
transform: translate(14px, 4px) rotate(-155deg);
}
.hamburger-out:hover span:nth-child(2) {
width: 40px;
}
.hamburger-out:hover span:nth-child(3) {
width: 25px;
transform: translate(14px, -4px) rotate(155deg);
}
.nav-menu {
grid-template-rows: repeat(7, 1fr);
margin-top: 50px;
}
.menu-item {
height: 57px;
display: flex;
color: var(--light);
text-decoration: none;
text-transform: uppercase;
margin: auto 20px;
border-radius: 10px;
}
.menu-item-NX {
margin: auto;
}
.menu-item:hover {
background-color: var(--primary);
}
.menu-item img {
width: 30px;
padding: 0 20px;
}
.nav-footer {
width: 100%;
height: 87px;
position: absolute;
bottom: 0;
grid-template-rows: 1fr;
grid-template-columns: 2fr 1fr;
}
.nav-details {
display: flex;
}
.nav-details img {
width: 50px;
padding: 0 20px;
}
.nav-footer-user-name {
font-size: 18px;
font-weight: 900;
}
.nav-footer-user-position {
margin-top: -15px;
color: var(--gray);
}
.logout-icon {
width: 30px;
margin: auto;
border-radius: 90px;
padding: 20px;
margin-left: 5px;
}
.logout-icon:hover {
background-color: var(--primary);
}
Notes: React router dom version: 5.3.1.
Output look like:
enter image description here
Routes to another components on right side
Firstly, if I undestand your question, you want a side navbar which allows you to navigate to different pages with your react app. If so:
<div className="nav-menu">
{menuItems.map(({ text, icon }) => (
<a <--- The problem is here
className={ "menu-item"}
href="#"
>
<img className="menu-item-icon" src={icon} alt="" srcset="" />
{ <p>{text}</p>}
</a>
))}
</div>
You are using anchor tag which will redirect you out of react router. You should use Link tag which allows to redirect to different pages within your react app.
const menuItems = [
{
text: "Dashboard",
icon: "icons/grid.svg",
navLink:'/dashboard'
},
{
text: "Admin Profile",
icon: "icons/user.svg",
navLink:'/admin'
},...]
<div className="nav-menu">
{menuItems.map(({ text, icon, navlink }) => (
<Link
className={ "menu-item"}
to={navlink}
>
<img className="menu-item-icon" src={icon} alt=""
srcset=""
/>
{ <p>{text}</p>}
</Link>
))}
</div>
Likewise you need to step up your App.js with BrowserRouter, Routes and Route to move between pages.
I googled everything by now and tried everything including img-fluid, did not work, I can't seem to figure out how to make the image responsive (pretty much a beginner lol), if I resize the browser window the image stays the same size, does not scale.
The logo image size that am trying to keep is 734px x 132px
Edit: I have already tried auto height and still doesn't work
.navbar-brand {
color: $primary;
padding: 0;
img {
max-width: 100%;
height: 132px;
max-height: 132px;
#include media-breakpoint-down(md) {
max-height: 132x;
}
}
}
#include media-breakpoint-up(md) {
.header-navbar-top-right-search {
margin-left: auto;
}
}
#include media-breakpoint-up(lg) {
.header-navbar-top-left {
max-width: 42%;
flex: 0 0 42%;
}
.header-navbar-top-center {
max-width: 16%;
flex: 0 0 16%;
}
.header-navbar-top-right-search {
flex: 0 0 auto;
}
.header-navbar-top-right {
flex: 0 0 auto;
}
}
.header-top-line {
background-color: $section-bg;
a:not(.edit-link) {
padding: 22px $spacer 20px;
font-size: 0.8125rem;
line-height: 1.125rem;
}
.login-list > .nav-item a {
font-weight: 700;
}
}
.header-bottom-line {
background-color: $white;
}
.header-quantity-box {
margin-left: $spacer * 0.25;
}
.nav-link,
.search-module .btn,
.header-navbar a {
color: $white;
&:active,
&:hover {
color: $primary;
}
}
Give it some width and put the height as auto.
img{
width: 100%;
height: auto;
}
Update 1
Now see, You can update max-width as your need
Snippet
.navbar-brand {
color: blue;
padding: 0;
}
.navbar-brand img {
max-width: 734px;
height: auto;
width:30%;
margin: auto;
}
#media only screen and(max-width: 768px){
.navbar-brand img{
width: 40%;
}
}
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<a class="navbar-brand" href="#">
<img src="https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_160x56dp.png" title="borhykerteszetcsomagküldés" alt="borhykerteszetcsomagküldés"></a>
Did this help you 🤨?
just want to quickly thank the community at large for having helped me out many times already. You're all generous and helpful beyond measure. This is also my first post so I apologize if I forget to include anything.
I am currently a self-taught amateur web-developer attempting my first real project. I am using Next.js and am favoring server side rendering. So far everything has gone well, but while testing responsiveness I noticed that 1 of the 3 flip cards I'm using is displaying its back-face slightly too early. Also, this early back-face display only occurs when the window is over 1600px wide and is most easy to replicate on Chrome browsers.
The most confusing part of this is that from what I can tell, all 3 of my flip cards should be exactly the same, yet only one is having issues. Just to clarify, I've placed a flip card component inside of a slider component, hence the two code blocks
incoming code-wall:
Outer "slider" component
import React from 'react';
import SoloContent1 from './SoloContent1';
import SoloContent2 from './SoloContent2';
import SoloContent3 from './SoloContent3';
import CloseButton from './CloseButton';
export default class SliderSolo extends React.Component {
constructor(props) {
super(props);
this.state={
slide1: "slide1",
slide2: "slide2",
slide3: "slide3",
slideClass: "slide3",
}
this.slideLeft = this.slideLeft.bind(this);
this.slideRight = this.slideRight.bind(this);
};
slideRight() {
if (this.state.slideClass === this.state.slide1)
{
this.setState({ slideClass : this.state.slide2 })
}
else if (this.state.slideClass === this.state.slide2)
{
this.setState({ slideClass : this.state.slide3 })
}
else if (this.state.slideClass === this.state.slide3)
{
this.setState({ slideClass : this.state.slide1 })
}
}
slideLeft() {
if (this.state.slideClass === this.state.slide1)
{
this.setState({ slideClass : this.state.slide3 })
}
else if (this.state.slideClass === this.state.slide3)
{
this.setState({ slideClass : this.state.slide2 })
}
else if (this.state.slideClass === this.state.slide2)
{
this.setState({ slideClass : this.state.slide1 })
}
}
render() {
if (this.props.show === true) {
return (
<div className="slider">
<div className={this.state.slideClass} >
<SoloContent1 />
<SoloContent2 />
<SoloContent3 />
</div>
<button id="goLeft" onClick={this.slideRight}><i className="ChevronLeft" id="left"></i></button>
<button id="goRight" onClick={this.slideLeft}><i className="ChevronRight" id="right"></i></button>
<a onClick={this.props.onClose} id="closeLink"><CloseButton id="close" /></a>
<style jsx>
{`
.ChevronLeft {
position: absolute;
height: 75px;
width: 75px;
z-index: 10;
transform: rotate(90deg)
}
.ChevronRight {
position: absolute;
height: 75px;
width: 75px;
z-index: 10;
transform: rotate(-90deg)
}
#left {
right: 40px;
top: 0px;
}
#right {
right: -40px;
top: -5px;
}
.ChevronLeft::before,
.ChevronLeft::after {
position:absolute;
display:block;
content:"";
border:35px solid transparent;
}
.ChevronLeft::before {
border-top-color:#b00;
}
.ChevronLeft::after {
top:-10px;
border-top-color:#fff;
}
.ChevronRight::before,
.ChevronRight::after {
position:absolute;
display:block;
content:"";
border:35px solid transparent;
}
.ChevronRight::before {
border-top-color:#b00;
}
.ChevronRight::after {
top:-10px;
border-top-color:#fff;
}
#closeLink {
position: absolute;
width: 25px;
height: 25px;
cursor: pointer;
right: 6%;
top: 2%;
}
#media (max-width: 720px) {
#closeLink {
top: 45px;
right: 40px;
}
}
button {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 75px;
height: 75px;
background: none;
border: none;
cursor: pointer;
}
button:focus {
outline: none;
box-shadow: none;
}
#goLeft {
left: 5.5%;
}
#goRight {
right: 5.5%;
}
.slider {
position: relative;
width: 100%;
height: 100%;
box-sizing: border-box;
margin: 0;
padding: 0;
display: flex;
align-items: center;
overflow: hidden;
margin-top: 130px;
min-width: 450px;
}
i {
font-size: 2vw;
}
.slide1 {
position: relative;
width: 100%;
height: 60vh;
transition: 0.5s;
margin: auto;
}
#media (max-width: 720px) {
.slide1 {
height: 75vh;
margin-top: 6%
}
}
.slide2 {
position: relative;
width: 100%;
height: 60vh;
transition: 0.5s;
margin: auto;
transform: translateX(100%)
}
#media (max-width: 720px) {
.slide2 {
height: 75vh;
margin-top: 6%
}
}
.slide3 {
position: relative;
width: 100%;
height: 60vh;
transition: 0.5s;
margin: auto;
transform: translateX(200%)
}
#media (max-width: 720px) {
.slide3 {
height: 75vh;
margin-top: 6%
}
}
`}
</style>
</div>
);} else {
return null;
}
}
}
Inner "flip card" component
import React from 'react';
class SoloContent1 extends React.Component {
constructor(props) {
super(props);
this.state={
className1: "flipCard",
className2: "flipCard",
className3: "flipCard",
}
this.flip1 = this.flip1.bind(this);
this.unflip1 = this.unflip1.bind(this);
this.flip2 = this.flip2.bind(this);
this.unflip2 = this.unflip2.bind(this);
this.flip3 = this.flip3.bind(this);
this.unflip3 = this.unflip3.bind(this);
}
flip1() {
this.setState({ className1 : "flipCard is-flipped" })
}
unflip1() {
this.setState({ className1 : "flipCard" })
}
flip2() {
this.setState({ className2 : "flipCard is-flipped" })
}
unflip2() {
this.setState({ className2 : "flipCard" })
}
flip3() {
this.setState({ className3 : "flipCard is-flipped" })
}
unflip3() {
this.setState({ className3 : "flipCard" })
}
render() {
return (
<div id="contentContainer">
<div className="contentCanvas contentCanvas--card">
<div className="flipCardContainer" id="flipContainer1" onMouseEnter={this.flip1} onMouseLeave={this.unflip1}>
<div className={this.state.className1} id="card1">
<div className="card__face card__face--front" id="soloPro1"
style={{
backgroundImage: "url(" + `${require("../public/assets/img1.jpg")}` + ")",
width: "100%",
height:"100%",
backgroundRepeat: "no-repeat",
backgroundSize: "cover",
backgroundPosition: "center",
}}
>
</div>
<div className="card__face card__face--back" id="soloPro2">
<div style={{
backgroundImage: "url(" + `${require("../public/assets/img1.jpg")}` + ")",
width: "100%",
height:"100%",
backgroundRepeat: "no-repeat",
backgroundPosition: "center",
backgroundSize: "cover",
filter: "blur(8px)",
}}>
</div>
<p className="cardText">Card 1 Back</p>
</div>
</div>
</div>
<div className="flipCardContainer" id="flipContainer2" onMouseEnter={this.flip2} onMouseLeave={this.unflip2}>
<div className={this.state.className2} id="card2">
<div className="card__face card__face--front" id="soloPro1"
style={{
backgroundImage: "url(" + `${require("../public/assets/img2.jpg")}` + ")",
width: "100%",
height:"100%",
backgroundRepeat: "no-repeat",
backgroundSize: "cover",
backgroundPosition: "center",
}}
>
</div>
<div className="card__face card__face--back" id="soloPro2">
<div style={{
backgroundImage: "url(" + `${require("../public/assets/img2.jpg")}` + ")",
width: "100%",
height:"100%",
backgroundRepeat: "no-repeat",
backgroundPosition: "center",
backgroundSize: "cover",
filter: "blur(8px)",
}}>
</div>
<p className="cardText">Card 2 Back</p>
</div>
</div>
</div>
<div className="flipCardContainer" id="flipContainer3" onMouseEnter={this.flip3} onMouseLeave={this.unflip3}>
<div className={this.state.className3} id="card3">
<div className="card__face card__face--front" id="soloPro1"
style={{
backgroundImage: "url(" + `${require("../public/assets/img3.jpg")}` + ")",
width: "100%",
height:"100%",
backgroundRepeat: "no-repeat",
backgroundSize: "cover",
backgroundPosition: "center",
}}
>
</div>
<div className="card__face card__face--back" id="soloPro2">
<div style={{
backgroundImage: "url(" + `${require("../public/assets/img3.jpg")}` + ")",
width: "100%",
height:"100%",
backgroundRepeat: "no-repeat",
backgroundPosition: "center",
backgroundSize: "cover",
filter: "blur(8px)",
}}>
</div>
<p className="cardText">Card 3 Back</p>
</div>
</div>
</div>
</div>
<style jsx>
{`
.cardText {
position: absolute;
height: 100%;
width: 100%;
transform: translateY(-65%)
}
#contentContainer {
position: absolute;
height: 100%;
width: 90%;
background-image: url('image');
background-color: rgb(192,192,192);
border-radius: 8px;
transform: translateX(0%);
right: 5%;
overflow: hidden;
border: 5px solid silver;
box-sizing: border-box;
}
#media (max-width: 720px) {
#contentContainer {
height: 100%;
min-height: 575px;
overflow: hidden;
}
}
.contentCanvas {
z-index: 1;
height: 100%;
width: 100%;
margin: auto;
margin-top: 0%;
}
#media (max-width: 720px) {
.contentCanvas {
transform: translate(0, 0%);
min-height: 525px;
height: 102%;
width: 100%;
margin-top: 0%;
}
}
.flipCard {
margin: auto;
list-style: none;
font-size: 1.6em;
width: 100%;
height: 100%;
padding: 0;
display: inline-block;
transition: transform 1s;
transform-style: preserve-3d;
position: relative;
cursor: pointer;
}
#media (max-width: 720px) {
.flipCard {
width: 100%;
height: 100%;
}
}
.card__face {
position: absolute;
height: 100%;
width: 100%;
text-align: center;
}
.card__face--front {
background: white;
}
.card__face--back {
background: black;
transform: rotateY( 180deg );
}
.flipCard.is-flipped {
transform: rotateY( 180deg );
}
#media (max-width: 720px) {
.card__face--back {
background: black;
transform: rotateX( 180deg );
}
.flipCard.is-flipped {
transform: rotateX( 180deg );
}
}
#card1 {
}
#media (max-width: 720px) {
#card2 {
margin-top: -1%
}
}
#media (max-width: 720px) {
#card3 {
margin-top: -1%
}
}
.flipCardContainer {
perspective: 40rem;
z-index: 1;
height: 100%;
width: 33.333333333333333333333333%;
margin: auto;
display: inline-block;
}
#media (max-width: 720px) {
.flipCardContainer {
width: 100%;
height: 33%;
margin-top: 0%;
}
}
`}
</style>
</div>
);
}
}
export default SoloContent1;
Any and all help is appreciated. Also please don't be afraid to criticize my work. This is my first project after all and the last thing I want is to continue developing bad habits. Thank you all in advance.
In the end I was never able to figure out what was causing the issue. Though I discovered it was directly linked to the pixel width of the viewable window, regardless of which container the element was nested in. Also, beyond a certain width the issue began to pop up in the other flip cards.
Sorry I can't offer a real solution, though I did manage to get around it by causing the backface of each flip card to fade in as it flips.
I was trying to generate a dynamic grid system using SASS with variable widths using a #for loop. So far I have :
#for $value from 1 through 12 {
$width: percentage(1/$value);
.col-md-#{$value} {
width: $width;
}
}
The output for the above code would be:
.col-md-1 {
width: 100%;
}
.col-md-2 {
width: 50%;
}
.
.
.
.col-md-11 {
width: 9.09091%;
}
.col-md-12 {
width: 8.33333%;
}
Is there anyway this could be reversed by tinkering with the percentage functions in such a way that:
.col-md-12 {
width: 100%;
}
and
.col-md-1 {
width: 8.33333%;
}
The opposite of what I currently have. Thanks in advance.
A simple change to the math should do the trick:
#for $value from 1 through 12 {
$width: percentage($value/12);
.col-md-#{$value} {
width: $width;
}
}
results in:
.col-md-1 {
width: 8.33333%;
}
.col-md-2 {
width: 16.66667%;
}
.col-md-3 {
width: 25%;
}
.col-md-4 {
width: 33.33333%;
}
.col-md-5 {
width: 41.66667%;
}
.col-md-6 {
width: 50%;
}
.col-md-7 {
width: 58.33333%;
}
.col-md-8 {
width: 66.66667%;
}
.col-md-9 {
width: 75%;
}
.col-md-10 {
width: 83.33333%;
}
.col-md-11 {
width: 91.66667%;
}
.col-md-12 {
width: 100%;
}
I'm creating a grid system in wordpress using Skeleton.css
The tutorial shows the following markup for the header, here you can see the logo has has a 3 classes, - five columns and clearfix
<header>
<div class="five columns clearfix">
get_template_directory_uri(); ?>/img/logo.svg"></a>
</div>
</header>
But when I look at the skellton css I cannot see a class of 'five' So i changed it to .five.columns But his make no difference, I i create a border around the class .five.columns, it does not show up am I missing something obvious?
.one.column,
.one.columns { width: 4.66666666667%; }
.two.columns { width: 13.3333333333%; }
.three.columns { width: 22%; }
.four.columns { width: 30.6666666667%; }
.five.columns { width: 39.3333333333%; }
.six.columns { width: 48%; }
.seven.columns { width: 56.6666666667%; }
.eight.columns { width: 65.3333333333%; }
.nine.columns { width: 74.0%; }
.ten.columns { width: 82.6666666667%; }
.eleven.columns { width: 91.3333333333%; }
.twelve.columns { width: 100%; margin-left: 0; }
.one-third.column { width: 30.6666666667%; }
.two-thirds.column { width: 65.3333333333%; }
.one-half.column { width: 48%; }
/* Offsets */
.offset-by-one.column,
.offset-by-one.columns { margin-left: 8.66666666667%; }
.offset-by-two.column,
.offset-by-two.columns { margin-left: 17.3333333333%; }
.offset-by-three.column,
.offset-by-three.columns { margin-left: 26%; }
.offset-by-four.column,
.offset-by-four.columns { margin-left: 34.6666666667%; }
.offset-by-five.column,
.offset-by-five.columns { margin-left: 43.3333333333%; }
.offset-by-six.column,
.offset-by-six.columns { margin-left: 52%; }
.offset-by-seven.column,
.offset-by-seven.columns { margin-left: 60.6666666667%; }
.offset-by-eight.column,
.offset-by-eight.columns { margin-left: 69.3333333333%; }
.offset-by-nine.column,
.offset-by-nine.columns { margin-left: 78.0%; }
.offset-by-ten.column,
.offset-by-ten.columns { margin-left: 86.6666666667%; }
.offset-by-eleven.column,
.offset-by-eleven.columns { margin-left: 95.3333333333%; }
.offset-by-one-third.column,
.offset-by-one-third.columns { margin-left: 34.6666666667%; }
.offset-by-two-thirds.column,
.offset-by-two-thirds.columns { margin-left: 69.3333333333%; }
.offset-by-one-half.column,
.offset-by-one-half.columns { margin-left: 52%; }
}
/* Larger than mobile */
#media (min-width: 400px) {}
Many thanks
Here is a fiddle with some styling for height and color to make it obvious. Is your div 0px height? Check it with your developer tools in the browser - Chrome Developer Tools website.
https://jsfiddle.net/p1w61hmt/.
<header style="height: 100px; background: green;">
<div class="five columns clearfix" style="height: 100%;">
</div>
</header>
.five.columns { width: 39.3333333333%; }
.columns { background: red; }
Its probably some pasting errors but your HTML is not valid and your css looks like an incomplete snippet.