Search
 
SCRIPT & CODE EXAMPLE
 

CSS

set default scroll position css

In this CSS example:
* We define a flex nav ul container
* Nav li are displayed in column and are left aligned
* Inside a minimum 400px width area
* The vertical scroll starts at 10rem from the top
* A right border marks the area off

.nav-ul-container {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
	position: fixed;
	top: 10rem;
	height: calc(100% - 10rem);
	min-width: 400px;
	overflow-y: scroll;
	border-right: 1px solid var(--light);
}

// Adding the CSS snippet below will hide the scrollbar
// https://caniuse.com/?search=%3A%3A-webkit-scrollbar

.nav-ul-container::-webkit-scrollbar {
	width: 0;
	background: transparent;
}

.nav-li {
	line-height: 1.2;
	margin: 20px;
	list-style: none;
}
Comment

PREVIOUS NEXT
Code Example
Css :: button size css 
Css :: css trigger animation 
Css :: how to install gotham rounded as a font in visual studio code for my css file 
Css :: The CSS to make all the columns equal in width is as follows 
Css :: click a list html css 
Css :: tasty css 
Css :: width height samsung note 20 screen 
Css :: css sign in with google 
Css :: How to extend selector 
Css :: laravel public css not found 
Css :: Basic sintax media Query 
Css :: nuxt css other site 
Css :: how to write css 
Css :: animated display css 
Css :: how to change line colors in css 
Css :: background behind image css 
Typescript :: next start project with typescript 
Typescript :: next js onclick navigate 
Typescript :: target.value typescript 
Typescript :: Do not use "// @ts-ignore" comments because they suppress compilation errors 
Typescript :: firestore increment field 
Typescript :: convert htmlcollection to array 
Typescript :: count li elements jquery 
Typescript :: canactivate get current url 
Typescript :: ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. 
Typescript :: insert value to the top of array in angular 
Typescript :: node redis new objects must be created at the root 
Typescript :: typescript show arguments on function call vscode 
Typescript :: android:exported needs to be explicitly specified for <receiver. Apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the corresponding component has an intent filter defined. 
Typescript :: ERROR in ngcc is already running at process with id 8108. If you are running multiple builds in parallel then you should pre-process your node_modules via the command line ngcc tool before starting the builds; 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =