Click here to download the book ppt
Click here to download the source code of this book
Address: http://learning.artech.cn/20070501.css-div-tutorial-content-table.html
Welcome to the cutting-edge video classroom. The following lists the CSS/DIV webpage design video tutorials.This set of video tutorials were created in
following declaration must be made on the top of HTML:Code:2. Universal float closure (very important !) You can use this to solve the incorrect spacing when multiple Div alignment occurs,For details about the principle of clear float, refer to [How to clear floats without structural markup]Add the following code to global CSS and add class = "Clearfix" to the DIV
problem, with!important will IE7 do incompatible, very headache, in thinking, there is no way to do only under the FF, I used this method, I feel that the trial is bad, is to precede the attribute with a symbol such as: *, ,¥,#,@,-,+, the attribute is only IE browser is recognized, and FF is not recognized, the method is as follows (note the order of signed attributes and unsigned attributes)HEIGHT:100PX;/*FF Display 100 High */+height:120px;/*ie678 Display 120 High */5. Sometimes, in the layou
important !) You can use this to solve the incorrect spacing when multiple Div alignment occurs,For details about the principle of clear float, refer to [How to clear floats without structural markup]Add the following code to global CSS and add class = "Clearfix" to the DIV to be closed.Code:
3. Other compatibility skills (useful)1. Setting padding for
can write a CSS file like this: #1 {color: #333;}/* Moz */
* Html #1 {color: #666;}/* IE6 */
* + Html #1 {color: #999;}/* ie */The font color in Firefox is #333, And the font color in IE6 is #666, in IE7, the font color is displayed as #999. 2. The main style definition of the center problem in the CSS layout is as follows: body {text-align: center ;}
# Center {margin-Right: auto; margin-left: auto;} Descr
1, Div Two column row two-column Div layout How to implement, div two column side-by-row two-column div layout tutorial Solution
Two div boxes are implemented side-by, one line shows only two column div layouts, and the width widt
elements in your div box, as follows:
The code is as follows
Copy Code
. Example{width:300px;float:left;margin-left:10px;display:inline;overflow:hidden}
If you write this, you can say that the above problem is completely solved.2 use clear to solve line-changing problemsThis is also common, is that our definition div may no
to achieve a variety of positioning. The div box model structure is used to divide the parts into different blocks, then the position, size, frame, inner and outer margins and arrangement of the box model are defined with CSS.
CSS is an abbreviation for English cascading s
(line boxes). Anonymous Block Box (Anonymous block boxes): DIV > Some Text P > More text DIV >As above, the div appears to contain inline (in-line) content and block boxes, in fact, according to CSS rules, in the some text around is an anonymous block
are difficult to parse complex tables, and style revisions are also extremely uncomfortable.
Div + CSS: In this layout, div carries the content, while CSS carries the style. The separation of content and style has a great impact on the WYSIWYG traditional table editing method. In particular, it is difficult for design
This article uses Box's legend, to the CSS box (box mode) analysis, has established the clear model for the study CSS reader. The box mode defined by the consortium is as follows: Width and height define the breadth and height of the content section, and the width of the pa
, but it will not damage the box. Padding is filled, as if we are in order to ensure that the contents of the box is not damaged, filled with something, such as foam or plastic film, filled with a lot of small, soft and hard, the response in the Web page is the size of padding. and the outer layer is the border border, because the border has the size and color properties, the equivalent of the
on IE, you can put a Then CSS is designed like this:# Container {Min-width: 600px;Width: expression (document. Body. clientwidth }The first Min-width is normal, but the width of line 2nd uses JavaScript, which is recognized only by IE, which will make your HTML document not formal. It actually achieves the minimum width through javascript judgment.
7. padding and margin of UL and form labels
UL labels have padding values by default in FF, while only
. Unordered list ul add some links:
52css.com
Div CSS Tutorials
CSS Layout instances
Web standardization
1, we have applied two classes of Woaicss_title, WOAICSS_TITLE_BG1 for the UL, the first class can be UL and Li,
Link for overall appearance control. To achieve the overall beautification effect. We have also specif
In other words, there are some inexplicable excitement about blogging ... these days have been busy time to catch the beef brisket video, late CSS box, please understand. CSS box, at first it sounded a bit tall on the bright. Later on, it was easy to understand what was found. It 's easy to be functional, but it's not
vertical center
Horizontal center includes two situations:Horizontal center of block-level elements: margin: 0px auto;Horizontal center of text content: text-align: center;Vertical center:You can set the height andThe Row Height and style attributes are consistent, for example:Div {Width: 400px;Height: 400px;Line-height: 400px;/* The Row Height is the same as the div height */}5. CSS attributes related to
width
Min-width is a very convenient CSS command, which can specify that the element is at least or less than a certain width, so as to ensure correct layout. But IE does not recognize this, but it actuallyWidth is used as the minimum width. To enable this command to be used on IE, you can put Label, specify a class for the DIV, and CSS is designed as follows:#
="go to Shanghai premature ejaculation treatment Hospital"> DIVCSS5a>h2>
From the above code can be obtained, need to analyze that layout using H2 tags for layout, while using class= "Home".Remember the corresponding ID and class name, here is named "Home" by class, you can think of CSS must use ". home{...}" Selectors.2-3: Open CSS CodeIf the CSS
There are three different effects, which are common warnings. Confirm to cancel them. In this example, jqueryalertifyjs is used with an input box, go to the demo page to view the css file. also go to the demo page to view the jquery beautification pop-up prompt. The beautiful Dialog box shows three different effects of
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.