CSS Chapter 6 (1)
CSS Chapter 6 (1)
Page Protection
Unit - VI
• The status property does not work in the default configuration of IE, Firefox,
Chrome, Safari or Opera 15 and newer.
• Banner ads can be static or animated. Animated images are animated GIF files or
flash movies. Flash movies are created using Macromedia Flash and the browsers
must have installed flash plugin to view the movies.
• On the other hand, you can create some animated effect using JavaScript, like
rotating static banner ads at a certain time interval.
• Font-size:
• Sets the font size of different elements. Default value is medium.
• Values: small, medium, large, x-small/large, xx-small/large, smaller, larger, length px/cm, %
• Border:
• It allows you to specify style, width and color of an element’s border.
• Border-style: dotted, dash, solid,Prepared
double, groove, ridge, inset, outset, none, hidden
By: Khan Mohammed Zaid, Lecturer, Comp. Engg.,
15
MHSSP
Menus
• Cursor:
• It generates a bunch of different mouse cursor.
• Values: default, auto, cell, copy, crosshair, grab, help, pointer etc
• Position:
• It specifies the type of positioning method used for an element
• static: an element with position:static is not positioned in any special way, it is positioned
according to the normal flow of the page,
relative: an element with position:relative; is positioned relative to its normal position
Setting the top, right, bottom, and left properties of a relatively-positioned element will cause
it to be adjusted away from its normal position. Other content will not be adjusted to fit into
any gap left by the element,
fixed, absolute, sticky
Prepared By: Khan Mohammed Zaid, Lecturer, Comp. Engg.,
16
MHSSP
Menus
• Position:
• Fixed: an element with position:fixed; is positioned relative to the viewport, which means it
always stays in the same place even if the page is scrolled.
Absolute: An element with position: absolute; is positioned relative to the nearest positioned
ancestor (instead of positioned relative to the viewport, like fixed).
Sticky: An element with position: sticky; is positioned based on the user's scroll position.
A sticky element toggles between relative and fixed, depending on the scroll position. It is
positioned relative until a given offset position is met in the viewport - then it "sticks" in place
(like position:fixed).
Block: displays an element a block element (like <p>). It starts on a new line and
takes up the whole width.
hidden: The overflow is clipped, and the rest of the content will be invisible.
scroll: The overflow is clipped and scroll bar is added to the rest of the content.
• Number: Sets the stack order of an element. Negative numbers are allowed.
None: Element will not float. It will be displayed just where it occurs in the text. (default).