* *

Recent Topics

Members
Stats
  • Total Posts: 10521
  • Total Topics: 1356
  • Online Today: 40
  • Online Ever: 408
  • (Nov 30, 18, 05:13:24 AM)
Users Online
Users: 0
Guests: 27
Total: 27

CZ Themes





News

Want more site traffic .. » Showcase « Your Crip Theme!!

Author Topic: Sticky Top_Section!  (Read 347 times)

0 Members and 1 Guest are viewing this topic.

Offline Skhilled

  • CZ Admin
  • Sr. Member
  • *
  • Posts: 346
  • Gender: Male
    • Crip Zone Themes
Sticky Top_Section!
« on: Jul 27, 19, 03:39:15 AM »
If you'd like the top-section to be stickied (make it follow you as you scroll down the page) all you need to do is this:

1.  In index.css:

Search for:
Code: [Select]
/*    Uncomment the code below to sticky the footer */
2.  Then change this:
Code: [Select]
/*    Uncomment the code below to sticky the footer */
/*    position: -webkit-sticky;
    position: sticky;
    bottom: 0px;
    z-index: 20; */

Replace with:
Code: [Select]
/*    Uncomment the code below to sticky the footer */
    position: -webkit-sticky;
    position: sticky;
    bottom: 0px;
    z-index: 20;

This code will be added to all future themes. All you have to do is follow the above code changes to make it work for your chosen theme!  O0