Horizontal Scrollable Menu with content










1















i want to ask



how to create Horizontal Scrollable Menu with content?



i get tutorial in https://www.w3schools.com/howto/howto_css_menu_horizontal_scroll.asp



but in tutorial there is no content (i mean if menu news i click show teks news or other teks if i click menu contact, teks news hide and show teks contact or other teks)



this the code for css :



<style>
div.scrollmenu
background-color: #333;
overflow: auto;
white-space: nowrap;


div.scrollmenu a
display: inline-block;
color: white;
text-align: center;
padding: 14px;
text-decoration: none;


div.scrollmenu a:hover
background-color: #777;

</style>


and this for html code :



<div class="scrollmenu">
<a href="#home">Home</a>
<a href="#news">News</a>
<a href="#contact">Contact</a>
<a href="#about">About</a>
<a href="#support">Support</a>
<a href="#blog">Blog</a>
<a href="#tools">Tools</a>
<a href="#base">Base</a>
<a href="#custom">Custom</a>
<a href="#more">More</a>
<a href="#logo">Logo</a>
<a href="#friends">Friends</a>
<a href="#partners">Partners</a>
<a href="#people">People</a>
<a href="#work">Work</a>
</div>

<h2>Horizontal Scrollable Menu</h2>
<p>Resize the browser window to see the effect.</p>


how to create Horizontal Scrollable Menu with content if click one of menu?



if menu news i click show teks news or other teks if i click menu contact, teks news hide and show teks contact or other teks



thanks



====================



solved: i found this : Show/Hide Multiple Divs Javascript










share|improve this question
























  • What exactly do you call "content"? Please provide a clearer description of what exactly is the expected behavior.

    – Andrei Gheorghiu
    Nov 14 '18 at 15:03












  • thanks sir for reply @AndreiGheorghiu i mean like this, if menu news i click show teks news or other teks if i click menu contact, teks news hide and show teks contact or other teks

    – creat15
    Nov 14 '18 at 15:05












  • getbootstrap.com/docs/4.0/components/navbar

    – mbharanidharan88
    Nov 14 '18 at 15:09











  • Before expecting the browser to display the content, you need to add it. You have to hide it by default and display it according to whatever rules you set, when the links are used. Your question, in current form, is extremely vague and too broad.

    – Andrei Gheorghiu
    Nov 14 '18 at 15:09











  • thanks sir @AndreiGheorghiu for reply, any tutorial for this case sir, i am confused by the keywords for this problem

    – creat15
    Nov 14 '18 at 15:14















1















i want to ask



how to create Horizontal Scrollable Menu with content?



i get tutorial in https://www.w3schools.com/howto/howto_css_menu_horizontal_scroll.asp



but in tutorial there is no content (i mean if menu news i click show teks news or other teks if i click menu contact, teks news hide and show teks contact or other teks)



this the code for css :



<style>
div.scrollmenu
background-color: #333;
overflow: auto;
white-space: nowrap;


div.scrollmenu a
display: inline-block;
color: white;
text-align: center;
padding: 14px;
text-decoration: none;


div.scrollmenu a:hover
background-color: #777;

</style>


and this for html code :



<div class="scrollmenu">
<a href="#home">Home</a>
<a href="#news">News</a>
<a href="#contact">Contact</a>
<a href="#about">About</a>
<a href="#support">Support</a>
<a href="#blog">Blog</a>
<a href="#tools">Tools</a>
<a href="#base">Base</a>
<a href="#custom">Custom</a>
<a href="#more">More</a>
<a href="#logo">Logo</a>
<a href="#friends">Friends</a>
<a href="#partners">Partners</a>
<a href="#people">People</a>
<a href="#work">Work</a>
</div>

<h2>Horizontal Scrollable Menu</h2>
<p>Resize the browser window to see the effect.</p>


how to create Horizontal Scrollable Menu with content if click one of menu?



if menu news i click show teks news or other teks if i click menu contact, teks news hide and show teks contact or other teks



thanks



====================



solved: i found this : Show/Hide Multiple Divs Javascript










share|improve this question
























  • What exactly do you call "content"? Please provide a clearer description of what exactly is the expected behavior.

    – Andrei Gheorghiu
    Nov 14 '18 at 15:03












  • thanks sir for reply @AndreiGheorghiu i mean like this, if menu news i click show teks news or other teks if i click menu contact, teks news hide and show teks contact or other teks

    – creat15
    Nov 14 '18 at 15:05












  • getbootstrap.com/docs/4.0/components/navbar

    – mbharanidharan88
    Nov 14 '18 at 15:09











  • Before expecting the browser to display the content, you need to add it. You have to hide it by default and display it according to whatever rules you set, when the links are used. Your question, in current form, is extremely vague and too broad.

    – Andrei Gheorghiu
    Nov 14 '18 at 15:09











  • thanks sir @AndreiGheorghiu for reply, any tutorial for this case sir, i am confused by the keywords for this problem

    – creat15
    Nov 14 '18 at 15:14













1












1








1








i want to ask



how to create Horizontal Scrollable Menu with content?



i get tutorial in https://www.w3schools.com/howto/howto_css_menu_horizontal_scroll.asp



but in tutorial there is no content (i mean if menu news i click show teks news or other teks if i click menu contact, teks news hide and show teks contact or other teks)



this the code for css :



<style>
div.scrollmenu
background-color: #333;
overflow: auto;
white-space: nowrap;


div.scrollmenu a
display: inline-block;
color: white;
text-align: center;
padding: 14px;
text-decoration: none;


div.scrollmenu a:hover
background-color: #777;

</style>


and this for html code :



<div class="scrollmenu">
<a href="#home">Home</a>
<a href="#news">News</a>
<a href="#contact">Contact</a>
<a href="#about">About</a>
<a href="#support">Support</a>
<a href="#blog">Blog</a>
<a href="#tools">Tools</a>
<a href="#base">Base</a>
<a href="#custom">Custom</a>
<a href="#more">More</a>
<a href="#logo">Logo</a>
<a href="#friends">Friends</a>
<a href="#partners">Partners</a>
<a href="#people">People</a>
<a href="#work">Work</a>
</div>

<h2>Horizontal Scrollable Menu</h2>
<p>Resize the browser window to see the effect.</p>


how to create Horizontal Scrollable Menu with content if click one of menu?



if menu news i click show teks news or other teks if i click menu contact, teks news hide and show teks contact or other teks



thanks



====================



solved: i found this : Show/Hide Multiple Divs Javascript










share|improve this question
















i want to ask



how to create Horizontal Scrollable Menu with content?



i get tutorial in https://www.w3schools.com/howto/howto_css_menu_horizontal_scroll.asp



but in tutorial there is no content (i mean if menu news i click show teks news or other teks if i click menu contact, teks news hide and show teks contact or other teks)



this the code for css :



<style>
div.scrollmenu
background-color: #333;
overflow: auto;
white-space: nowrap;


div.scrollmenu a
display: inline-block;
color: white;
text-align: center;
padding: 14px;
text-decoration: none;


div.scrollmenu a:hover
background-color: #777;

</style>


and this for html code :



<div class="scrollmenu">
<a href="#home">Home</a>
<a href="#news">News</a>
<a href="#contact">Contact</a>
<a href="#about">About</a>
<a href="#support">Support</a>
<a href="#blog">Blog</a>
<a href="#tools">Tools</a>
<a href="#base">Base</a>
<a href="#custom">Custom</a>
<a href="#more">More</a>
<a href="#logo">Logo</a>
<a href="#friends">Friends</a>
<a href="#partners">Partners</a>
<a href="#people">People</a>
<a href="#work">Work</a>
</div>

<h2>Horizontal Scrollable Menu</h2>
<p>Resize the browser window to see the effect.</p>


how to create Horizontal Scrollable Menu with content if click one of menu?



if menu news i click show teks news or other teks if i click menu contact, teks news hide and show teks contact or other teks



thanks



====================



solved: i found this : Show/Hide Multiple Divs Javascript







html css






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 14 '18 at 15:42







creat15

















asked Nov 14 '18 at 15:02









creat15creat15

357




357












  • What exactly do you call "content"? Please provide a clearer description of what exactly is the expected behavior.

    – Andrei Gheorghiu
    Nov 14 '18 at 15:03












  • thanks sir for reply @AndreiGheorghiu i mean like this, if menu news i click show teks news or other teks if i click menu contact, teks news hide and show teks contact or other teks

    – creat15
    Nov 14 '18 at 15:05












  • getbootstrap.com/docs/4.0/components/navbar

    – mbharanidharan88
    Nov 14 '18 at 15:09











  • Before expecting the browser to display the content, you need to add it. You have to hide it by default and display it according to whatever rules you set, when the links are used. Your question, in current form, is extremely vague and too broad.

    – Andrei Gheorghiu
    Nov 14 '18 at 15:09











  • thanks sir @AndreiGheorghiu for reply, any tutorial for this case sir, i am confused by the keywords for this problem

    – creat15
    Nov 14 '18 at 15:14

















  • What exactly do you call "content"? Please provide a clearer description of what exactly is the expected behavior.

    – Andrei Gheorghiu
    Nov 14 '18 at 15:03












  • thanks sir for reply @AndreiGheorghiu i mean like this, if menu news i click show teks news or other teks if i click menu contact, teks news hide and show teks contact or other teks

    – creat15
    Nov 14 '18 at 15:05












  • getbootstrap.com/docs/4.0/components/navbar

    – mbharanidharan88
    Nov 14 '18 at 15:09











  • Before expecting the browser to display the content, you need to add it. You have to hide it by default and display it according to whatever rules you set, when the links are used. Your question, in current form, is extremely vague and too broad.

    – Andrei Gheorghiu
    Nov 14 '18 at 15:09











  • thanks sir @AndreiGheorghiu for reply, any tutorial for this case sir, i am confused by the keywords for this problem

    – creat15
    Nov 14 '18 at 15:14
















What exactly do you call "content"? Please provide a clearer description of what exactly is the expected behavior.

– Andrei Gheorghiu
Nov 14 '18 at 15:03






What exactly do you call "content"? Please provide a clearer description of what exactly is the expected behavior.

– Andrei Gheorghiu
Nov 14 '18 at 15:03














thanks sir for reply @AndreiGheorghiu i mean like this, if menu news i click show teks news or other teks if i click menu contact, teks news hide and show teks contact or other teks

– creat15
Nov 14 '18 at 15:05






thanks sir for reply @AndreiGheorghiu i mean like this, if menu news i click show teks news or other teks if i click menu contact, teks news hide and show teks contact or other teks

– creat15
Nov 14 '18 at 15:05














getbootstrap.com/docs/4.0/components/navbar

– mbharanidharan88
Nov 14 '18 at 15:09





getbootstrap.com/docs/4.0/components/navbar

– mbharanidharan88
Nov 14 '18 at 15:09













Before expecting the browser to display the content, you need to add it. You have to hide it by default and display it according to whatever rules you set, when the links are used. Your question, in current form, is extremely vague and too broad.

– Andrei Gheorghiu
Nov 14 '18 at 15:09





Before expecting the browser to display the content, you need to add it. You have to hide it by default and display it according to whatever rules you set, when the links are used. Your question, in current form, is extremely vague and too broad.

– Andrei Gheorghiu
Nov 14 '18 at 15:09













thanks sir @AndreiGheorghiu for reply, any tutorial for this case sir, i am confused by the keywords for this problem

– creat15
Nov 14 '18 at 15:14





thanks sir @AndreiGheorghiu for reply, any tutorial for this case sir, i am confused by the keywords for this problem

– creat15
Nov 14 '18 at 15:14












1 Answer
1






active

oldest

votes


















-1














Are you looking for something like this?



Run the code snipped below and hover over News or Contacts:






ul 
list-style-type: none;
padding: 0px;
margin: 0px;


div.scrollmenu
background-color: #333;
overflow: auto;
white-space: nowrap;


div.scrollmenu li
display: inline-block;


div.scrollmenu li a
display: inline-block;
color: white;
text-align: center;
padding: 14px;
text-decoration: none;


div.scrollmenu a:hover
background-color: #777;


ul>li>ul
display: none;


ul>li:hover>ul
background-color: #333;
position: absolute;
display: block;

<div class="scrollmenu">
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#news">News</a>
<ul>
<li><a href="#">News 1</a></li>
<li><a href="#">News 2</a></li>
<li><a href="#">News 3</a></li>
</ul>
</li>
<li><a href="#contact">Contact</a>
<ul>
<li><a href="#">Contact 1</a></li>
<li><a href="#">Contact 2</a></li>
<li><a href="#">Contact 3</a></li>
</ul>
</li>
<li><a href="#about">About</a></li>
<li><a href="#support">Support</a></li>
<li><a href="#blog">Blog</a></li>
<li><a href="#tools">Tools</a></li>
<li><a href="#base">Base</a></li>
<li><a href="#custom">Custom</a></li>
<li><a href="#more">More</a></li>
<li><a href="#logo">Logo</a></li>
<li><a href="#friends">Friends</a></li>
<li><a href="#partners">Partners</a></li>
<li><a href="#people">People</a></li>
<li><a href="#work">Work</a></li>
</ul>
</div>

<h2>Horizontal Scrollable Menu</h2>
<p>Resize the browser window to see the effect.</p>





Hope this helps






share|improve this answer























  • thanks sir for answer my question, but i'm sorry this is not what I'm looking for, i want if i click menu "news" teks Horizontal Scrollable Menu Resize the browser window to see the effect. change teks news and if i click menu "contact" teks news hide and show teks contact

    – creat15
    Nov 14 '18 at 15:39










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
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53303150%2fhorizontal-scrollable-menu-with-content%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









-1














Are you looking for something like this?



Run the code snipped below and hover over News or Contacts:






ul 
list-style-type: none;
padding: 0px;
margin: 0px;


div.scrollmenu
background-color: #333;
overflow: auto;
white-space: nowrap;


div.scrollmenu li
display: inline-block;


div.scrollmenu li a
display: inline-block;
color: white;
text-align: center;
padding: 14px;
text-decoration: none;


div.scrollmenu a:hover
background-color: #777;


ul>li>ul
display: none;


ul>li:hover>ul
background-color: #333;
position: absolute;
display: block;

<div class="scrollmenu">
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#news">News</a>
<ul>
<li><a href="#">News 1</a></li>
<li><a href="#">News 2</a></li>
<li><a href="#">News 3</a></li>
</ul>
</li>
<li><a href="#contact">Contact</a>
<ul>
<li><a href="#">Contact 1</a></li>
<li><a href="#">Contact 2</a></li>
<li><a href="#">Contact 3</a></li>
</ul>
</li>
<li><a href="#about">About</a></li>
<li><a href="#support">Support</a></li>
<li><a href="#blog">Blog</a></li>
<li><a href="#tools">Tools</a></li>
<li><a href="#base">Base</a></li>
<li><a href="#custom">Custom</a></li>
<li><a href="#more">More</a></li>
<li><a href="#logo">Logo</a></li>
<li><a href="#friends">Friends</a></li>
<li><a href="#partners">Partners</a></li>
<li><a href="#people">People</a></li>
<li><a href="#work">Work</a></li>
</ul>
</div>

<h2>Horizontal Scrollable Menu</h2>
<p>Resize the browser window to see the effect.</p>





Hope this helps






share|improve this answer























  • thanks sir for answer my question, but i'm sorry this is not what I'm looking for, i want if i click menu "news" teks Horizontal Scrollable Menu Resize the browser window to see the effect. change teks news and if i click menu "contact" teks news hide and show teks contact

    – creat15
    Nov 14 '18 at 15:39















-1














Are you looking for something like this?



Run the code snipped below and hover over News or Contacts:






ul 
list-style-type: none;
padding: 0px;
margin: 0px;


div.scrollmenu
background-color: #333;
overflow: auto;
white-space: nowrap;


div.scrollmenu li
display: inline-block;


div.scrollmenu li a
display: inline-block;
color: white;
text-align: center;
padding: 14px;
text-decoration: none;


div.scrollmenu a:hover
background-color: #777;


ul>li>ul
display: none;


ul>li:hover>ul
background-color: #333;
position: absolute;
display: block;

<div class="scrollmenu">
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#news">News</a>
<ul>
<li><a href="#">News 1</a></li>
<li><a href="#">News 2</a></li>
<li><a href="#">News 3</a></li>
</ul>
</li>
<li><a href="#contact">Contact</a>
<ul>
<li><a href="#">Contact 1</a></li>
<li><a href="#">Contact 2</a></li>
<li><a href="#">Contact 3</a></li>
</ul>
</li>
<li><a href="#about">About</a></li>
<li><a href="#support">Support</a></li>
<li><a href="#blog">Blog</a></li>
<li><a href="#tools">Tools</a></li>
<li><a href="#base">Base</a></li>
<li><a href="#custom">Custom</a></li>
<li><a href="#more">More</a></li>
<li><a href="#logo">Logo</a></li>
<li><a href="#friends">Friends</a></li>
<li><a href="#partners">Partners</a></li>
<li><a href="#people">People</a></li>
<li><a href="#work">Work</a></li>
</ul>
</div>

<h2>Horizontal Scrollable Menu</h2>
<p>Resize the browser window to see the effect.</p>





Hope this helps






share|improve this answer























  • thanks sir for answer my question, but i'm sorry this is not what I'm looking for, i want if i click menu "news" teks Horizontal Scrollable Menu Resize the browser window to see the effect. change teks news and if i click menu "contact" teks news hide and show teks contact

    – creat15
    Nov 14 '18 at 15:39













-1












-1








-1







Are you looking for something like this?



Run the code snipped below and hover over News or Contacts:






ul 
list-style-type: none;
padding: 0px;
margin: 0px;


div.scrollmenu
background-color: #333;
overflow: auto;
white-space: nowrap;


div.scrollmenu li
display: inline-block;


div.scrollmenu li a
display: inline-block;
color: white;
text-align: center;
padding: 14px;
text-decoration: none;


div.scrollmenu a:hover
background-color: #777;


ul>li>ul
display: none;


ul>li:hover>ul
background-color: #333;
position: absolute;
display: block;

<div class="scrollmenu">
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#news">News</a>
<ul>
<li><a href="#">News 1</a></li>
<li><a href="#">News 2</a></li>
<li><a href="#">News 3</a></li>
</ul>
</li>
<li><a href="#contact">Contact</a>
<ul>
<li><a href="#">Contact 1</a></li>
<li><a href="#">Contact 2</a></li>
<li><a href="#">Contact 3</a></li>
</ul>
</li>
<li><a href="#about">About</a></li>
<li><a href="#support">Support</a></li>
<li><a href="#blog">Blog</a></li>
<li><a href="#tools">Tools</a></li>
<li><a href="#base">Base</a></li>
<li><a href="#custom">Custom</a></li>
<li><a href="#more">More</a></li>
<li><a href="#logo">Logo</a></li>
<li><a href="#friends">Friends</a></li>
<li><a href="#partners">Partners</a></li>
<li><a href="#people">People</a></li>
<li><a href="#work">Work</a></li>
</ul>
</div>

<h2>Horizontal Scrollable Menu</h2>
<p>Resize the browser window to see the effect.</p>





Hope this helps






share|improve this answer













Are you looking for something like this?



Run the code snipped below and hover over News or Contacts:






ul 
list-style-type: none;
padding: 0px;
margin: 0px;


div.scrollmenu
background-color: #333;
overflow: auto;
white-space: nowrap;


div.scrollmenu li
display: inline-block;


div.scrollmenu li a
display: inline-block;
color: white;
text-align: center;
padding: 14px;
text-decoration: none;


div.scrollmenu a:hover
background-color: #777;


ul>li>ul
display: none;


ul>li:hover>ul
background-color: #333;
position: absolute;
display: block;

<div class="scrollmenu">
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#news">News</a>
<ul>
<li><a href="#">News 1</a></li>
<li><a href="#">News 2</a></li>
<li><a href="#">News 3</a></li>
</ul>
</li>
<li><a href="#contact">Contact</a>
<ul>
<li><a href="#">Contact 1</a></li>
<li><a href="#">Contact 2</a></li>
<li><a href="#">Contact 3</a></li>
</ul>
</li>
<li><a href="#about">About</a></li>
<li><a href="#support">Support</a></li>
<li><a href="#blog">Blog</a></li>
<li><a href="#tools">Tools</a></li>
<li><a href="#base">Base</a></li>
<li><a href="#custom">Custom</a></li>
<li><a href="#more">More</a></li>
<li><a href="#logo">Logo</a></li>
<li><a href="#friends">Friends</a></li>
<li><a href="#partners">Partners</a></li>
<li><a href="#people">People</a></li>
<li><a href="#work">Work</a></li>
</ul>
</div>

<h2>Horizontal Scrollable Menu</h2>
<p>Resize the browser window to see the effect.</p>





Hope this helps






ul 
list-style-type: none;
padding: 0px;
margin: 0px;


div.scrollmenu
background-color: #333;
overflow: auto;
white-space: nowrap;


div.scrollmenu li
display: inline-block;


div.scrollmenu li a
display: inline-block;
color: white;
text-align: center;
padding: 14px;
text-decoration: none;


div.scrollmenu a:hover
background-color: #777;


ul>li>ul
display: none;


ul>li:hover>ul
background-color: #333;
position: absolute;
display: block;

<div class="scrollmenu">
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#news">News</a>
<ul>
<li><a href="#">News 1</a></li>
<li><a href="#">News 2</a></li>
<li><a href="#">News 3</a></li>
</ul>
</li>
<li><a href="#contact">Contact</a>
<ul>
<li><a href="#">Contact 1</a></li>
<li><a href="#">Contact 2</a></li>
<li><a href="#">Contact 3</a></li>
</ul>
</li>
<li><a href="#about">About</a></li>
<li><a href="#support">Support</a></li>
<li><a href="#blog">Blog</a></li>
<li><a href="#tools">Tools</a></li>
<li><a href="#base">Base</a></li>
<li><a href="#custom">Custom</a></li>
<li><a href="#more">More</a></li>
<li><a href="#logo">Logo</a></li>
<li><a href="#friends">Friends</a></li>
<li><a href="#partners">Partners</a></li>
<li><a href="#people">People</a></li>
<li><a href="#work">Work</a></li>
</ul>
</div>

<h2>Horizontal Scrollable Menu</h2>
<p>Resize the browser window to see the effect.</p>





ul 
list-style-type: none;
padding: 0px;
margin: 0px;


div.scrollmenu
background-color: #333;
overflow: auto;
white-space: nowrap;


div.scrollmenu li
display: inline-block;


div.scrollmenu li a
display: inline-block;
color: white;
text-align: center;
padding: 14px;
text-decoration: none;


div.scrollmenu a:hover
background-color: #777;


ul>li>ul
display: none;


ul>li:hover>ul
background-color: #333;
position: absolute;
display: block;

<div class="scrollmenu">
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#news">News</a>
<ul>
<li><a href="#">News 1</a></li>
<li><a href="#">News 2</a></li>
<li><a href="#">News 3</a></li>
</ul>
</li>
<li><a href="#contact">Contact</a>
<ul>
<li><a href="#">Contact 1</a></li>
<li><a href="#">Contact 2</a></li>
<li><a href="#">Contact 3</a></li>
</ul>
</li>
<li><a href="#about">About</a></li>
<li><a href="#support">Support</a></li>
<li><a href="#blog">Blog</a></li>
<li><a href="#tools">Tools</a></li>
<li><a href="#base">Base</a></li>
<li><a href="#custom">Custom</a></li>
<li><a href="#more">More</a></li>
<li><a href="#logo">Logo</a></li>
<li><a href="#friends">Friends</a></li>
<li><a href="#partners">Partners</a></li>
<li><a href="#people">People</a></li>
<li><a href="#work">Work</a></li>
</ul>
</div>

<h2>Horizontal Scrollable Menu</h2>
<p>Resize the browser window to see the effect.</p>






share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 14 '18 at 15:31









Serge InácioSerge Inácio

1,126817




1,126817












  • thanks sir for answer my question, but i'm sorry this is not what I'm looking for, i want if i click menu "news" teks Horizontal Scrollable Menu Resize the browser window to see the effect. change teks news and if i click menu "contact" teks news hide and show teks contact

    – creat15
    Nov 14 '18 at 15:39

















  • thanks sir for answer my question, but i'm sorry this is not what I'm looking for, i want if i click menu "news" teks Horizontal Scrollable Menu Resize the browser window to see the effect. change teks news and if i click menu "contact" teks news hide and show teks contact

    – creat15
    Nov 14 '18 at 15:39
















thanks sir for answer my question, but i'm sorry this is not what I'm looking for, i want if i click menu "news" teks Horizontal Scrollable Menu Resize the browser window to see the effect. change teks news and if i click menu "contact" teks news hide and show teks contact

– creat15
Nov 14 '18 at 15:39





thanks sir for answer my question, but i'm sorry this is not what I'm looking for, i want if i click menu "news" teks Horizontal Scrollable Menu Resize the browser window to see the effect. change teks news and if i click menu "contact" teks news hide and show teks contact

– creat15
Nov 14 '18 at 15:39



















draft saved

draft discarded
















































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.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53303150%2fhorizontal-scrollable-menu-with-content%23new-answer', 'question_page');

);

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







Popular posts from this blog

How to how show current date and time by default on contact form 7 in WordPress without taking input from user in datetimepicker

Syphilis

Darth Vader #20