User:Zuhui/Prototyping/HTML/CSS

From XPUB & Lens-Based wiki
< User:Zuhui‎ | Prototyping
Revision as of 12:27, 12 November 2024 by Zuhui (talk | contribs) (→‎CSS)

Basic

121124 with manetta

HTML

HTML basic structure

<!DOCTYPE html>
<html>
<head>
 <title></title>
</head>
<body>
</body>
</html>


CSS

:root

:root{
--(name of the var):(color, fontsize etc);
}
//-- two dash is mendatory
//when use
ex) font-size: var(--main-font-size);

Position

absolute

it is fixed on the designated position

fixed

it is fixed on the designated position + it stays float in the position even if the page is being scrolled