Dreamweaver entry: Use CSS settings page format
This article describes how to use Dreamweaver Cascading Style Sheets (CSS) set up in the pages of the text. You can use CSS to HTML unable to provide ways to format your text and positioning of text, which can be more flexible control of the appearance of pages.
Understand CSS
Cascading Style Sheets (CSS) is a series of formatting rules, which control the appearance of Web page content. Set up pages using CSS format, content and form of expression is separated from each other. Page content (HTML code) at their own HTML document, the definition of the CSS code manifestations of the rules in another document (Waibuyangshibiao) or another part of HTML documents (usually a part). Use CSS can be very flexible and to better control the appearance of pages, from the layout of precision positioning to a specific font and style, etc..
CSS allows you to control many use only HTML beyond the control of the property. For example, you can specify a different text for the selected font sizes and units (pixels, Kompong value, etc.). Through the use of CSS to set up units to pixels as font size, can also ensure that in a number of browsers in a more coherent approach to page layout and appearance.
CSS formatting rules was composed of two parts: selector and declarations. Selector is labelled formatting elements (such as P, H1, class name or ID) terminology, and the statement is used to define elements of the pattern. In the following example, H1 is the choice, between the square brackets (()) between all the elements of the statement are:
H1 (
Font-size: 16 pixels;
Font-family: Helvetica;
Font-weight: bold;
)
Statement consists of two parts: attributes (such as font-family) and the value (such as Helvetica). H1 tags for the above-mentioned examples created a style: the link to this form of the text of all H1 tags will be the size of 16 pixels and use Helvetica fonts and bold.
The term "stack" refers to the same elements of Web pages or the ability to use multiple forms. For example, you can create a CSS rules to apply color, create another application of the rules of margins, both of which were then applied to a page in the same text. By the definition of the style of "cascading" to your Web page elements, and ultimately you want to create the design.
The main advantage of CSS is easy to update as long as the one to update CSS rules, the pattern of the use of the definition of the format of all documents are automatically updated to the new style.
In Dreamweaver types can be defined the following rules:
Custom CSS rules (also known as the "style") so you can be applied to any style attributes of the text or text block. All styles are like a period (.) Begins. For example, you can create called. Red class format, and set up rules for the red color attributes, and then the pattern has been applied to the part of the paragraph style definition in the text.
HTML tags re-definition of specific labelling rules (such as p or h1) format. Create or change h1 tags CSS rules, all set up with h1 label format will immediately update the text.
CSS selector rules (High Style) in combination define specific elements of the format, or other CSS allows for the choice of the form of the format (for example, whenever h2 title appear on the table within the cell, on the application of choice for td h2). High style can also re-id attributes contain a specific definition of the label format (for example, from # myStyle definition can be applied to all styles include property / value pairs id = "myStyle" label).
Dreamweaver can be used to study the resources more information, please refer learning Dreamweaver.
Taoba new website on the line
A total of seven. 1 2 3 4 5 6 7 8:
Tags: css entry, css language dreamweaver css






Leave a Reply