Display, Position, Text
Display, Position, Text
UI@2PM Page 1
UI@2PM Page 2
Position : It defines the positioning of the
elements, we may use top, bottom, left and right
properties to support the element positioning
UI@2PM Page 3
3. absolute : This positioning is related with the
parent element
UI@2PM Page 4
4. fixed : This position will be fixed to viewport
and will get affected by the scroll i.e., the
element get scrolled.
<style>
#fixed {
position: fixed;
bottom: 0;
right: 0;
width: 300px;
border: 3px solid #73AD21;
}
</style>
</head>
<body style="padding-bottom:2000px">
UI@2PM Page 5
<h2>position: fixed;</h2>
<div id="fixed">
This div element has position: fixed;
</div>
<div style="padding-bottom:2000px">
<p>In this example, the sticky element sticks to the top of the page (top:
0), when you reach its scroll position.</p>
UI@2PM Page 6
0), when you reach its scroll position.</p>
<p>Scroll back up to remove the stickyness.</p>
<p>Some text to enable scrolling.. Lorem ipsum dolor sit amet, illum
definitiones no quo, maluisset concludaturque et eum, altera fabulas ut
quo. Atqui causae gloriatur ius te, id agam omnis evertitur eum. Affert
laboramus repudiandae nec et. Inciderint efficiantur his ad. Eum no
molestiae voluptatibus.</p>
<p>Some text to enable scrolling.. Lorem ipsum dolor sit amet, illum
definitiones no quo, maluisset concludaturque et eum, altera fabulas ut
quo. Atqui causae gloriatur ius te, id agam omnis evertitur eum. Affert
laboramus repudiandae nec et. Inciderint efficiantur his ad. Eum no
molestiae voluptatibus.</p>
</div>
Overflow-x:scroll;
UI@2PM Page 7
Overflow-y:scroll;
Text Properties
1. text- color: Using color property
2. text-alignment
UI@2PM Page 8
The above is used for designing the last line only
text-decoration :
UI@2PM Page 9
Text-Transformation
UI@2PM Page 10
Text-Shadow :
UI@2PM Page 11
UI@2PM Page 12