[CSS3] Use Sticky Positioning for Section Headers
We can take advantage of sticky positioning to keep a section header at the top of the page while the user scrolls. This is useful for neat categorisation of sections on the page.
<dl>
<dt>Premier League</dt>
<dd>Brighton & Hove Albion 2 - 2 AFC Bournemouth</dd>
<dd>Burnley 1 - 2 Liverpool</dd>
<dd>Leicester City 3 - 0 Huddersfield Town</dd>
<dd>Stoke City 0 - 1 Newcastle United</dd>
<dd>Everton 0 - 1 Manchester United</dd> <dt>Championship</dt>
<dd>Bolton Wanderers 1 - 0 Hull City</dd>
<dd>Derby County 1 - 1 Sheffield United</dd>
<dd>Leeds United 0 - 0 Nottingham Forest</dd>
<dd>Norwich City 2 - 1 Millwall</dd>
<dd>Preston North End 2 - 3 Middlesbrough</dd>
<dd>Queens Park Rangers 2 - 1 Cardiff City</dd>
<dd>Sheffield Wednesday 0 - 3 Burton Albion</dd>
<dd>Sunderland 0 - 1 Barnsley</dd>
<dd>Aston Villa 3 - 0 Bristol City</dd> <dt>League 1</dt>
<dd>AFC Wimbledon 2 - 0 Southend United</dd>
<dd>Bristol Rovers 2 - 1 Portsmouth</dd>
<dd>Charlton Athletic 1 - 2 Gillingham</dd>
<dd>Fleetwood Town 1 - 2 Bradford City</dd>
<dd>Northampton Town 0 - 1 Wigan Athletic</dd>
<dd>Oxford United 3 - 1 Milton Keynes Dons</dd>
<dd>Peterborough United 1 - 1 Doncaster Rovers</dd>
<dd>Plymouth Argyle 1 - 0 Walsall</dd>
<dd>Rochdale 1 - 2 Blackpool</dd>
<dd>Rotherham United 1 - 1 Blackburn Rovers</dd>
<dd>Scunthorpe United 1 - 0 Bury</dd>
<dd>Shrewsbury Town 1 - 0 Oldham Athletic</dd>
</dl>
dl {
font-size: 30px;
}
dt {
background-color: mediumseagreen;
position: sticky; /*sticky positioning*/
position: -webkit-sticky;
top:;
}
dd {
padding: 20px 0;
}
[CSS3] Use Sticky Positioning for Section Headers的更多相关文章
- ConfigParser.MissingSectionHeaderError: File contains no section headers.
今天使用ConfigParser解析一个ini文件,报出如下错误: config.read(logFile) File "C:\Python26\lib\ConfigParser.py&qu ...
- python ConfigParser读取配置文件,及解决报错(去掉BOM)ConfigParser.MissingSectionHeaderError: File contains no section headers的方法
先说一下在读取配置文件时报错的问题--ConfigParser.MissingSectionHeaderError: File contains no section headers 问题描述: 在练 ...
- 【问题解决方案】CentOS7替换yum的问题:使用yum makecache出现File contains no section headers
参考链接 CentOS7替换yum的问题:使用yum时出现File contains no section headers centos安装网络repo源及错误说明 一.centos替换yum的步骤 ...
- Android7.0后JNI库必须保留Section Headers
此修改在官网的描述如下: Each ELF file has additional information contained in the section headers. These header ...
- css3 position:sticky
最近在写一个小程序,项目中遇到一个需求:页面滚动到tab切换菜单时,菜单fixed到页面顶部: 实现方法: 使用小程序的onPageScroll事件,滚动到指定位置添加fixed样式: bug1:获取 ...
- raise missingsectionheadererror:file containe no section headers问题解决
本人亲测,遇到这个问题,就换到管理员方式运行命令 因为太小白,所以这次重新装包的时候切换到D盘了,想着省一点儿C盘内存,结果,每次pip install安装的时候都是这个问题,中间还有什么反序列失败, ...
- CentOS7使用yum时File contains no section headers.解决办法
本文转载于 https://blog.csdn.net/trokey/article/details/84908838 安装好CenOS7后,自带的yum不能直接使用,使用会出现如下问题: 原因是没 ...
- CSS3与页面布局学习总结(三)——BFC、定位、浮动、7种垂直居中方法
一.BFC与IFC 1.1.BFC与IFC概要 BFC(Block Formatting Context)即“块级格式化上下文”, IFC(Inline Formatting Context)即行内格 ...
- CSS3与页面布局学习总结(四)——页面布局大全BFC、定位、浮动、7种垂直居中方法
目录 一.BFC与IFC 1.1.BFC与IFC概要 1.2.如何产生BFC 1.3.BFC的作用与特点 二.定位 2.2.relative 2.3.absolute 2.4.fixed 2.5.z- ...
随机推荐
- Golang 入门 : goroutine(协程)
在操作系统中,执行体是个抽象的概念.与之对应的实体有进程.线程以及协程(coroutine).协程也叫轻量级的线程,与传统的进程和线程相比,协程的最大特点是 "轻"!可以轻松创建上 ...
- DFS之城堡问题
2019-06-01 17:54:51 坚持!! 题目链接: http://bailian.openjudge.cn/practice/2815 #include <bits/stdc++.h& ...
- C#学习-程序集和反射
准备项目 1.新建一个空的解决方案MyProj.sln 2.在该解决方案下,建一个控制台项目P01.csproj 3.在该项目下,自己新建一个类MyFirstClass.cs 查看解决方案MyProj ...
- Html常用标签及全称
<!-- 块标签 divsion --><div></div> <!--br 换行 break--> <br /> <!--分割 ...
- echarts交叉关系图一
想要做一个公司-人员关系图,官网echarts图graph webkit dep 稍微改了一下, 也是有点恶心自己,调了一个数据最多的去改,如果正好有人需要就不用去改了 说明:此图没有坐标,可以设置图 ...
- asp.net MVC 下拉多级联动及编辑
多级联动实现,附源码.当前,部分代码是参与博客园其它网友. 新增,前台代码: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 ...
- 在Mac安装Scheme
我也不知道安装的是Scheme这门语言还是编程环境还是其他的什么东西,反正能在控制台运行Scheme代码了.... 谁能告诉我怎么在sublime使用scheme.... 原地址 首先下载安装MIT- ...
- ASLR(Address space layout randomization)地址空间布局随机化
/********************************************************************* * Author : Samson * Date ...
- sqlserver 批量更新
select * from [LPicture] UPDATE [dbo].[LPicture] SET [picGroup] = ' WHERE LPictureid ,); select * fr ...
- MFC TAB控件顺序
在MFC中添加控件后,按Ctrl+d可以改变控件TAB顺序,怕自己忘了,一个神奇的东西,记下. 关于改变Tab顺序的方法有以下几种: 方法一:在动态创建控件的时候STYLE设置成为WS_CHILD|W ...