React Component with CSS grid doesnt layout properlyHow to recompile ExtJs 5 theme with custom scss addedWindows 8.1 xaml stretch doesnt shrink buttonreact-router - pass props to handler componentCan you force a React component to rerender without calling setState?How to conditionally add attributes to React components?Detect click outside React componentOverlay component on Grid layout in React.jsAlign items in a gridUsing CSS Grid in multi-component React layoutMy CSS grid layout causes horizontal scroll and I can't figure out why
Was there a shared-world project before "Thieves World"?
Elements other than carbon that can form many different compounds by bonding to themselves?
Could the terminal length of components like resistors be reduced?
On The Origin of Dissonant Chords
Does tea made with boiling water cool faster than tea made with boiled (but still hot) water?
How to have a sharp product image?
"The cow" OR "a cow" OR "cows" in this context
What are the characteristics of a typeless programming language?
Aligning equation numbers vertically
Re-entry to Germany after vacation using blue card
Why was the Spitfire's elliptical wing almost uncopied by other aircraft of World War 2?
Is there a way to generate a list of distinct numbers such that no two subsets ever have an equal sum?
Why does Mind Blank stop the Feeblemind spell?
How did Captain America manage to do this?
What happened to Captain America in Endgame?
Is it idiomatic to construct against `this`
Does a large simulator bay have standard public address announcements?
Can I criticise the more senior developers around me for not writing clean code?
As an international instructor, should I openly talk about my accent?
A Note on N!
Mistake in years of experience in resume?
How do I deal with a coworker that keeps asking to make small superficial changes to a report, and it is seriously triggering my anxiety?
bldc motor, esc and battery draw, nominal vs peak
Rivers without rain
React Component with CSS grid doesnt layout properly
How to recompile ExtJs 5 theme with custom scss addedWindows 8.1 xaml stretch doesnt shrink buttonreact-router - pass props to handler componentCan you force a React component to rerender without calling setState?How to conditionally add attributes to React components?Detect click outside React componentOverlay component on Grid layout in React.jsAlign items in a gridUsing CSS Grid in multi-component React layoutMy CSS grid layout causes horizontal scroll and I can't figure out why
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I am trying to make two columns side by side for each row in large screen, i have information boxes but they are not filling up the row as i want.following rows are same and only have 1 picture like this
this is my scss code
@import "./Navbar.scss";
.tourlistwidth:70vw; margin:0 auto;padding:2rem 0;
.alltogetherbackground:$mygray ;border-radius:0.7rem;margin:1rem 0;
imgwidth:100%; border-top-left-radius:0.7rem;
border-top-right-radius:0.7rem ; display:block
.img-containersposition:relative; &:hover.fa-window-closeopacity:1
.fa-window-closeposition:absolute;cursor:pointer;transition:all 0.3s linear;opacity:0;display:block;
right:0.4%;
.tourinfospadding:1rem 0.5rem; h3text-transform:uppercase;color:$mygreen;margin-top:1rem;h4color:$myblack
pmargin-top:0.7rem ;font-size:19px ;
@media screen and (min-width:768px) .tourlist
display:grid;
grid-template-columns:1fr 1fr;
grid-column-gap:1.3rem;
this imports information and mapping components and works correct
import React, Component from 'react';
import './App.css';
import Navbar from "./components/Navbar.js"
import CityTour from "./CityTour.js"
import "./components/tourlist.scss"
class App extends Component
render()
return (<div >
<Navbar />
<div class="tourlist ">
<CityTour />
</div>
</div>
);
export default App;
reactjs sass grid
add a comment |
I am trying to make two columns side by side for each row in large screen, i have information boxes but they are not filling up the row as i want.following rows are same and only have 1 picture like this
this is my scss code
@import "./Navbar.scss";
.tourlistwidth:70vw; margin:0 auto;padding:2rem 0;
.alltogetherbackground:$mygray ;border-radius:0.7rem;margin:1rem 0;
imgwidth:100%; border-top-left-radius:0.7rem;
border-top-right-radius:0.7rem ; display:block
.img-containersposition:relative; &:hover.fa-window-closeopacity:1
.fa-window-closeposition:absolute;cursor:pointer;transition:all 0.3s linear;opacity:0;display:block;
right:0.4%;
.tourinfospadding:1rem 0.5rem; h3text-transform:uppercase;color:$mygreen;margin-top:1rem;h4color:$myblack
pmargin-top:0.7rem ;font-size:19px ;
@media screen and (min-width:768px) .tourlist
display:grid;
grid-template-columns:1fr 1fr;
grid-column-gap:1.3rem;
this imports information and mapping components and works correct
import React, Component from 'react';
import './App.css';
import Navbar from "./components/Navbar.js"
import CityTour from "./CityTour.js"
import "./components/tourlist.scss"
class App extends Component
render()
return (<div >
<Navbar />
<div class="tourlist ">
<CityTour />
</div>
</div>
);
export default App;
reactjs sass grid
SOLVED I APPLIED GRID ON WRONG
– Tolima
Mar 22 at 18:52
add a comment |
I am trying to make two columns side by side for each row in large screen, i have information boxes but they are not filling up the row as i want.following rows are same and only have 1 picture like this
this is my scss code
@import "./Navbar.scss";
.tourlistwidth:70vw; margin:0 auto;padding:2rem 0;
.alltogetherbackground:$mygray ;border-radius:0.7rem;margin:1rem 0;
imgwidth:100%; border-top-left-radius:0.7rem;
border-top-right-radius:0.7rem ; display:block
.img-containersposition:relative; &:hover.fa-window-closeopacity:1
.fa-window-closeposition:absolute;cursor:pointer;transition:all 0.3s linear;opacity:0;display:block;
right:0.4%;
.tourinfospadding:1rem 0.5rem; h3text-transform:uppercase;color:$mygreen;margin-top:1rem;h4color:$myblack
pmargin-top:0.7rem ;font-size:19px ;
@media screen and (min-width:768px) .tourlist
display:grid;
grid-template-columns:1fr 1fr;
grid-column-gap:1.3rem;
this imports information and mapping components and works correct
import React, Component from 'react';
import './App.css';
import Navbar from "./components/Navbar.js"
import CityTour from "./CityTour.js"
import "./components/tourlist.scss"
class App extends Component
render()
return (<div >
<Navbar />
<div class="tourlist ">
<CityTour />
</div>
</div>
);
export default App;
reactjs sass grid
I am trying to make two columns side by side for each row in large screen, i have information boxes but they are not filling up the row as i want.following rows are same and only have 1 picture like this
this is my scss code
@import "./Navbar.scss";
.tourlistwidth:70vw; margin:0 auto;padding:2rem 0;
.alltogetherbackground:$mygray ;border-radius:0.7rem;margin:1rem 0;
imgwidth:100%; border-top-left-radius:0.7rem;
border-top-right-radius:0.7rem ; display:block
.img-containersposition:relative; &:hover.fa-window-closeopacity:1
.fa-window-closeposition:absolute;cursor:pointer;transition:all 0.3s linear;opacity:0;display:block;
right:0.4%;
.tourinfospadding:1rem 0.5rem; h3text-transform:uppercase;color:$mygreen;margin-top:1rem;h4color:$myblack
pmargin-top:0.7rem ;font-size:19px ;
@media screen and (min-width:768px) .tourlist
display:grid;
grid-template-columns:1fr 1fr;
grid-column-gap:1.3rem;
this imports information and mapping components and works correct
import React, Component from 'react';
import './App.css';
import Navbar from "./components/Navbar.js"
import CityTour from "./CityTour.js"
import "./components/tourlist.scss"
class App extends Component
render()
return (<div >
<Navbar />
<div class="tourlist ">
<CityTour />
</div>
</div>
);
export default App;
reactjs sass grid
reactjs sass grid
asked Mar 22 at 17:16
TolimaTolima
34
34
SOLVED I APPLIED GRID ON WRONG
– Tolima
Mar 22 at 18:52
add a comment |
SOLVED I APPLIED GRID ON WRONG
– Tolima
Mar 22 at 18:52
SOLVED I APPLIED GRID ON WRONG
– Tolima
Mar 22 at 18:52
SOLVED I APPLIED GRID ON WRONG
– Tolima
Mar 22 at 18:52
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55304752%2freact-component-with-css-grid-doesnt-layout-properly%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55304752%2freact-component-with-css-grid-doesnt-layout-properly%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
SOLVED I APPLIED GRID ON WRONG
– Tolima
Mar 22 at 18:52