Skip to main content
This topic has been closed for replies.

3 replies

Nancy OShea
Community Expert
Community Expert
March 13, 2022

Or save time and use Bootstrap responsive framework for your project.

In DW CC, go to Insert > Bootstrap Components > Navbar...  pick one.

 

 

Nancy O'Shea— Product User & Community Expert
Legend
March 13, 2022
quote

Or save time and use Bootstrap responsive framework for your project.

In DW CC, go to Insert > Bootstrap Components > Navbar...  pick one.

 

By @Nancy OShea

 

I've never seen a default vertical desktop version of the Bootstrap nav component so I doubt it will save anytime as you would have to re-engineer the css code to make it happen or Google to find a solution.

 

 

Legend
March 14, 2022

I realize now that the OP doesn't use Dreamweaver.  So I think this banter is just a waste of everyone's time.  I will refrain from further comments that will be totally ignored anyway. 

 

Color me annoyed.  I lost an hour today to Daylight Savings Time!  Grrrrrr 😬

 

 


quote

I realize now that the OP doesn't use Dreamweaver.  


By @Nancy OShea

 

If that is the case then considering DW is now passed its sell by date that has to be a positive, if nothing else has come of this thread.

Legend
March 13, 2022

Are you wanting to make a drop down menu for tablet and smartphone so the current menu takes up less real estate when the page loads?

 

If so add the css below AFTER your 'nav' css selector which is near the start of your css styles - (4th in the list)

 

 

nav ul {
display: none;
}

.mobileMenuIcon {
display: block;
cursor: pointer;
}

@media screen and (min-width: 768px) {

nav ul {
display: block;
}
.mobileMenuIcon {
display: none;
}
}
.showHide {
display: block;
}

 

Replace the text and add the 'mobileMenuIcon' class to the <p> tag which is directly above your starting <ul> tag for your menu code:

 

<p class="center mobileMenuIcon">Mobile Menu Icon</p>

 

 

Then add the below javascript to the end of your pages code, directly above the closing </html> tag:

 

<script>
const mobileMenuIcon = document.querySelector('.mobileMenuIcon');
const navUl = document.querySelector('nav ul');
mobileMenuIcon.onclick = function() {
navUl.classList.toggle('showHide');
}
</script>

 

 

 

That will give you a basic drop down menu for tablet and smartphone devices if you click on the text 'Mobile Menu Icon'. You can replace the text with a hamburger icon from font awesome (an icon library) or an image. You can also hide the text 'Nav Menu' and the icon of the little bloke typing if you wish for mobile devices.

 

davidhelp
davidhelpAuthor
Inspiring
March 13, 2022

Thanks to all. I tried the one from Osgood and it looks much better then what I had.

I copied the code that Nancy has from Bootstrap in a separate page to try out as well. I like the navigation along the top for cell phone.

The "Wappler" software looks interesting too but may be too complicated for me as I am not smart  : )

 

 

B i r n o u
Legend
March 13, 2022

better, yes, but in which directions
- ergonomics
- design
- accessibility
- usability
- code optimization
- loading time
- adaptability
- all ?