Summary of vertical orientation of div height content in CSS

Source: Internet
Author: User
Tags relative wrapper

Let the contents of the div be centered vertically, but there are several ways to do so, and so I enumerate:

Line height (line-height) method

If you want to center vertically with only one line or several words, it is the easiest to make, as long as the line height of the text and the height of the container can be the same, such as:

The code is as follows Copy Code
p {height:30px; line-height:30px; width:100px; overflow:hidden;}

This code can achieve the effect of centering text vertically in a paragraph.
Two, the internal margin (padding) method
Another method is very similar to the row height method, which is also suitable for vertically centering a line or lines of text, by using padding to center the content vertically, for example:

The code is as follows Copy Code
p {padding:30px;}

This code has the same effect as the Line-height method.

Third, the simulation table method

In fact, the simulation table method is to use the declaration of elements in CSS to let block elements like tables, the use of CSS attributes display, vertical-align and so on. First look at the following HTML code:

The code is as follows Copy Code
<div id= "box" > <div id= "Content" > Center display </div> </div>

Referring to the above HTML code, let the most outer div named box appear in table style, and then let the div named content in box appear in the cell, and use Vertical-align:middle to center it vertically, so that it can simulate the way the table is displayed, The CSS code is as follows:

The code is as follows Copy Code
#wrap {height:400px; display:table;} #content {vertical-align:middle; display:table-cell; border:1px solid #FF0099;   Background: #000; width:400px; }

But this method has a disadvantage, because IE browser to a high degree of understanding will produce errors, so this method is only valid for Firefox, IE is not valid, in this case, we need to find out on ie correction method, so there is another way.
Iv. Positioning method

As the name suggests, the localization method uses the CSS localization attribute position to the element localization method, also belongs to the simulation method, but its support to IE is still good. Its HTML code is:

The code is as follows Copy Code
<div id= "box" > <div id= "sub" > <div id= "Content" > Vertical center </div> </div> </div>

This code is more than one of the previous method named Sub Div, its role is used to locate, the principle is: first let box out of relative positioning, sub relative box for relative positioning, in the box in the vertical direction of 50%, Then let the contents of the real content in sub vertical 50%, so that the content in box vertically centered effect, their CSS code is as follows:

The code is as follows Copy Code
#wrap {border:1px solid #000; background: #F00; width:400px; height:400px; position:relative;} #subwrap {Position:absol  Ute top:50%; } #content {border:1px solid #000; position:relative; top:-50%; color: #FFF;}


This code, whether in IE or Firefox, can be centered properly


Instance

Programme I:

The main principle is the standard browser with table and Table-cell layout, and then use the Vertical-align:middle center element, but IE67 does not support table layout, so use a CSS hake, is with a # start attributes

The code is as follows Copy Code
&lt;! DOCTYPE html&gt;


&lt;html&gt;


&lt;head&gt;


&lt;meta charset= "Utf-8"/&gt;


&lt;title&gt;Demo&lt;/title&gt;


&lt;style type= "Text/css" &gt;


#outer {


width:500px;


height:200px;


margin:50px Auto;


border:1px solid #CCC;


display:table;


Text-align:center;


#position: relative;


}


#middle {


Display:table-cell;


Vertical-align:middle;


#position: absolute;


#top: 50%;


#left: 50%;


}


#inner {


#position: relative;


#top:-50%;


#left:-50%;


}


&lt;/style&gt;


&lt;/head&gt;


&lt;body&gt;


&lt;div id= "outer" &gt;


&lt;div id= "Middle" &gt;


&lt;img id= "inner" src= "Logo_small.gif"/&gt;


&lt;/div&gt;


&lt;/div&gt;


&lt;/body&gt;


&lt;/html&gt;

Programme II:

Implemented with a negative margin, but the disadvantage is to know the width and height of the centered content.

The code is as follows Copy Code

&lt;! DOCTYPE html&gt;


&lt;html&gt;


&lt;head&gt;


&lt;meta charset= "Utf-8"/&gt;


&lt;title&gt;Demo&lt;/title&gt;


&lt;style type= "Text/css" &gt;


#outer {


width:500px;


height:200px;


margin:50px Auto;


border:1px solid #CCC;


position:relative;


}


#inner {


position:relative;


left:50%;


top:50%;


margin-left:-71px;


margin-top:-27px;


}


&lt;/style&gt;


&lt;/head&gt;


&lt;body&gt;


&lt;div id= "outer" &gt;


&lt;img id= "inner" src= "Logo_small.gif"/&gt;


&lt;/div&gt;


&lt;/body&gt;


&lt;/html&gt;

Finally attached to their own written, all the center layout of the example page, we do not understand can refer to

The code is as follows Copy Code

&lt;?xml version= "1.0" encoding= "Utf-8"?&gt;


&lt;! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 strict//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" &gt;


&lt;html xmlns= "http://www.w3.org/1999/xhtml" xml:lang= "en" &gt;


&lt;head&gt;


&lt;meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/&gt;


&lt;title&gt;demo:: Vertical align:middle&lt;/title&gt;


&lt;meta lang= "en" name= "author" content= "Spenser Lee"/&gt;


&lt;meta lang= "en" name= "copyright" content= "(c) 2006 Liberty Studio"/&gt;


&lt;style media= "screen" type= "Text/css" &gt;


html,body,div,h1,h2,pre,dd,ol{margin:0;padding:0;border:0}


HTML{MIN-WIDTH:779PX}


Body{background: #fff; color: #596480; Text-align:center}


div#main-wrapper{padding:12px 5px;width:769px;margin:0 Auto}


Div,code,p,h1,h2,address,dt,dd,li{font:normal 12px/1.5em Tahoma, "Lucida Grande", Helvetica,verdana,lucida,arial, " Arial Unicode ", Sans-serif,serif}


h1{font-size:22px;font-weight:bold;border-left:12px solid #324f96; background: #e0eaf4; color: #4868a9; height:4em; Line-height:4em;padding:0 12px;overflow:hidden; Text-align:left}


H2{font-size:12px;font-weight:bold;background: #c0014e; color: #fff; height:2.5em;line-height:2.5em;padding:0 24px ; overflow:hidden;margin:12px 0;text-align:left}


H2 A{color: #fff; background:transparent}


H2 A:hover{text-decoration:none}


p{margin:6px 0;padding:0 12px 0 24px;text-indent:2em;text-align:left}


P.snap-back{text-align:right}


code{display:block;font-family: "Courier New", Courier, monospace, Mono, serif;margin:12px auto;padding:12px;border:1 PX solid #596480; Color:inherit;background: #f6f6f6; text-align:left;white-space:pre;width:350px}


Strong{font-weight:bold}


Em{font-style:italic}


address{display:block;padding:0 12px;margin:12px 0;text-align:right}


dl{margin:6px 0;padding:0 12px 0 24px;text-align:left}


Dt{margin:0;text-indent:2em;font-weight:bold}


DD{MARGIN-LEFT:24PX;TEXT-INDENT:2EM}


Li{list-style:square inside None;text-align:left}


OL#TABLE-OF-CONTENT{PADDING-LEFT:24PX}


A{color: #c0014e; Background:transparent;text-decoration:none}


A:hover{text-decoration:underline}


div.demo{width:400px;margin:12px auto;border:1px solid #596480; Color:inherit;background: #ffc}


Div.demo p{text-align:left;margin:24px;text-indent:0}


p#demo-1{margin:12px auto;padding:0 12px;width:400px;text-indent:0;border:1px solid #596480 Color:inherit; Background: #ffc; Line-height:4em;height:4em;overflow:hidden}


div#demo-2{padding:50px 0}


Div#demo-4, div#demo-5{height:300px;position:relative}


Div#demo-4 Div, div#demo-5 div{position:absolute;top:50%;left:0}


Div#demo-4 p, div#demo-5 p{position:relative;top:-50%}


Div#demo-3{display:table;height:300px;border-collapse:collapse}


Div#main-wrapper&gt;div#demo-5{position:static;display:table}


Div#main-wrapper&gt;div#demo-5&gt;div{display:table-cell;vertical-align:middle;position:static}


Div#demo-3&gt;div{display:table-row}


Div#demo-3&gt;div&gt;div{display:table-cell;vertical-align:middle}


span.property{font-family: "Courier New", Courier, monospace, Mono, serif;border-bottom:1px #596480; dotted: #ffc; color: #c0014e}


p.copyright{line-height:3em;text-align:center;border-top:1px dotted #596480}


&lt;/style&gt;


&lt;/head&gt;


&lt;body&gt;


&lt;div id= "Main-wrapper" &gt;


&lt;h1&gt;demo of middled Vertical align&lt;/h1&gt;


&lt;address&gt;


Author:spenser Lee, Liberty studio&lt;br/&gt;


Originally posted on &lt;a href= "/bbs/" title= "Blueidea Forum" &gt;blueidea forum&lt;/a&gt;


&lt;/address&gt;


&lt;h2&gt;&lt;a id= "bullet-0" &gt;table of centents:&lt;/a&gt;&lt;/h2&gt;


&lt;ol id= "Table-of-content" &gt;


&lt;li&gt;&lt;a href= "#bullet-1" title= "single line Countainer with/without a fixed height" &gt;single line Countainer Wit H/without a fixed height&lt;/a&gt;&lt;/li&gt;


&lt;li&gt;&lt;a href= "#bullet 2" title= "Align multi-line container which does not have a fixed height" &gt;align multi-line Container which does not have a fixed height&lt;/a&gt;&lt;/li&gt;


&lt;li&gt;&lt;a href= "#bullet-3" title= "simulating table layout in container with a fixed height" &gt;simulating table Layo UT in container with a fixed height&lt;/a&gt;&lt;/li&gt;


&lt;li&gt;&lt;a href= "#bullet-4" title= "IE ' s Solution" &gt;ie ' s solution&lt;/a&gt;&lt;/li&gt;


&lt;li&gt;&lt;a href= "#bullet-5" title= "a perfect compounded sample" &gt;a perfect compounded sample&lt;/a&gt;&lt;/li &gt;


&lt;/ol&gt;


&lt;h2&gt;&lt;a id= "bullet-1" &gt;case One:single line Countainer with/without a fixed height&lt;/a&gt;&lt;/h2&gt;


&lt;p&gt;if you are want to display a container which only holds a single line of text, can set &lt;span class= "Prope Rty ' &gt;line-height&lt;/span&gt; property to &lt;span class= ' property ' &gt;height&lt;/span&gt; property, then set &lt; Span class= ' property ' &gt;overflow&lt;/span&gt; to Hidden.&lt;/p&gt;


&lt;p&gt;&lt;strong&gt;Sample:&lt;/strong&gt;&lt;/p&gt;


&lt;p id= "demo-1" &gt;lorem ipsum dolor sit amet, consectetuer adipiscing elit.&lt;/p&gt;


&lt;p&gt;&lt;strong&gt;core code:&lt;/strong&gt;&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;.middle-demo-1{


Height:4em;


Line-height:4em;


Overflow:hidden;


}&lt;/code&gt;&lt;/pre&gt;


&lt;dl&gt;


&lt;dt&gt;Notes:&lt;/dt&gt;


&lt;dd&gt;


&lt;ol&gt;


&lt;li&gt;i strongly recommend you with relative size in &lt;span class= ' property ' &gt;height&lt;/span&gt; and &lt;span clas S= ' property ' &gt;line-height&lt;/span&gt; property. &lt;em&gt;Why?&lt;/em&gt; you can simply set the font size larger if your browser support it. When it gets large enough, you'll be the Countainer is stretched and the &lt;span class= T is no longer equal to &lt;span class= ' property ' &gt;line-height&lt;/span&gt; property, thus, the layout are messed up. Using relative size as &lt;span class= ' property ' &gt;em, ex&lt;/span&gt; or &lt;span class= ' property ' &gt;%&lt;/span&gt; Would let your countainer stretch with the content.&lt;/li&gt;


&lt;li&gt;&lt;span class= ' property ' &gt;overflow:hidden&lt;/span&gt; is a must. &lt;em&gt;Why?&lt;/em&gt; Same as above. Just ensure &lt;span class= ' property ' &gt;height&lt;/span&gt; and &lt;span ' property ' class= &gt; are always equal.&lt;/li&gt;


&lt;/ol&gt;


&lt;/dd&gt;


&lt;/dl&gt;


&lt;dl&gt;


&lt;dt&gt;Pros:&lt;/dt&gt;


&lt;dd&gt;


&lt;ol&gt;


&lt;li&gt;fits in both &lt;span class= ' property ' &gt;block&lt;/span&gt; elements and &lt;span ' property ' &gt; Inline&lt;/span&gt; elements.&lt;/li&gt;


&lt;li&gt;capable of all 5th-gen browsers.&lt;/li&gt;


&lt;/ol&gt;


&lt;/dd&gt;


&lt;/dl&gt;


&lt;dl&gt;


&lt;dt&gt;Cons:&lt;/dt&gt;


&lt;dd&gt;


&lt;ol&gt;


&lt;li&gt;text length is limited. Max with only &lt;em&gt;one&lt;/em&gt; line.&lt;/li&gt;


&lt;li&gt;does not work down none text contents such as images and objects.&lt;/li&gt;


&lt;/ol&gt;


&lt;/dd&gt;


&lt;/dl&gt;


&lt;p class= "Snap-back" &gt;&lt;a href= "#bullet-0" title= "back top table of centents" &gt;Back&lt;/a&gt;&lt;/p&gt;


&lt;h2&gt;&lt;a id= "Bullet-2" &gt;case two:align multi-line container which does not have a fixed height&lt;/a&gt;&lt;/h2& Gt


&lt;p&gt;in this case, we should simply set a pair of the fixed equivalences to padding-top and Padding-bottom attribute. It works on both IE and Non-ie browsers.&lt;/p&gt;


&lt;p&gt;&lt;strong&gt;Sample:&lt;/strong&gt;&lt;/p&gt;


&lt;div class= "Demo" id= "Demo-2" &gt;


&lt;p&gt;lorem ipsum dolor sit amet, consectetuer adipiscing. Maecenas dignissim diam eu sem proin nunc ante accumsan, sollicitudin at, sodales sed, semper. Etiam Orci. Vestibulum magna Lectus, venenatis nec, Tempus ac, dictum vel, lorem.&lt;/p&gt;


&lt;/div&gt;


&lt;p&gt;&lt;strong&gt;core code:&lt;/strong&gt;&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;.middle-demo-2{


padding-top:24px;


padding-bottom:24px;


}&lt;/code&gt;&lt;/pre&gt;


&lt;dl&gt;


&lt;dt&gt;Pros:&lt;/dt&gt;


&lt;dd&gt;


&lt;ol&gt;


&lt;li&gt;fits in both &lt;span class= ' property ' &gt;block&lt;/span&gt; elements and &lt;span ' property ' &gt; Inline&lt;/span&gt; elements.&lt;/li&gt;


&lt;li&gt;works on none text contents as fine as text contents.&lt;/li&gt;


&lt;li&gt;capable of all 5th-gen browsers. Might need a little tune-up for the box model bug of IE5 though.&lt;/li&gt;


&lt;/ol&gt;


&lt;/dd&gt;


&lt;/dl&gt;


&lt;dl&gt;


&lt;dt&gt;Cons:&lt;/dt&gt;


&lt;dd&gt;


&lt;ol&gt;


&lt;li&gt;you can &lt;em&gt;not&lt;/em&gt; assign height in this solution.&lt;/li&gt;


&lt;/ol&gt;


&lt;/dd&gt;


&lt;/dl&gt;


&lt;p class= "Snap-back" &gt;&lt;a href= "#bullet-0" title= "back top table of centents" &gt;Back&lt;/a&gt;&lt;/p&gt;


&lt;h2&gt;&lt;a id= "bullet-3" &gt;case three:simulating table layout in container with a fixed HEIGHT&LT;/A&GT;&LT;/H2 &gt;


&LT;P&GT;CSS offers a set of very convenient display atrribute values called &lt;span class= "property" &gt;display:table&l T;/span&gt, &lt;span class= "property" &gt;display:table-row&lt;/span&gt, &lt;span class= the "property" &gt;display: Table-cell&lt;/span&gt; and other display values begin with &lt;span class= the "property" &GT;TABLE-&LT;/SPAN&GT;. It offers a way to simulate table layout the all elements. As a result, the any element with &lt;span class= "property" &gt;display:table-cell&lt;/span&gt, &lt;span class= "property" & Gt;vertical-align:middle&lt;/span&gt; and a fixed height would display exactly like a table cell.&lt;/p&gt;


&lt;p&gt;&lt;strong&gt;Sample:&lt;/strong&gt; (not being able to view the effect on IE) &lt;/p&gt;


&lt;div class= "Demo" id= "Demo-3" &gt;


&lt;div&gt;&lt;div&gt;&lt;p&gt;lorem ipsum dolor sit amet, consectetuer adipiscing. Maecenas dignissim diam eu sem proin nunc ante accumsan, sollicitudin at, sodales sed, semper. Etiam Orci. Vestibulum magna Lectus, venenatis nec, Tempus ac, dictum vel, lorem.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;


&lt;/div&gt;


&lt;p&gt;&lt;strong&gt;core code:&lt;/strong&gt;&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;.middle-demo-3{


Display:table-cell;


height:300px;


Vertical-align:middle;


}&lt;/code&gt;&lt;/pre&gt;


&lt;dl&gt;


&lt;dt&gt;Notes:&lt;/dt&gt;


&lt;dd&gt;


&lt;ol&gt;


&lt;li&gt;&lt;span class= ' property ' &gt;display:table-cell&lt;/span&gt; must work with other elements with &lt;span Class= ' property ' &gt;display:table&lt;/span&gt; value sets in order to form a literal table. Or it might cause unexceptable bugs.&lt;/li&gt;


&lt;li&gt;sadly IE series (including the latest IE 7 Beta) does not support any of &lt;span class= ' property ' &gt;display:t Able&lt;/span&gt; values, so it won ' t work in ie.&lt;/li&gt;


&lt;/ol&gt;


&lt;/dd&gt;


&lt;/dl&gt;


&lt;dl&gt;


&lt;dt&gt;Pros:&lt;/dt&gt;


&lt;dd&gt;


&lt;ol&gt;


&lt;li&gt;it has the most perfect render for &lt;span class= ' property ' &gt;vertical-align:middle&lt;/span&gt; align.&lt; /li&gt;


&lt;/ol&gt;


&lt;/dd&gt;


&lt;/dl&gt;


&lt;dl&gt;


&lt;dt&gt;Cons:&lt;/dt&gt;


&lt;dd&gt;


&lt;ol&gt;


&lt;li&gt;it latest versions of Non-ie browsers, such as Mozilla, Firefox, Netscape 8, Opera 8, and safari.& Lt;/li&gt;


&lt;/ol&gt;


&lt;/dd&gt;


&lt;/dl&gt;


&lt;p class= "Snap-back" &gt;&lt;a href= "#bullet-0" title= "back top table of centents" &gt;Back&lt;/a&gt;&lt;/p&gt;


&lt;h2&gt;&lt;a id= "bullet-4" &gt;case Four:ie ' s solution&lt;/a&gt;&lt;/h2&gt;


&lt;p&gt;since IE is a lame browser when it comes to anything, so can ' t use the solution above simply because IE does Not recognize it in all. However, &lt;strong&gt;there has been nothing yet you can don't code with CSS if you have already coded it with table&lt;/st Rong&gt;. It even offers you possibility to layout your page, tables can not do!&lt;/p&gt;


&lt;p&gt;so What ' s the solution for IE? Like what we always do:hit IE "s back with the BUGS it offers!&lt;/p&gt;


&lt;p&gt;&lt;strong&gt;Sample:&lt;/strong&gt; (for your are able to view the correct result is only on IE) &lt;/p&gt;


&lt;div class= "Demo" id= "Demo-4" &gt;


&lt;div&gt;&lt;p&gt;lorem ipsum dolor sit amet, consectetuer adipiscing. Maecenas dignissim diam eu sem proin nunc ante accumsan, sollicitudin at, sodales sed, semper. Etiam Orci. Vestibulum magna Lectus, venenatis nec, Tempus ac, dictum vel, lorem.&lt;/p&gt;&lt;/div&gt;


&lt;/div&gt;


&lt;pre&gt;&lt;code&gt;.middle-demo-4{


height:300px;


position:relative;


}


. middle-demo-4 div{


Position:absolute;


top:50%;


left:0;


}


. middle-demo-4 Div div{


position:relative;


Top:-50%;


left:0;


}&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;see? Don T ask me why it worked. This is based on years of study in IE ' s own stupid layout model and it works very the the box even the IE5 th hack. I won ' t tell you the theory behind. It's my top secret, with which I solved a lot of other cross browser layout problems, and I ' m not going to share it with Y Ou. But you are free to use this IE hack It's kinda handful in most occassions.&lt;/p&gt;


&lt;dl&gt;


&lt;dt&gt;Pros:&lt;/dt&gt;


&lt;dd&gt;


&lt;ol&gt;


&lt;li&gt;the only perfect vertical align to IE. It works even better then add automatic &lt;span class= ' property ' &gt;padding&lt;/span&gt;s.&lt;/li&gt;


&lt;/ol&gt;


&lt;/dd&gt;


&lt;/dl&gt;


&lt;dl&gt;


&lt;dt&gt;Cons:&lt;/dt&gt;


&lt;dd&gt;


&lt;ol&gt;


&lt;li&gt;after all it ' s a CSS hack. We can avoid it if not as ie.&lt;/li&gt;


&lt;/ol&gt;


&lt;/dd&gt;


&lt;/dl&gt;


&lt;p class= "Snap-back" &gt;&lt;a href= "#bullet-0" title= "back top table of centents" &gt;Back&lt;/a&gt;&lt;/p&gt;


&lt;h2&gt;&lt;a id= "bullet-5" &gt;case five:a Perfect compounded sample&lt;/a&gt;&lt;/h2&gt;


&lt;p&gt;here ' s perfect compounded solution on vertical centering this works on almost all latest


&lt;p&gt;&lt;strong&gt;Sample:&lt;/strong&gt; (this works on almost all browsers) &lt;/p&gt;


&lt;div class= "Demo" id= "Demo-5" &gt;


&lt;div&gt;&lt;p&gt;lorem ipsum dolor sit amet, consectetuer adipiscing. Maecenas dignissim diam eu sem proin nunc ante accumsan, sollicitudin at, sodales sed, semper. Etiam Orci. Vestibulum magna Lectus, venenatis nec, Tempus ac, dictum vel, lorem.&lt;/p&gt;&lt;/div&gt;


&lt;/div&gt;


&lt;p&gt;i ' m not going to give your full code of this one. But it ' s not difficult to write it yourself, with the solution of case 3 and 4, and a little knowledge in Ie/non-ie CSS ha Ckers. And actually the hacking style isn't limited, so I don ' t want to force your to with my hacking style neither. Stop being lazy, and write the code yourself!&lt;/p&gt;


&lt;dl&gt;


&lt;dt&gt;browser capability:&lt;/dt&gt;


&lt;dd&gt;


&lt;ol&gt;


&lt;li&gt;works on:ie6+, Mozilla 1.5+, Netscape Navigator 7+, Opera 7+, Firefox 1.0+ and Safari 1.0+&lt;/li&gt;


&lt;li&gt;on IE5, you might need to apply the box model hacker to make the height correct.&lt;/li&gt;


&lt;li&gt;untested:webomini, konqueror.&lt;/li&gt;


&lt;li&gt;fails On:other browsers not reffered in the list above.&lt;/li&gt;


&lt;/ol&gt;


&lt;/dd&gt;


&lt;/dl&gt;


&lt;p class= "Snap-back" &gt;&lt;a href= "#bullet-0" title= "back top table of centents" &gt;Back&lt;/a&gt;&lt;/p&gt;


&lt;p class= "Copyright" &gt;copyright &amp;copy; Spenser Lee, 2006 Liberty studio&lt;/p&gt;


&lt;/div&gt;


&lt;/body&gt;


&lt;/html&gt;

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.