Help - Search - Members - Calendar
Full Version: bootstrap doesnt work HTML
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
drag.v
CODE


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Buster</title>
    <link href="https://fonts.googleapis.com/css?family=Fira+Sans:400,500,900&display=swap" rel="stylesheet">
    <link rel="stylesheet" type="css/bootstrap.min">
    <link rel="stylesheet" type="css/main">
</head>
<body>
    <header class="header">
        <div class="nav">
          <div class="container">
            <div class="row">
                <div class="col-md-4">
                <img align="middle" width="150px" src="img/bustlelogo2.png" alt="logo" class="logo">
                </div>
                <div class="offset-md-2 col-md-3">
                    <button class="search">
                        <img align="middle" width="50px" src="img/search.png">
                    </button>
                </div>
                <div class="col-md-3">
                    <button class="menu">
                        <img align="middle" width="50px" src="img/menu.png" alt="menu">
                    </button>
                </div>
            </div>
          </div>
        </div>
        <div class="offer">
            <div class="container">
                <div class="row">
                    
                </div>
            </div>
        </div>
    </header>
</body>
</html>




Bootstrap is in folder css and named boothstrap.min
When i open chrome logo seacrh and menu is not in row they are under each other.

How to make them in row
pandy
I don't know what you've named the actual file, but in the LINK you've left out the .css extension.

CODE
<link rel="stylesheet" type="css/bootstrap.min">
                                             ^^^


And you have totally left out the JS part.
drag.v
QUOTE(pandy @ Sep 12 2019, 11:16 AM) *

I don't know what you've named the actual file, but in the LINK you've left out the .css extension.

CODE
<link rel="stylesheet" type="css/bootstrap.min">
                                             ^^^


And you have totally left out the JS part.



with .css extension it doesnt work. And what i need in JS?
pandy
See https://getbootstrap.com/docs/4.3/getting-s...d/introduction/ .

Seems not everything require JS, but I guess most things do. Then I guess you need to somehow trigger the functionality you want to use. Never used bootstrap and I'm too lazy to read all the documentation, but you should do that.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.