Css
DIV+CSS The vertical center implementation in the layout.
test content
Demo Effect:
web Teaching Network, here is the vertical center text
[Ctrl + A ALL SELECT hint: You can modify some of the code, and then run]
Objective
If you want to try the page layout without a table, instead, you can use CSS to format your Web page, which is often used to compose your Web page structure with Div, or you want to learn the standard design of Web pages, or your boss
Tags Example
label one
Label II
Adaptive width Label
Contents of First label
Contents label background of the second label 1: tag background 2: content gradient background (1 like pixels):
The contents of the
1. Check the HTML elements for spelling errors, forgetting to end tags
Even the veteran also often mistook the nested relationship of Div. You can use the Dreamweaver verification function to check for errors.
2. Check that the CSS is correct
css| Experience
In fact, last year, I have been in touch with CSSAre all followed by some web tutorials.Just to control the Link,vlink.At that time feel CSS seems to be so, for the layer whatAt that time very disdain, because the sensory layer
Css
1. Rules
Selection character
Any HTML element can be a CSS1 selector. A selector is just an element that points to a special style. For example,
P { text-indent: 3em }
The selector is P.
Class Selector
A single selector can have a different
css| shape
irregular picture Wrapping text 1 2 3 4 5 6 7 8 9 10 11 12 13 14 Moonlight is hazy and the breeze the wine to send Too many poems In a blind drink also empty and you drunk after lingering You remember Disorderly How only this
Css
CSS2 Box ModelThe box model in CSS2 is the key to the layout positioning in the design, and any selector follows the box model specification, such as , , ... The box model contains (outer patch) margin, (background color) Background-color,
The tab CSS contains the following classes, from the outside, in turn:
(1). Ajax__tab_header:a container element that wraps all of the tabs in the top of the Tabcontainer.
(2). Ajax__tab_outer:an outer element of a tab,often used to set the
In the design of the website, a lot of effects are not used in Photoshop design! The Chinese website net thinks that can use JavaScript to realize in the webpage completely also can use CSS filter to be able to design easily!
Grammar: style=
Two tips for writing CSS code
Declare CSS within a single line
Let's compare the following two pieces of code:
h2 {font-size:18px; border:1px solid blue; color:#000; background-color:#FFF;}h2 {font-size:18px;border:1px solid
First of all, a simple box mode, the so-called box mode, is the way CSS view elements, CSS will each single element as a box, as shown in the following figure:
It is called box mode because it is very similar to the box in our daily life, here is
This article mainly discusses the CSS syntax and cascading concepts, the CSS layout aspects of the content of the next discussion.
As mentioned in the previous two articles, CSS is specifically designed to be responsible for the presentation of the
This article supporting source code
The tool is very simple, write about 10 lines of code; Run Effect chart:
Code files:Unit Unit1;InterfaceUsesWindows, Messages, sysutils, variants, Classes, Graphics, Controls, Forms,Dialogs, Extctrls, Stdctrls,
Use CSS to make a news site list: UL is an unordered list in HTML, Li is the list item in the list. If no CSS defines its appearance, it is displayed by default as a list of columns, and it has a list of bullets (such as squares or black dots). CSS
Ordered unordered single label is simple, as long as you know the use of the line, but the key point I think is not to know what the label looks like, the focus is on what kind of data to use what kind of list. What kind of data is ordered and what
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service