Use CSS for flexible Column Layout
I. Opening
Most of the current websites use column layout. The common situations are as follows:
InASP. NETThe duplicate parts of each page can be written inMasterpage(For exampleHeader,FooterAndBody).
From: http://www.qianduan.net/firefox-plug-ins-recommended-css-usage.html
CSS usage is a Firefox extension based on firebug. It can be used to view the usage of CSS on the page and clearly view the actual usage of all the rules in the CSS file
Ie5 and later versions support the use of expressions in CSS to associate CSS attributes with javas alias expressions. the CSS attributes here can be inherent attributes of elements or custom attributes. That is to say, the CSS attribute can be
ArticleDirectory
I. Preface
2. Some past practices I know
3. How do I structure the website CSS?
Iv. Applicability
From http://www.zhangxinxu.com by zhangxinxuAddress: http://www.zhangxinxu.com/wordpress? P = 944 I. Preface
The following is CSS.Code:
Body {Margin: 0px;Padding: 0px;}Div # header {Clear: both;Height: 50px;Background-color: Aqua;Padding: 1px;}Div # Left {Float: left;Width: 150px;Background-color: red;}Div # right {Float: right;Width:
In this articleArticle, We will use css3CodeMake exquisite buttons.
Simple HTML code
Basic CSS code Rendering
Css3 code Rendering
Css3 background color
Make the button bigger
Effect of passing and clicking
Step 1: HTML code
I. Use the style attribute
Add the style attribute directly to individual component labels.
For example:The advantage of this usage is that the style can be applied to various labels smartly, but the disadvantage is that there is no "uniformity"
Tired of adding border decoration to each image on the image processing software? Let CSS help you! Hey, let's take a look at the following images. It's very convenient, isn't it? Text block Application Effect
Narrow
This is the text that goes in
CSS naming rules
Example source code
[Www.52css.com] Header: Header
Content: content/containe
End: footer
Navigation: nav
Sidebar: sidebar
Column: Column
Overall Layout width of the page peripheral control: wrapper
Left right center
Logon entry:
When we are in the row and column, we often see a line of text exceeding the width, and many people use it.
Overflow: hidden hides out-of-the-box content.CodeWhen the text exceeds the limit, what is the ellipsis?
The answer is yes
Use:
Because of project requirements, it is easier to use Ajax tabcontainer, but its default style is different from our existing style, so I checked the information and compiled a simple style.
:
CSS style:
Code in aspx
Height = "121px" width = "
During webpage creation, we often encounter min/max-width and min/max-height under IE6, which is one of the biggest headaches for web designers, the following methods can solve these problems and are relatively simple. Of course, if you still have a
Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > Html Xmlns = "Http://www.w3.org/1999/xhtml" Lang = "ZH-CN" > Head > Meta HTTP-equiv = "Content-Type"
Participating browsers: IE6/IE7/IE8/ff3/op9.6/sf3/chrome2
Operating System: Windows
The first release of the blue ideal classic Forum. For more information, see the source.
This time, the cascading menu for the project uses the pure CSS
Document directory
Making the Association
Restyling for print
There are 10 defined media types:
You can define CSS to control whether the element needs to be displayed during web printing.
For example:@ Media Print
{}{
# Hidebtn {display: None}
In projects, we often encounter the need to view the details of all fields in the data table. Generally, we will display some necessary fields such as ID, then, other fields are summarized in the detailview or another page, and a linkbutton for
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