Bootstrap grid configure correct alignment
up vote
0
down vote
favorite
I'm using the bootstrap grid system, and I'm trying to get a correct view on both wide windows (desktop, tablet) and narrow windows (mobile screens).
What I want on wide screens is this:
[image 1][image 2][text 1]
[image 3][image 4][text 2]
On a mobile I'd like to see this:
[image 1][image 2]
[image 3][image 4]
[text 1] [text 2]
What I'm currently getting on mobile or narrow desktop windows is:
[image 1][image 2]
[text 1]
[image 3][image 4]
[text 2]
Here is a jsfiddle link. The code is also below:
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/css/bootstrap.min.css" integrity="sha384-Zug+QiDoJOrZ5t4lssLdxGhVrurbmBWopoEl+M6BdEfwnCJZtKxi1KgxUyJq13dy" crossorigin="anonymous">
</head>
<body>
<div class="container">
<div class="panel-group">
<div class="panel panel-primary">
<div class="panel-heading">Panel Header</div>
<div class="panel-body">
<div class="row">
<div class="col-xs-4">
<img src="https://www.w3schools.com/images/w3schools_green.jpg" alt="" height="128" width="128"/>
</div>
<div class="col-xs-4">
<img src="https://www.w3schools.com/images/w3schools_green.jpg" alt="" height="128" width="128"/>
</div>
<div class="col-md-3 border border-primary">
some text.........
</div>
</div>
<div class="row">
<div class="col-xs-4">
<img src="https://www.w3schools.com/images/w3schools_green.jpg" alt="" height="128" width="128"/>
</div>
<div class="col-xs-4">
<img src="https://www.w3schools.com/images/w3schools_green.jpg" alt="" height="128" width="128"/>
</div>
<div class="col-md-3 border border-primary">
some text.........
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
html twitter-bootstrap grid
add a comment |
up vote
0
down vote
favorite
I'm using the bootstrap grid system, and I'm trying to get a correct view on both wide windows (desktop, tablet) and narrow windows (mobile screens).
What I want on wide screens is this:
[image 1][image 2][text 1]
[image 3][image 4][text 2]
On a mobile I'd like to see this:
[image 1][image 2]
[image 3][image 4]
[text 1] [text 2]
What I'm currently getting on mobile or narrow desktop windows is:
[image 1][image 2]
[text 1]
[image 3][image 4]
[text 2]
Here is a jsfiddle link. The code is also below:
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/css/bootstrap.min.css" integrity="sha384-Zug+QiDoJOrZ5t4lssLdxGhVrurbmBWopoEl+M6BdEfwnCJZtKxi1KgxUyJq13dy" crossorigin="anonymous">
</head>
<body>
<div class="container">
<div class="panel-group">
<div class="panel panel-primary">
<div class="panel-heading">Panel Header</div>
<div class="panel-body">
<div class="row">
<div class="col-xs-4">
<img src="https://www.w3schools.com/images/w3schools_green.jpg" alt="" height="128" width="128"/>
</div>
<div class="col-xs-4">
<img src="https://www.w3schools.com/images/w3schools_green.jpg" alt="" height="128" width="128"/>
</div>
<div class="col-md-3 border border-primary">
some text.........
</div>
</div>
<div class="row">
<div class="col-xs-4">
<img src="https://www.w3schools.com/images/w3schools_green.jpg" alt="" height="128" width="128"/>
</div>
<div class="col-xs-4">
<img src="https://www.w3schools.com/images/w3schools_green.jpg" alt="" height="128" width="128"/>
</div>
<div class="col-md-3 border border-primary">
some text.........
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
html twitter-bootstrap grid
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm using the bootstrap grid system, and I'm trying to get a correct view on both wide windows (desktop, tablet) and narrow windows (mobile screens).
What I want on wide screens is this:
[image 1][image 2][text 1]
[image 3][image 4][text 2]
On a mobile I'd like to see this:
[image 1][image 2]
[image 3][image 4]
[text 1] [text 2]
What I'm currently getting on mobile or narrow desktop windows is:
[image 1][image 2]
[text 1]
[image 3][image 4]
[text 2]
Here is a jsfiddle link. The code is also below:
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/css/bootstrap.min.css" integrity="sha384-Zug+QiDoJOrZ5t4lssLdxGhVrurbmBWopoEl+M6BdEfwnCJZtKxi1KgxUyJq13dy" crossorigin="anonymous">
</head>
<body>
<div class="container">
<div class="panel-group">
<div class="panel panel-primary">
<div class="panel-heading">Panel Header</div>
<div class="panel-body">
<div class="row">
<div class="col-xs-4">
<img src="https://www.w3schools.com/images/w3schools_green.jpg" alt="" height="128" width="128"/>
</div>
<div class="col-xs-4">
<img src="https://www.w3schools.com/images/w3schools_green.jpg" alt="" height="128" width="128"/>
</div>
<div class="col-md-3 border border-primary">
some text.........
</div>
</div>
<div class="row">
<div class="col-xs-4">
<img src="https://www.w3schools.com/images/w3schools_green.jpg" alt="" height="128" width="128"/>
</div>
<div class="col-xs-4">
<img src="https://www.w3schools.com/images/w3schools_green.jpg" alt="" height="128" width="128"/>
</div>
<div class="col-md-3 border border-primary">
some text.........
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
html twitter-bootstrap grid
I'm using the bootstrap grid system, and I'm trying to get a correct view on both wide windows (desktop, tablet) and narrow windows (mobile screens).
What I want on wide screens is this:
[image 1][image 2][text 1]
[image 3][image 4][text 2]
On a mobile I'd like to see this:
[image 1][image 2]
[image 3][image 4]
[text 1] [text 2]
What I'm currently getting on mobile or narrow desktop windows is:
[image 1][image 2]
[text 1]
[image 3][image 4]
[text 2]
Here is a jsfiddle link. The code is also below:
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/css/bootstrap.min.css" integrity="sha384-Zug+QiDoJOrZ5t4lssLdxGhVrurbmBWopoEl+M6BdEfwnCJZtKxi1KgxUyJq13dy" crossorigin="anonymous">
</head>
<body>
<div class="container">
<div class="panel-group">
<div class="panel panel-primary">
<div class="panel-heading">Panel Header</div>
<div class="panel-body">
<div class="row">
<div class="col-xs-4">
<img src="https://www.w3schools.com/images/w3schools_green.jpg" alt="" height="128" width="128"/>
</div>
<div class="col-xs-4">
<img src="https://www.w3schools.com/images/w3schools_green.jpg" alt="" height="128" width="128"/>
</div>
<div class="col-md-3 border border-primary">
some text.........
</div>
</div>
<div class="row">
<div class="col-xs-4">
<img src="https://www.w3schools.com/images/w3schools_green.jpg" alt="" height="128" width="128"/>
</div>
<div class="col-xs-4">
<img src="https://www.w3schools.com/images/w3schools_green.jpg" alt="" height="128" width="128"/>
</div>
<div class="col-md-3 border border-primary">
some text.........
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
html twitter-bootstrap grid
html twitter-bootstrap grid
asked Nov 10 at 18:56
remi
343421
343421
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
you can use css for text
position:absolute;
and change location text.
or create one div and put in texts and set display:none when screen change to mobile set show and hide default texts.
I was hoping to fix it using correct column codes, such as ´col-xs-6´ etc.
– remi
Nov 10 at 20:27
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
you can use css for text
position:absolute;
and change location text.
or create one div and put in texts and set display:none when screen change to mobile set show and hide default texts.
I was hoping to fix it using correct column codes, such as ´col-xs-6´ etc.
– remi
Nov 10 at 20:27
add a comment |
up vote
0
down vote
you can use css for text
position:absolute;
and change location text.
or create one div and put in texts and set display:none when screen change to mobile set show and hide default texts.
I was hoping to fix it using correct column codes, such as ´col-xs-6´ etc.
– remi
Nov 10 at 20:27
add a comment |
up vote
0
down vote
up vote
0
down vote
you can use css for text
position:absolute;
and change location text.
or create one div and put in texts and set display:none when screen change to mobile set show and hide default texts.
you can use css for text
position:absolute;
and change location text.
or create one div and put in texts and set display:none when screen change to mobile set show and hide default texts.
answered Nov 10 at 19:10
Ali Naeimi
445512
445512
I was hoping to fix it using correct column codes, such as ´col-xs-6´ etc.
– remi
Nov 10 at 20:27
add a comment |
I was hoping to fix it using correct column codes, such as ´col-xs-6´ etc.
– remi
Nov 10 at 20:27
I was hoping to fix it using correct column codes, such as ´col-xs-6´ etc.
– remi
Nov 10 at 20:27
I was hoping to fix it using correct column codes, such as ´col-xs-6´ etc.
– remi
Nov 10 at 20:27
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
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53242354%2fbootstrap-grid-configure-correct-alignment%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