Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

website tabs/pills

strawbs89

Active Coder
hi all hope someone can help

basically i am trying to create a schedule with the days of these week
using tabs now when you click

mon tue wed different text shows up? but thurs fri sat sun don't

see here

[CODE title="Website Tabs"] <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body>

<div class="container">


<ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#home">Mon</a></li>
<li><a data-toggle="tab" href="#menu1">Tue</a></li>
<li><a data-toggle="tab" href="#menu2">Wed</a></li>
<li><a data-toggle="tab" href="#menu3">Thu</a></li>
<li><a data-toggle="tab" href="#menu3">Fri</a></li>
<li><a data-toggle="tab" href="#menu3">Sat</a></li>
<li><a data-toggle="tab" href="#menu3">Sun</a></li>
</ul>

<div class="tab-content">
<div id="home" class="tab-pane fade in active">
<h3></h3>
<p></p>
</div>
<div id="menu1" class="tab-pane fade">
<h3>Space</h3>
<p>10pm - 12am</p>
</div>
<div id="menu2" class="tab-pane fade">
<h3>NO DJ</h3>
<p></p>
</div>
<div id="menu3" class="tab-pane fade">
<h3>hi</h3>
<p></p>
</div>
<div id="menu3" class="tab-pane fade">
<h3>ted</h3>
<p></p>
</div>
</div>
</div>
</body>
</html>[/CODE]
 
Probably edge is not supporting the code or it is loading something else. The code that I have posted before looks like this in firefox and chrome-
tabs.jpg
I don't have edge so I can't say anything. I have uploaded the code in my website. Open it in edge and see if it open correctly -Menu Tab.
 
That mean you are not linking html and css correctly. Make a new folder. Place the html code in a index.html and paste the css code in style.css file in that folder. Take the code that I have provided you before. And see how it looks.
 
That mean you are not linking html and css correctly. Make a new folder. Place the html code in a index.html and paste the css code in style.css file in that folder. Take the code that I have provided you before. And see how it looks.
yees mine works now i just didn't put the code you provided before under the code maxcdn

but some reason mines different to yours



1627141581802.png
 
style.css is missing or it is not loading. Can you screen print your folder and upload.
style.css is missing or it is not loading. Can you screen print your folder and upload.
screenshot.png

ok heres a screenshotscreenshot.png
 
Seems like it is not loading style.css file. Change the below code in your schedule.html and see if it works -
HTML:
<!DOCTYPE html>

<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Menu Tab</title>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
    <!-- Style -->
    <style>
        .main {
            width: 75%;
            display: flex;
            justify-content: space-between;
            margin: 5rem auto 0 auto;
        }
        .container {
            width: 75%;
        }

        .nav {
            display: flex;
            border-bottom: 7px solid #A70925;
        }

        .nav > li {
            width: 20%;
            text-align: center;
        }

        .nav > li > a {
            color: #000;
            background-color: #E6E6E6;
            border-bottom: 1px solid #A70925;
        }

        .nav .no-margin {
            margin-right: 0;
        }

        .nav li.active a,
        .nav li a:hover,
        .nav li.active a:focus,
        .nav li.active a:hover {
            color: #FFF;
            background-color: #A70925;
            border: 1px solid #A70925;
        }

        .space {
            width: 35%;
            height: 10rem;
            background-color: #C70E35;
        }
    </style>
</head>

<body>
    <div class="main">
        <div class="container">
            <ul class="nav nav-tabs">
                <li class="active"><a data-toggle="tab" href="#home">Mon</a></li>
                <li><a data-toggle="tab" href="#menu1">Tue</a></li>
                <li><a data-toggle="tab" href="#menu2">Wed</a></li>
                <li><a data-toggle="tab" href="#menu3">Thu</a></li>
                <li><a data-toggle="tab" href="#menu4">Fri</a></li>
                <li><a data-toggle="tab" href="#menu5">Sat</a></li>
                <li><a class="no-margin" data-toggle="tab" href="#menu6">Sun</a></li>
            </ul>

            <div class="tab-content">
                <div id="home" class="tab-pane fade in active">
                    <h3></h3>
                    <p></p>
                </div>
                <div id="menu1" class="tab-pane fade">
                    <h3>Space</h3>
                    <p>10pm - 12am</p>
                </div>
                <div id="menu2" class="tab-pane fade">
                    <h3>NO DJ</h3>
                    <p></p>
                </div>
                <div id="menu3" class="tab-pane fade">
                    <h3>hi</h3>
                    <p></p>
                </div>
                <div id="menu4" class="tab-pane fade">
                    <h3>ted</h3>
                    <p></p>
                </div>
                <div id="menu5" class="tab-pane fade">
                    <h3>1pm - 4pm</h3>
                    <p></p>
                </div>
                <div id="menu6" class="tab-pane fade">
                    <h3>hello</h3>
                    <p></p>
                </div>
            </div>
        </div>
        <div class="space"></div>
    </div>
</body>

</html>
 
Seems like it is not loading style.css file. Change the below code in your schedule.html and see if it works -
HTML:
<!DOCTYPE html>

<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Menu Tab</title>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
    <!-- Style -->
    <style>
        .main {
            width: 75%;
            display: flex;
            justify-content: space-between;
            margin: 5rem auto 0 auto;
        }
        .container {
            width: 75%;
        }

        .nav {
            display: flex;
            border-bottom: 7px solid #A70925;
        }

        .nav > li {
            width: 20%;
            text-align: center;
        }

        .nav > li > a {
            color: #000;
            background-color: #E6E6E6;
            border-bottom: 1px solid #A70925;
        }

        .nav .no-margin {
            margin-right: 0;
        }

        .nav li.active a,
        .nav li a:hover,
        .nav li.active a:focus,
        .nav li.active a:hover {
            color: #FFF;
            background-color: #A70925;
            border: 1px solid #A70925;
        }

        .space {
            width: 35%;
            height: 10rem;
            background-color: #C70E35;
        }
    </style>
</head>

<body>
    <div class="main">
        <div class="container">
            <ul class="nav nav-tabs">
                <li class="active"><a data-toggle="tab" href="#home">Mon</a></li>
                <li><a data-toggle="tab" href="#menu1">Tue</a></li>
                <li><a data-toggle="tab" href="#menu2">Wed</a></li>
                <li><a data-toggle="tab" href="#menu3">Thu</a></li>
                <li><a data-toggle="tab" href="#menu4">Fri</a></li>
                <li><a data-toggle="tab" href="#menu5">Sat</a></li>
                <li><a class="no-margin" data-toggle="tab" href="#menu6">Sun</a></li>
            </ul>

            <div class="tab-content">
                <div id="home" class="tab-pane fade in active">
                    <h3></h3>
                    <p></p>
                </div>
                <div id="menu1" class="tab-pane fade">
                    <h3>Space</h3>
                    <p>10pm - 12am</p>
                </div>
                <div id="menu2" class="tab-pane fade">
                    <h3>NO DJ</h3>
                    <p></p>
                </div>
                <div id="menu3" class="tab-pane fade">
                    <h3>hi</h3>
                    <p></p>
                </div>
                <div id="menu4" class="tab-pane fade">
                    <h3>ted</h3>
                    <p></p>
                </div>
                <div id="menu5" class="tab-pane fade">
                    <h3>1pm - 4pm</h3>
                    <p></p>
                </div>
                <div id="menu6" class="tab-pane fade">
                    <h3>hello</h3>
                    <p></p>
                </div>
            </div>
        </div>
        <div class="space"></div>
    </div>
</body>

</html>
but funny thing is if you go to our website and click schedule it looks as though the link is pulling the schedule from index.html
 
The schedule sometime loads and sometime does not load. Probably your file linking is not working correctly.
So you are loading the schedule1.html from 000webhostapp.com? Load the file from same domain.
 
Back
Top Bottom