Placing second column on top when page is resized
up vote
0
down vote
favorite
I am trying to make a responsive design on the page using bootstrap grid. Here is my HTML:
<div class="row row-2">
<div class = "col-sm-4 col-sm-offset-2">
<img class="img-responsive header-notebookImg" src="Images/header/notebook.png" alt="">
</div>
<div class="col-sm-4 body-slogan">
<p class="body-slogan"> Save<span class="body-slogan-word">your</span> ideas whth this application</p>
</div>
</div>
The css file only contains fonts and sizes. My question is: When I resize the page to trigger bootstrap extra small coloumn class is it possible to put the second coloumn on the top?
With code above the second coloumn goes on the bottom. I can't interchange the content of the coloumns as I want first coloumn to be on the left on the bigger screan.
Thanks in advance!
html css twitter-bootstrap-3
add a comment |
up vote
0
down vote
favorite
I am trying to make a responsive design on the page using bootstrap grid. Here is my HTML:
<div class="row row-2">
<div class = "col-sm-4 col-sm-offset-2">
<img class="img-responsive header-notebookImg" src="Images/header/notebook.png" alt="">
</div>
<div class="col-sm-4 body-slogan">
<p class="body-slogan"> Save<span class="body-slogan-word">your</span> ideas whth this application</p>
</div>
</div>
The css file only contains fonts and sizes. My question is: When I resize the page to trigger bootstrap extra small coloumn class is it possible to put the second coloumn on the top?
With code above the second coloumn goes on the bottom. I can't interchange the content of the coloumns as I want first coloumn to be on the left on the bigger screan.
Thanks in advance!
html css twitter-bootstrap-3
1
Are you really use Bootstrap 3 or 4?
– Christopher Dosin
Nov 8 at 10:43
I use bootstrap 3.3.7 on the page
– boandriy
Nov 8 at 11:19
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am trying to make a responsive design on the page using bootstrap grid. Here is my HTML:
<div class="row row-2">
<div class = "col-sm-4 col-sm-offset-2">
<img class="img-responsive header-notebookImg" src="Images/header/notebook.png" alt="">
</div>
<div class="col-sm-4 body-slogan">
<p class="body-slogan"> Save<span class="body-slogan-word">your</span> ideas whth this application</p>
</div>
</div>
The css file only contains fonts and sizes. My question is: When I resize the page to trigger bootstrap extra small coloumn class is it possible to put the second coloumn on the top?
With code above the second coloumn goes on the bottom. I can't interchange the content of the coloumns as I want first coloumn to be on the left on the bigger screan.
Thanks in advance!
html css twitter-bootstrap-3
I am trying to make a responsive design on the page using bootstrap grid. Here is my HTML:
<div class="row row-2">
<div class = "col-sm-4 col-sm-offset-2">
<img class="img-responsive header-notebookImg" src="Images/header/notebook.png" alt="">
</div>
<div class="col-sm-4 body-slogan">
<p class="body-slogan"> Save<span class="body-slogan-word">your</span> ideas whth this application</p>
</div>
</div>
The css file only contains fonts and sizes. My question is: When I resize the page to trigger bootstrap extra small coloumn class is it possible to put the second coloumn on the top?
With code above the second coloumn goes on the bottom. I can't interchange the content of the coloumns as I want first coloumn to be on the left on the bigger screan.
Thanks in advance!
html css twitter-bootstrap-3
html css twitter-bootstrap-3
asked Nov 8 at 10:37
boandriy
223214
223214
1
Are you really use Bootstrap 3 or 4?
– Christopher Dosin
Nov 8 at 10:43
I use bootstrap 3.3.7 on the page
– boandriy
Nov 8 at 11:19
add a comment |
1
Are you really use Bootstrap 3 or 4?
– Christopher Dosin
Nov 8 at 10:43
I use bootstrap 3.3.7 on the page
– boandriy
Nov 8 at 11:19
1
1
Are you really use Bootstrap 3 or 4?
– Christopher Dosin
Nov 8 at 10:43
Are you really use Bootstrap 3 or 4?
– Christopher Dosin
Nov 8 at 10:43
I use bootstrap 3.3.7 on the page
– boandriy
Nov 8 at 11:19
I use bootstrap 3.3.7 on the page
– boandriy
Nov 8 at 11:19
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
If you're using Bootstrap 4 it's pretty simple with flex-direction: column-reverse;
.
Here's a simple example with Bootstrap 4. Just wrap the row's into a container with display: flex;
and give it a flex-direction: column-reverse;`.
.row
background: #f8f9fa;
margin-top: 20px;
.reverse
display: flex;
flex-direction: column-reverse;
.col
border: solid 1px #6c757d;
padding: 10px;
/* Desktop View */
@media (min-width: 1281px)
.reverse
flex-direction: column;
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"/>
<div class="container">
<div class="reverse">
<div class="row">
<div class="col">
Row 1
</div>
</div>
<div class="row">
<div class="col">
Row 2
</div>
</div>
</div>
</div>
is it possible with bootstrap 3.3.7?
– boandriy
Nov 8 at 11:19
Ehm ... sorry ... But why don't you just try it? ....
– Christopher Dosin
2 days ago
Tryed, thanks for the answer but on bootstrap 3.3.7 it is not working.
– boandriy
2 days ago
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
If you're using Bootstrap 4 it's pretty simple with flex-direction: column-reverse;
.
Here's a simple example with Bootstrap 4. Just wrap the row's into a container with display: flex;
and give it a flex-direction: column-reverse;`.
.row
background: #f8f9fa;
margin-top: 20px;
.reverse
display: flex;
flex-direction: column-reverse;
.col
border: solid 1px #6c757d;
padding: 10px;
/* Desktop View */
@media (min-width: 1281px)
.reverse
flex-direction: column;
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"/>
<div class="container">
<div class="reverse">
<div class="row">
<div class="col">
Row 1
</div>
</div>
<div class="row">
<div class="col">
Row 2
</div>
</div>
</div>
</div>
is it possible with bootstrap 3.3.7?
– boandriy
Nov 8 at 11:19
Ehm ... sorry ... But why don't you just try it? ....
– Christopher Dosin
2 days ago
Tryed, thanks for the answer but on bootstrap 3.3.7 it is not working.
– boandriy
2 days ago
add a comment |
up vote
1
down vote
If you're using Bootstrap 4 it's pretty simple with flex-direction: column-reverse;
.
Here's a simple example with Bootstrap 4. Just wrap the row's into a container with display: flex;
and give it a flex-direction: column-reverse;`.
.row
background: #f8f9fa;
margin-top: 20px;
.reverse
display: flex;
flex-direction: column-reverse;
.col
border: solid 1px #6c757d;
padding: 10px;
/* Desktop View */
@media (min-width: 1281px)
.reverse
flex-direction: column;
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"/>
<div class="container">
<div class="reverse">
<div class="row">
<div class="col">
Row 1
</div>
</div>
<div class="row">
<div class="col">
Row 2
</div>
</div>
</div>
</div>
is it possible with bootstrap 3.3.7?
– boandriy
Nov 8 at 11:19
Ehm ... sorry ... But why don't you just try it? ....
– Christopher Dosin
2 days ago
Tryed, thanks for the answer but on bootstrap 3.3.7 it is not working.
– boandriy
2 days ago
add a comment |
up vote
1
down vote
up vote
1
down vote
If you're using Bootstrap 4 it's pretty simple with flex-direction: column-reverse;
.
Here's a simple example with Bootstrap 4. Just wrap the row's into a container with display: flex;
and give it a flex-direction: column-reverse;`.
.row
background: #f8f9fa;
margin-top: 20px;
.reverse
display: flex;
flex-direction: column-reverse;
.col
border: solid 1px #6c757d;
padding: 10px;
/* Desktop View */
@media (min-width: 1281px)
.reverse
flex-direction: column;
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"/>
<div class="container">
<div class="reverse">
<div class="row">
<div class="col">
Row 1
</div>
</div>
<div class="row">
<div class="col">
Row 2
</div>
</div>
</div>
</div>
If you're using Bootstrap 4 it's pretty simple with flex-direction: column-reverse;
.
Here's a simple example with Bootstrap 4. Just wrap the row's into a container with display: flex;
and give it a flex-direction: column-reverse;`.
.row
background: #f8f9fa;
margin-top: 20px;
.reverse
display: flex;
flex-direction: column-reverse;
.col
border: solid 1px #6c757d;
padding: 10px;
/* Desktop View */
@media (min-width: 1281px)
.reverse
flex-direction: column;
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"/>
<div class="container">
<div class="reverse">
<div class="row">
<div class="col">
Row 1
</div>
</div>
<div class="row">
<div class="col">
Row 2
</div>
</div>
</div>
</div>
.row
background: #f8f9fa;
margin-top: 20px;
.reverse
display: flex;
flex-direction: column-reverse;
.col
border: solid 1px #6c757d;
padding: 10px;
/* Desktop View */
@media (min-width: 1281px)
.reverse
flex-direction: column;
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"/>
<div class="container">
<div class="reverse">
<div class="row">
<div class="col">
Row 1
</div>
</div>
<div class="row">
<div class="col">
Row 2
</div>
</div>
</div>
</div>
.row
background: #f8f9fa;
margin-top: 20px;
.reverse
display: flex;
flex-direction: column-reverse;
.col
border: solid 1px #6c757d;
padding: 10px;
/* Desktop View */
@media (min-width: 1281px)
.reverse
flex-direction: column;
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"/>
<div class="container">
<div class="reverse">
<div class="row">
<div class="col">
Row 1
</div>
</div>
<div class="row">
<div class="col">
Row 2
</div>
</div>
</div>
</div>
answered Nov 8 at 10:50
Christopher Dosin
1666
1666
is it possible with bootstrap 3.3.7?
– boandriy
Nov 8 at 11:19
Ehm ... sorry ... But why don't you just try it? ....
– Christopher Dosin
2 days ago
Tryed, thanks for the answer but on bootstrap 3.3.7 it is not working.
– boandriy
2 days ago
add a comment |
is it possible with bootstrap 3.3.7?
– boandriy
Nov 8 at 11:19
Ehm ... sorry ... But why don't you just try it? ....
– Christopher Dosin
2 days ago
Tryed, thanks for the answer but on bootstrap 3.3.7 it is not working.
– boandriy
2 days ago
is it possible with bootstrap 3.3.7?
– boandriy
Nov 8 at 11:19
is it possible with bootstrap 3.3.7?
– boandriy
Nov 8 at 11:19
Ehm ... sorry ... But why don't you just try it? ....
– Christopher Dosin
2 days ago
Ehm ... sorry ... But why don't you just try it? ....
– Christopher Dosin
2 days ago
Tryed, thanks for the answer but on bootstrap 3.3.7 it is not working.
– boandriy
2 days ago
Tryed, thanks for the answer but on bootstrap 3.3.7 it is not working.
– boandriy
2 days ago
add a comment |
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53205964%2fplacing-second-column-on-top-when-page-is-resized%23new-answer', 'question_page');
);
Post as a guest
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
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
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
1
Are you really use Bootstrap 3 or 4?
– Christopher Dosin
Nov 8 at 10:43
I use bootstrap 3.3.7 on the page
– boandriy
Nov 8 at 11:19