<< < 1 2 3 4 >   Sort: Date

How To Center Your Page in Browser Windows
How To Center Your Page in Browser Windows? - CSS Tutorials - Page Layout and Background Image Design In the previous exercise, the page width is fixed, but the page is not centered. If you want to center your page in the browser window, you can add the CENTER tag before the DIV tag. The following t...
2007-05-11, 5171👍, 0💬

What Is Browser Resolution
What Is Browser Resolution? - CSS Tutorials - Page Layout and Background Image Design Browser resolution is measure by how many graphical points (pixels) per inch on a Web browser window. Logically, browser resolution should be identical to the screen resolution, for example, FireFox. But there is a...
2007-05-11, 5159👍, 0💬

How To Set Page Width to a Fixed Value
How To Set Page Width to a Fixed Value? - CSS Tutorials - Page Layout and Background Image Design If you don't want your page to be resized when browser window is resized, you need to set your page width to an absolute value. Many Webmasters use TABLE tags to set page width to a fixed value. But it ...
2007-05-11, 5152👍, 0💬

What Are the Length Units Used in CSS
What Are the Length Units Used in CSS? - CSS Tutorials - Page Layout and Background Image Design To control your page width and page layout, you must understand the length units used in CSS. Here is a list of main length units: cm - One centimeter, absolute unit. em - The height of the current text ...
2007-05-11, 5113👍, 0💬

What Is a ID Selector
What Is a ID Selector? - CSS Tutorials - Introduction To CSS Basics A ID selector selects all HTML tags that matches the id name defined in the tag attribute of id="id_name". ID selectors are specified with a leading hash like (#id_name). For example, the following CSS definition uses an ID selector...
2007-05-11, 5113👍, 0💬

How To Specify a Background Image
How To Specify a Background Image? - CSS Tutorials - Page Layout and Background Image Design The quickest way to specify a background image is to use the background-image style property. Let's try with an image from the Windows system called, follow.jpg: &nbsp; &nbsp; &nbsp; &nbsp; &...
2007-05-11, 5106👍, 0💬

What Happen to Font Sizes with Relative Page Width Units
What Happen to Font Sizes with Relative Page Width Units? - CSS Tutorials - Page Layout and Background Image Design If you set your page width to relative length units like pixels, what will happen to font sizes? Usually, font sizes have absolute length units like point (pt). If you specify font siz...
2007-05-11, 5096👍, 0💬

How To Specify Margin Spaces of a Block Element
How To Specify Margin Spaces of a Block Element? - CSS Tutorials - HTML Formatting Model: Block, Inline and Floating Elements CSS offers 4 style properties to control margin spaces of a block element. You can specify them in different ways as shown in the following CSS examples: {margin-top: 30px} -...
2007-05-11, 5089👍, 0💬

What Is the Basic Unit of CSS
What Is the Basic Unit of CSS? - CSS Tutorials - Introduction To CSS Basics The basic unit of CSS is a definition of a style property for a selected HTML tag written in the following syntax: html_tag_name {style_property_name: style_property_value} For example: /* set background color to black for t...
2007-05-11, 5084👍, 0💬

How Many Ways Can Elements Relate to Each Other
How Many Ways Can Elements Relate to Each Other? - CSS Tutorials - Understanding Multiple Element Formatting Rules From a formatting point of view, HTML elements can relate to each other in the following ways: Line up side by side - In-line elements coded next to each other are formatted side by sid...
2007-05-11, 5071👍, 0💬

How To Specify Borders of a Block Element
How To Specify Borders of a Block Element? - CSS Tutorials - HTML Formatting Model: Block, Inline and Floating Elements CSS offers 12 style properties to control borders of a block element with 3 properties on each side to control border style, width and color. You can specify those 12 border proper...
2007-05-11, 5067👍, 0💬

How To Group CSS Definitions Together
How To Group CSS Definitions Together? - CSS Tutorials - Introduction To CSS Basics If you have multiple CSS definitions to be applied to the same HTML tag, you can write them together delimited with semicolon (;). The following CSS provides you a good example of CSS definition groups: pre.code {bac...
2007-05-11, 5067👍, 0💬

How To Use Class Selectors to Differentiate Tag Instances
How To Use Class Selectors to Differentiate Tag Instances? - CSS Tutorials - Introduction To CSS Basics A more reliable way to identify tag instances is to use the class attributes and class selectors. In the CSS example below, class="url" is added to &lt;P> tags for Web addresses, with a new CS...
2007-05-11, 5067👍, 0💬

How Many Ways to Select HTML Tag Instances
How Many Ways to Select HTML Tag Instances? - CSS Tutorials - Introduction To CSS Basics If you define a style property for a HTML tag, this definition will apply to all instances of that tag in the entire document. If you want to apply different style property values to different instances of the s...
2007-05-11, 5058👍, 0💬

How Is the Full Width of a Block Element Extended
How Is the Full Width of a Block Element Extended? - CSS Tutorials - Understanding Multiple Element Formatting Rules If the full width of a block element needs to be extended to meet the width of the parent element, brower will following there rules: The full width of a block element is the sum of l...
2007-05-11, 5051👍, 0💬

What Is CSS Cascading
What Is CSS Cascading? - CSS Tutorials - Introduction To CSS Basics CSS cascading is another rule that allows multiple definitions on the same style property of the same HTML tag instance. The Web browser will use cascading order rules to determine the winning definition. Multiple definitions of the...
2007-05-11, 5051👍, 0💬

Hot To Specify the Content Box Size of a Block Element
Hot To Specify the Content Box Size of a Block Element? - CSS Tutorials - HTML Formatting Model: Block, Inline and Floating Elements If you want to control the size of the content box of a block element, you can use the "width" and "height" properties as shown below: {width: 300px} - Specifies the c...
2007-05-11, 5036👍, 0💬

What Is Inline Element
What Is Inline Element? - CSS Tutorials - HTML Formatting Model: Block, Inline and Floating Elements An inline element is formatted as a rectangular block joining other inline elements horizontally to form a line of inline elements. If the width of the parent content box is reached, it will be wrapp...
2007-05-11, 5035👍, 0💬

What Is Style Property Inheritance
What Is Style Property Inheritance? - CSS Tutorials - Introduction To CSS Basics Style property Inheritance is a rule that allows a style property of a child HTML tag to inherit the same property of the parent HTML tag, if that property is not defined on the child tag. This inheritance rule is very ...
2007-05-11, 5035👍, 0💬

How To Use IDs to Override Classes
How To Use IDs to Override Classes? - CSS Tutorials - Introduction To CSS Basics Class is a nice way to separate a group of tag instances. To identify one or two special instances, you can use the ID attributes and ID selectors. In the CSS example below, the ID selector "P#hot" wins over all other s...
2007-05-11, 5026👍, 0💬

What Is a Mixed Selector
What Is a Mixed Selector? - CSS Tutorials - Introduction To CSS Basics A mixed selector is a selector that uses a combination of all other selectors. The following CSS shows some good examples: /* selects &lt;p class="quote"> tags */ P.quote {font-style: italic} /* selects &lt;p class="quote...
2007-05-11, 5022👍, 0💬

How To Specify Is the Color of the Padding Area
How To Specify Is the Color of the Padding Area? - CSS Tutorials - HTML Formatting Model: Block, Inline and Floating Elements CSS doesn't allow you to specify the color of the padding area of a block element. The padding area is part of the background of the block element. In another word, the paddi...
2007-05-11, 5014👍, 0💬

What Is a Block Element
What Is a Block Element? - CSS Tutorials - HTML Formatting Model: Block, Inline and Floating Elements A block element is formatted as a rectangular block occupying the entire width of the parent content box. Examples of block elements are: &lt;P> - A paragraph of text and/or inline elements. &am...
2007-05-11, 5003👍, 0💬

What Is the HTML Element Formatting Model
What Is the HTML Element Formatting Model? - CSS Tutorials - HTML Formatting Model: Block, Inline and Floating Elements An HTML document is divided into HTML elements. Each element is considered as a formatting unit using a box-oriented formatting model, which has: Content Box - A rectangular area f...
2007-05-11, 4995👍, 0💬

<< < 1 2 3 4 >   Sort: Date