Frontend Development

Fixed Header

Submitted by DMPS, , Thread ID: 28503

Thread Closed
26-01-2017, 01:03 AM
#1
So I am trying to learn more about HTML,CSS, etc. and I wanted some help on making the nav bar on my site fixed. Like the option NBB has when you scroll it stays at the top. I wanna add an option tot he settings as well. Ca anyone direct me in the right way?
[Image: Lorj6YP.png]

RE: Fixed Header

#2
Here you can learn it from .

http://www.w3schools.com/howto/howto_css_fixed_menu.asp

RE: Fixed Header

OP
#3
26-01-2017, 01:12 AM
KiddoMonster Wrote:
Here you can learn it from .

http://www.w3schools.com/howto/howto_css_fixed_menu.asp

I learned that, but I need to learn how to make like a check box option for if the client wants it fixed or not.
[Image: Lorj6YP.png]

RE: Fixed Header

#4
26-01-2017, 02:01 AM
Milcore Wrote:
I learned that, but I need to learn how to make like a check box option for if the client wants it fixed or not.

implement that first then implement a way to switch it on or off? Im not very good at coding just a beginner myskle but makes since imo. Someone correct me if im wrong and explain because id like to find out myself

RE: Fixed Header

This post was last modified: 05-02-2017, 09:10 PM by Deleted_3747
#5
JS works, check some javascript tutorials on allowing users to change css with toggles.

http://stackoverflow.com/questions/19085...-or-jquery

Users browsing this thread: 2 Guest(s)