What's new

Welcome to the forum 👋, Visitor

To access the forum content and all our services, you must register or log in to the forum. Becoming a member of the forum is completely free.

HTML & CSS Navigation Bar

I am looking for some help please, my wife has me build her business website [tmtclinic.com](https://tmtclinic.com) . She is very meticulous as to how she wants the site to look thus the reason I built it. I have done my best to create a desktop version that she approves of. I finally have convinced her that her site should be responsive as many people now just use their phones thus her site doesn’t work that well when using a mobile device. My biggest problem is how to make the nav bar responsive so it would work on a phone. I know this is backwards as to not starting with the mobile version first, I just could not convince her that when I started. I am self taught and I am stuck… lol . Any suggestions or where to look would be greatly appreciated. I have attached my files..
Code:
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>headertest</title>
<link href="stylesheeta_2.css" rel="stylesheet" type="text/css">
</head>

<body>
<div class="wrapper">
    <div class="logo">
        <center>
            <img src="images/tmtlogo.png" alt="TMT Logo"></center>
                     </div>   
    <div class="container">
    
                 <div class="grid-8-columns">
                    
                <div class="yelbox">
                    </div>
                <div class="massage">
                    </div>
                <div class="yelbox">
                    </div>
                <div class="physio">
                    </div>
                <div class="yelbox">
                    </div>
                <div class="acupuncture">
                    </div>
                <div class="yelbox">
                    </div>
                <div class="contact">
                    </div>
                <div class="yelbox">
                     </div>
<!--This is blank space to help align navbar word links-->
                    <div> </div>
    
                    <div> <a href="massage.html">Massage Therapy</a>
                    </div>
                <div> <a href="about.html">About</a>
                    </div>
                <div> <a href="physio.html">Physiotherapy</a>
                    </div>
                <div> <a href="facilities.html">Facilities</a>
                    </div>
                <div> <a href="acupuncture.html">Acupuncture</a>   
                    </div>
                <div> <a href="contact.html">Contact</a>
                    </div>
                <div> <a href="booking.html">Online Booking</a>
                     </div>
<!--This is last blank space beloow yellow box above nave bar-->   
                <div>    </div>
                    
                    
                    <!--I want to put a div tag here with a heading for the content-->
                    <div class="topic_hed">
                      <p>BOOKING APPOINTMENTS</p>
                    </div>
        </div>
        </div>
    </div>
</body>
</html>

CSS
/* CSS Document */
.body{
height: 90vh;
margin: 2rem;
margin: 0;
padding: 20px 0 50px;
font-family: Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif"active;
background :#6F8C8F;
}
.wrapper{
position: relative;
width: 1430px;
height: 732px;
margin: auto;
background-image: url( "images/bgheader.png");
margin: 0 50;
background-size: cover;
}
.logo{
display: block;
height: 280px;
width:1430px;
}
.container{
position:absolute;
width: 1430px;
}
/*This is the Grid for the nav bar pics and nav buttons*/
.grid-8-columns{
width: 1430px;
display: grid;
grid-template-columns: 149.2px 171px 149.2px 171px 149.2px 171px 149.2px 171px 149.2px;
grid-template-rows:171px 50px;
place-items:center;
font-size: 22px;
}
.grid-8-columns a{
padding-top:10px;
text-decoration: none;
color: #f7eccc;
}
.grid-8-columns a:hover{
background-color: #ddd;
transition: background-color 0.5s;
color: white;
}
.yelbox{
height:171px;
width:149.2px;
background-image: url("images/yelbox.jpg")
}
.massage{
height:171px;
width:171px;
background-image: url("images/massage.jpg")
}
.physio{
height: 171px;
width:171px;
background-image: url("images/physio.jpg")
}
.acupuncture{
height: 171px;
width:171px;
background-image: url("images/acu.jpg")
}
.contact{
height: 171px;
width:171px;
background-image: url("images/contact.jpg")
}
/*This is the reception picture*/
.reception-image{
float: center;
max-width: 1430px;
overflow: hidden;
padding:10px 0 20 0;
}
/*This is the heading just bellow the nav bar*/
.topic_hed{
position:absolute;
width:1430px;
padding:195px 0 0 0 ;
margin: 70px 5px ;
color:#f7eccc;;
font-size: 30px;
text-align: center;
text-transform: uppercase;
letter-spacing: 8px;
}
 

Attachments

  • acu.jpg
    acu.jpg
    26.2 KB · Views: 0
  • bgheader.png
    bgheader.png
    14.4 KB · Views: 0
  • contact.jpg
    contact.jpg
    28 KB · Views: 0
  • massage.jpg
    massage.jpg
    27.1 KB · Views: 0
  • physio.jpg
    physio.jpg
    23.8 KB · Views: 0
  • recption1430px.png
    recption1430px.png
    794.9 KB · Views: 0
  • tmtlogo.png
    tmtlogo.png
    25.1 KB · Views: 0
  • yelbox.jpg
    yelbox.jpg
    11.6 KB · Views: 0

Theme customization system

You can customize some areas of the forum theme from this menu.

  • Wide/Narrow view

    You can control a structure that you can use to use your theme wide or narrow.

    Grid view forum list

    You can control the layout of the forum list in a grid or ordinary listing style structure.

    Picture grid mode

    You can control the structure where you can open/close images in the grid forum list.

    Close sidebar

    You can get rid of the crowded view in the forum by closing the sidebar.

    Fixed sidebar

    You can make it more useful and easier to access by pinning the sidebar.

    Close radius

    You can use the radius at the corners of the blocks according to your taste by closing/opening it.

  • Choose the color combination that reflects your taste
    Background images
    Color gradient backgrounds
Back