Bootstrap 4 list group works in Firefox, not in Chrome or Edge
I use the bootstrap 4 css framework, and I use a list group like this:
<div class="container">
<div class="col-12 col-md-6 col-lg-4">
<div>
<div class="list-group">
<a class="list-group-item list-group-item-action" href="/">Estonian Language</a>
<br>
<a class="list-group-item list-group-item-action" href="/">International Winter Program</a>
<br>
<a class="list-group-item list-group-item-action" href="/">Literature and Film in Vienna around 1900</a>
<br>
<a class="list-group-item list-group-item-action" href="/">Business and Entrepreneurship in the Start-Up Nation</a>
</div>
</div>
</div>
Which is similar to the example on the bootstrap website. It looks just like it should when I use Firefox, but when I use Chrome or Edge some gap is created between the different items. When I inspect the element it does not show a margin or some padding, so I don't know why this happens or how to solve it. Any idea's why this happens? Is it a bug?
Bootply example here
html css twitter-bootstrap
add a comment |
I use the bootstrap 4 css framework, and I use a list group like this:
<div class="container">
<div class="col-12 col-md-6 col-lg-4">
<div>
<div class="list-group">
<a class="list-group-item list-group-item-action" href="/">Estonian Language</a>
<br>
<a class="list-group-item list-group-item-action" href="/">International Winter Program</a>
<br>
<a class="list-group-item list-group-item-action" href="/">Literature and Film in Vienna around 1900</a>
<br>
<a class="list-group-item list-group-item-action" href="/">Business and Entrepreneurship in the Start-Up Nation</a>
</div>
</div>
</div>
Which is similar to the example on the bootstrap website. It looks just like it should when I use Firefox, but when I use Chrome or Edge some gap is created between the different items. When I inspect the element it does not show a margin or some padding, so I don't know why this happens or how to solve it. Any idea's why this happens? Is it a bug?
Bootply example here
html css twitter-bootstrap
1
Remove the<br>
's, its not needed and is creating your problem
– zgood
Nov 12 '18 at 18:36
This is not like the example on the bootstrap site.
– webfrogs
Nov 12 '18 at 18:40
add a comment |
I use the bootstrap 4 css framework, and I use a list group like this:
<div class="container">
<div class="col-12 col-md-6 col-lg-4">
<div>
<div class="list-group">
<a class="list-group-item list-group-item-action" href="/">Estonian Language</a>
<br>
<a class="list-group-item list-group-item-action" href="/">International Winter Program</a>
<br>
<a class="list-group-item list-group-item-action" href="/">Literature and Film in Vienna around 1900</a>
<br>
<a class="list-group-item list-group-item-action" href="/">Business and Entrepreneurship in the Start-Up Nation</a>
</div>
</div>
</div>
Which is similar to the example on the bootstrap website. It looks just like it should when I use Firefox, but when I use Chrome or Edge some gap is created between the different items. When I inspect the element it does not show a margin or some padding, so I don't know why this happens or how to solve it. Any idea's why this happens? Is it a bug?
Bootply example here
html css twitter-bootstrap
I use the bootstrap 4 css framework, and I use a list group like this:
<div class="container">
<div class="col-12 col-md-6 col-lg-4">
<div>
<div class="list-group">
<a class="list-group-item list-group-item-action" href="/">Estonian Language</a>
<br>
<a class="list-group-item list-group-item-action" href="/">International Winter Program</a>
<br>
<a class="list-group-item list-group-item-action" href="/">Literature and Film in Vienna around 1900</a>
<br>
<a class="list-group-item list-group-item-action" href="/">Business and Entrepreneurship in the Start-Up Nation</a>
</div>
</div>
</div>
Which is similar to the example on the bootstrap website. It looks just like it should when I use Firefox, but when I use Chrome or Edge some gap is created between the different items. When I inspect the element it does not show a margin or some padding, so I don't know why this happens or how to solve it. Any idea's why this happens? Is it a bug?
Bootply example here
html css twitter-bootstrap
html css twitter-bootstrap
edited Nov 12 '18 at 19:08
webfrogs
1,16632347
1,16632347
asked Nov 12 '18 at 17:59
Dirk J. FaberDirk J. Faber
1,1421317
1,1421317
1
Remove the<br>
's, its not needed and is creating your problem
– zgood
Nov 12 '18 at 18:36
This is not like the example on the bootstrap site.
– webfrogs
Nov 12 '18 at 18:40
add a comment |
1
Remove the<br>
's, its not needed and is creating your problem
– zgood
Nov 12 '18 at 18:36
This is not like the example on the bootstrap site.
– webfrogs
Nov 12 '18 at 18:40
1
1
Remove the
<br>
's, its not needed and is creating your problem– zgood
Nov 12 '18 at 18:36
Remove the
<br>
's, its not needed and is creating your problem– zgood
Nov 12 '18 at 18:36
This is not like the example on the bootstrap site.
– webfrogs
Nov 12 '18 at 18:40
This is not like the example on the bootstrap site.
– webfrogs
Nov 12 '18 at 18:40
add a comment |
1 Answer
1
active
oldest
votes
You're not using it as the getbootstrap site advises. You're using a div to identify your list group, and it is a ul>li structure.
From the getbootstrap site:
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<ul class="list-group">
<li class="list-group-item">Cras justo odio</li>
<li class="list-group-item">Dapibus ac facilisis in</li>
<li class="list-group-item">Morbi leo risus</li>
<li class="list-group-item">Porta ac consectetur ac</li>
<li class="list-group-item">Vestibulum at eros</li>
</ul>
add a comment |
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%2f53267662%2fbootstrap-4-list-group-works-in-firefox-not-in-chrome-or-edge%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You're not using it as the getbootstrap site advises. You're using a div to identify your list group, and it is a ul>li structure.
From the getbootstrap site:
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<ul class="list-group">
<li class="list-group-item">Cras justo odio</li>
<li class="list-group-item">Dapibus ac facilisis in</li>
<li class="list-group-item">Morbi leo risus</li>
<li class="list-group-item">Porta ac consectetur ac</li>
<li class="list-group-item">Vestibulum at eros</li>
</ul>
add a comment |
You're not using it as the getbootstrap site advises. You're using a div to identify your list group, and it is a ul>li structure.
From the getbootstrap site:
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<ul class="list-group">
<li class="list-group-item">Cras justo odio</li>
<li class="list-group-item">Dapibus ac facilisis in</li>
<li class="list-group-item">Morbi leo risus</li>
<li class="list-group-item">Porta ac consectetur ac</li>
<li class="list-group-item">Vestibulum at eros</li>
</ul>
add a comment |
You're not using it as the getbootstrap site advises. You're using a div to identify your list group, and it is a ul>li structure.
From the getbootstrap site:
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<ul class="list-group">
<li class="list-group-item">Cras justo odio</li>
<li class="list-group-item">Dapibus ac facilisis in</li>
<li class="list-group-item">Morbi leo risus</li>
<li class="list-group-item">Porta ac consectetur ac</li>
<li class="list-group-item">Vestibulum at eros</li>
</ul>
You're not using it as the getbootstrap site advises. You're using a div to identify your list group, and it is a ul>li structure.
From the getbootstrap site:
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<ul class="list-group">
<li class="list-group-item">Cras justo odio</li>
<li class="list-group-item">Dapibus ac facilisis in</li>
<li class="list-group-item">Morbi leo risus</li>
<li class="list-group-item">Porta ac consectetur ac</li>
<li class="list-group-item">Vestibulum at eros</li>
</ul>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<ul class="list-group">
<li class="list-group-item">Cras justo odio</li>
<li class="list-group-item">Dapibus ac facilisis in</li>
<li class="list-group-item">Morbi leo risus</li>
<li class="list-group-item">Porta ac consectetur ac</li>
<li class="list-group-item">Vestibulum at eros</li>
</ul>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<ul class="list-group">
<li class="list-group-item">Cras justo odio</li>
<li class="list-group-item">Dapibus ac facilisis in</li>
<li class="list-group-item">Morbi leo risus</li>
<li class="list-group-item">Porta ac consectetur ac</li>
<li class="list-group-item">Vestibulum at eros</li>
</ul>
answered Nov 12 '18 at 18:37
webfrogswebfrogs
1,16632347
1,16632347
add a comment |
add a comment |
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%2f53267662%2fbootstrap-4-list-group-works-in-firefox-not-in-chrome-or-edge%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
1
Remove the
<br>
's, its not needed and is creating your problem– zgood
Nov 12 '18 at 18:36
This is not like the example on the bootstrap site.
– webfrogs
Nov 12 '18 at 18:40