different menu a color on different section












0














as same as the tittle, how to set the color on id menu on different section of each page i made ?? anyone



below is my css






#menu-line {
position:absolute;
bottom:-4px;
left:0;
width:159px;
height:2px;
background:#fff
}

#menu {
position:fixed;
top:20px;
right:20px;
z-index:70;
-webkit-font-smoothing:antialiased;
-moz-font-smoothing:antialiased;
letter-spacing:1px;
font-size:1.1em
}

#menu li {
display:inline-block;
margin:10px 0;
position:relative
}

#menu a {
color:#fff;
padding:0 1.1em 1.1em 1.1em
}

#menu li.active a:after {
content: '';
margin: 0 1.1em 0 1.1em;
height: 2px;
background: #fff;
display: block;
position: absolute;
bottom: -6px;
left: 0;
right: 0;
display: block;
}

<body>

<a id="logo" href="#firstPage" alt="pisangSlebew">pisangSlebew</a>
<ul id="menu"><li data-menuanchor="firstPage" class="active"><a href="#firstPage">Home</a></li>
<li data-menuanchor="secondPage" class=""><a href="#secondPage">About Us</a></li>
<li data-menuanchor="3rdPage" class=""><a href="#3rdPage">Hiyahiyahiya!</a></li>
</ul>

<div id="fullpage">
<div class="section" id="section0">
<div class="intro">
<h1 class="apik">SLEBEW</h1>
<p>
"Jangan lupa makan pisang hasri ini."
</p>
</div>
</div>
<div class="section" id="section1">
<h1>Halaman 2</h1>
<p>
"Test."
</p>
</div>
<div class="section" id="section2">
<h1>Halaman 3</h1>
<p>
"Hiyahiyahiya!."
</p>
</div>
</div>
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**





above is my index.html










share|improve this question






















  • It's not clear what you mean for "each page". Anyway, witha simple css you can change text color and background. #section1 {color: red; background-color: yellow}
    – DaFois
    Nov 12 at 0:33


















0














as same as the tittle, how to set the color on id menu on different section of each page i made ?? anyone



below is my css






#menu-line {
position:absolute;
bottom:-4px;
left:0;
width:159px;
height:2px;
background:#fff
}

#menu {
position:fixed;
top:20px;
right:20px;
z-index:70;
-webkit-font-smoothing:antialiased;
-moz-font-smoothing:antialiased;
letter-spacing:1px;
font-size:1.1em
}

#menu li {
display:inline-block;
margin:10px 0;
position:relative
}

#menu a {
color:#fff;
padding:0 1.1em 1.1em 1.1em
}

#menu li.active a:after {
content: '';
margin: 0 1.1em 0 1.1em;
height: 2px;
background: #fff;
display: block;
position: absolute;
bottom: -6px;
left: 0;
right: 0;
display: block;
}

<body>

<a id="logo" href="#firstPage" alt="pisangSlebew">pisangSlebew</a>
<ul id="menu"><li data-menuanchor="firstPage" class="active"><a href="#firstPage">Home</a></li>
<li data-menuanchor="secondPage" class=""><a href="#secondPage">About Us</a></li>
<li data-menuanchor="3rdPage" class=""><a href="#3rdPage">Hiyahiyahiya!</a></li>
</ul>

<div id="fullpage">
<div class="section" id="section0">
<div class="intro">
<h1 class="apik">SLEBEW</h1>
<p>
"Jangan lupa makan pisang hasri ini."
</p>
</div>
</div>
<div class="section" id="section1">
<h1>Halaman 2</h1>
<p>
"Test."
</p>
</div>
<div class="section" id="section2">
<h1>Halaman 3</h1>
<p>
"Hiyahiyahiya!."
</p>
</div>
</div>
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**





above is my index.html










share|improve this question






















  • It's not clear what you mean for "each page". Anyway, witha simple css you can change text color and background. #section1 {color: red; background-color: yellow}
    – DaFois
    Nov 12 at 0:33
















0












0








0







as same as the tittle, how to set the color on id menu on different section of each page i made ?? anyone



below is my css






#menu-line {
position:absolute;
bottom:-4px;
left:0;
width:159px;
height:2px;
background:#fff
}

#menu {
position:fixed;
top:20px;
right:20px;
z-index:70;
-webkit-font-smoothing:antialiased;
-moz-font-smoothing:antialiased;
letter-spacing:1px;
font-size:1.1em
}

#menu li {
display:inline-block;
margin:10px 0;
position:relative
}

#menu a {
color:#fff;
padding:0 1.1em 1.1em 1.1em
}

#menu li.active a:after {
content: '';
margin: 0 1.1em 0 1.1em;
height: 2px;
background: #fff;
display: block;
position: absolute;
bottom: -6px;
left: 0;
right: 0;
display: block;
}

<body>

<a id="logo" href="#firstPage" alt="pisangSlebew">pisangSlebew</a>
<ul id="menu"><li data-menuanchor="firstPage" class="active"><a href="#firstPage">Home</a></li>
<li data-menuanchor="secondPage" class=""><a href="#secondPage">About Us</a></li>
<li data-menuanchor="3rdPage" class=""><a href="#3rdPage">Hiyahiyahiya!</a></li>
</ul>

<div id="fullpage">
<div class="section" id="section0">
<div class="intro">
<h1 class="apik">SLEBEW</h1>
<p>
"Jangan lupa makan pisang hasri ini."
</p>
</div>
</div>
<div class="section" id="section1">
<h1>Halaman 2</h1>
<p>
"Test."
</p>
</div>
<div class="section" id="section2">
<h1>Halaman 3</h1>
<p>
"Hiyahiyahiya!."
</p>
</div>
</div>
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**





above is my index.html










share|improve this question













as same as the tittle, how to set the color on id menu on different section of each page i made ?? anyone



below is my css






#menu-line {
position:absolute;
bottom:-4px;
left:0;
width:159px;
height:2px;
background:#fff
}

#menu {
position:fixed;
top:20px;
right:20px;
z-index:70;
-webkit-font-smoothing:antialiased;
-moz-font-smoothing:antialiased;
letter-spacing:1px;
font-size:1.1em
}

#menu li {
display:inline-block;
margin:10px 0;
position:relative
}

#menu a {
color:#fff;
padding:0 1.1em 1.1em 1.1em
}

#menu li.active a:after {
content: '';
margin: 0 1.1em 0 1.1em;
height: 2px;
background: #fff;
display: block;
position: absolute;
bottom: -6px;
left: 0;
right: 0;
display: block;
}

<body>

<a id="logo" href="#firstPage" alt="pisangSlebew">pisangSlebew</a>
<ul id="menu"><li data-menuanchor="firstPage" class="active"><a href="#firstPage">Home</a></li>
<li data-menuanchor="secondPage" class=""><a href="#secondPage">About Us</a></li>
<li data-menuanchor="3rdPage" class=""><a href="#3rdPage">Hiyahiyahiya!</a></li>
</ul>

<div id="fullpage">
<div class="section" id="section0">
<div class="intro">
<h1 class="apik">SLEBEW</h1>
<p>
"Jangan lupa makan pisang hasri ini."
</p>
</div>
</div>
<div class="section" id="section1">
<h1>Halaman 2</h1>
<p>
"Test."
</p>
</div>
<div class="section" id="section2">
<h1>Halaman 3</h1>
<p>
"Hiyahiyahiya!."
</p>
</div>
</div>
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**





above is my index.html






#menu-line {
position:absolute;
bottom:-4px;
left:0;
width:159px;
height:2px;
background:#fff
}

#menu {
position:fixed;
top:20px;
right:20px;
z-index:70;
-webkit-font-smoothing:antialiased;
-moz-font-smoothing:antialiased;
letter-spacing:1px;
font-size:1.1em
}

#menu li {
display:inline-block;
margin:10px 0;
position:relative
}

#menu a {
color:#fff;
padding:0 1.1em 1.1em 1.1em
}

#menu li.active a:after {
content: '';
margin: 0 1.1em 0 1.1em;
height: 2px;
background: #fff;
display: block;
position: absolute;
bottom: -6px;
left: 0;
right: 0;
display: block;
}

<body>

<a id="logo" href="#firstPage" alt="pisangSlebew">pisangSlebew</a>
<ul id="menu"><li data-menuanchor="firstPage" class="active"><a href="#firstPage">Home</a></li>
<li data-menuanchor="secondPage" class=""><a href="#secondPage">About Us</a></li>
<li data-menuanchor="3rdPage" class=""><a href="#3rdPage">Hiyahiyahiya!</a></li>
</ul>

<div id="fullpage">
<div class="section" id="section0">
<div class="intro">
<h1 class="apik">SLEBEW</h1>
<p>
"Jangan lupa makan pisang hasri ini."
</p>
</div>
</div>
<div class="section" id="section1">
<h1>Halaman 2</h1>
<p>
"Test."
</p>
</div>
<div class="section" id="section2">
<h1>Halaman 3</h1>
<p>
"Hiyahiyahiya!."
</p>
</div>
</div>
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**





#menu-line {
position:absolute;
bottom:-4px;
left:0;
width:159px;
height:2px;
background:#fff
}

#menu {
position:fixed;
top:20px;
right:20px;
z-index:70;
-webkit-font-smoothing:antialiased;
-moz-font-smoothing:antialiased;
letter-spacing:1px;
font-size:1.1em
}

#menu li {
display:inline-block;
margin:10px 0;
position:relative
}

#menu a {
color:#fff;
padding:0 1.1em 1.1em 1.1em
}

#menu li.active a:after {
content: '';
margin: 0 1.1em 0 1.1em;
height: 2px;
background: #fff;
display: block;
position: absolute;
bottom: -6px;
left: 0;
right: 0;
display: block;
}

<body>

<a id="logo" href="#firstPage" alt="pisangSlebew">pisangSlebew</a>
<ul id="menu"><li data-menuanchor="firstPage" class="active"><a href="#firstPage">Home</a></li>
<li data-menuanchor="secondPage" class=""><a href="#secondPage">About Us</a></li>
<li data-menuanchor="3rdPage" class=""><a href="#3rdPage">Hiyahiyahiya!</a></li>
</ul>

<div id="fullpage">
<div class="section" id="section0">
<div class="intro">
<h1 class="apik">SLEBEW</h1>
<p>
"Jangan lupa makan pisang hasri ini."
</p>
</div>
</div>
<div class="section" id="section1">
<h1>Halaman 2</h1>
<p>
"Test."
</p>
</div>
<div class="section" id="section2">
<h1>Halaman 3</h1>
<p>
"Hiyahiyahiya!."
</p>
</div>
</div>
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**
**4040440404404004040404**






html css id






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 11 at 19:16









Daffa Wardhana

6




6












  • It's not clear what you mean for "each page". Anyway, witha simple css you can change text color and background. #section1 {color: red; background-color: yellow}
    – DaFois
    Nov 12 at 0:33




















  • It's not clear what you mean for "each page". Anyway, witha simple css you can change text color and background. #section1 {color: red; background-color: yellow}
    – DaFois
    Nov 12 at 0:33


















It's not clear what you mean for "each page". Anyway, witha simple css you can change text color and background. #section1 {color: red; background-color: yellow}
– DaFois
Nov 12 at 0:33






It's not clear what you mean for "each page". Anyway, witha simple css you can change text color and background. #section1 {color: red; background-color: yellow}
– DaFois
Nov 12 at 0:33



















active

oldest

votes











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%2f53252269%2fdifferent-menu-a-color-on-different-section%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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%2f53252269%2fdifferent-menu-a-color-on-different-section%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

Full-time equivalent

さくらももこ

13 indicted, 8 arrested in Calif. drug cartel investigation