When using the background picture, often encounter the background picture where the location is not what we want, how to set the background image position? The following is a description of the use of the background image position background-position in
I believe that many children's shoes who like to study the webpage interface have encountered a wonderful phenomenon: many pictures and materials on the webpage are merged into one picture.
At first, when I imitated the website, I often encountered this phenomenon. At that time, I didn't know what technology it was at. The whole picture material of people would not be used. I could only use PS to cut the image and cut it into a single
The complete tutorial (background-position application) for CSS to take a small image from a large image (conversion) and backgroundposition
I think that the application of background-position is very easy to understand. Make a mark.
I believe that many children's shoes who
Background-position:x y;The percent positioning is not intuitively visible and needs to be calculated.Background-position percent Calculation formula:(Container width-width of background image) *x%=xpx(Container height-height of background image) *y%=ypxThe pictures we used in the previous section can also continue to do exercises:DOCTYPE HTML>HTMLLang= "en">Head
Position two parameters: horizontal position, vertical position----------The position refers to the background picture relative to the foreground object's 1.background:url (. /image/header.jpg) no-repeatleft top;/* equivalent to 0% 0%*/ represents the
1. Boundary spacing: The distance between two elements of a borderYou can specify top right and bottom left, if you write margin: A value that is the upper right bottom left margin is a value.Example:Tip: If you do not write margin, the default will be 0px, that is, no border spacing, is the original picture position2. Fill attribute: The size of the space inside the borderExample:3. Specify a background picture for any elementTIPS1: Find the URL of the imag
Recently in the process of writing CSS, I found that the background-position verification of the organization has been adjusted, although only a small change, but may affect the coding habits of many people, so I decided to say.
1. Keywords, such as: Background-position:top right;
Advantages: Intuitive, high availability, consistent performance in each browser.Disadvantage: Missing interval size. Three ve
Town Field Poem:The Pure Heart sentiment wisdom language, does not have the world name and the benefit. Learn water under the hundred rivers, give up arrogant slow meaning.Learn to have a small return to feed root, willing to cast a conscience blog. Sincere in this writing experience, willing to see the text to inspire.——————————————————————————————————————————CodeText introduction excerpt from "Baidu Encyclopedia"Result——————————————————————————————————————————The essence of the blog, in the te
The default value is 0% 0%. In this case, the background image is located in the upper left corner of the content area of the object that does not include the patch.If only one value is specified, the value is used for abscissa. The default ordinate value is 50%. If two values are specified, the second value is used for ordinate.If the value is set to right center, right will overwrite the center value as the abscissa value, so the background
The position tutorial of CSS, which is the easiest to understand. The position and positioncss of CSS are illustrated in ten steps.I think I have met CSS positon as a Web maker, but do I really know about it? I won't say that. At least I don't know much about the running of
static. Therefore, select the parent div for reference.
Example 4: fixed absolute position, which does not occupy the Document Stream position relative to the window. Body>
CSS + DIV positioning attribute position
The disadvantage is that it is troublesome, and it is not conducive to modifying the overall layout. D
Position of CSS positioning: position of css positioning
In front-end webpage layout, we usually use the float attribute to locate the position of webpage elements on the same plane. However, the position attribute in
Position of CSS positioning: position of css positioning
In front-end webpage layout, we usually use the float attribute to locate the position of webpage elements on the same plane. However, the position attribute in
CSS Positon, I want to be a web-maker to have encountered, but as to whether it really understand it? I would not have said that, at least I do not know very well the operation of its kernel. Today in the Learn CSS positioning in Ten steps article 10 steps introduced the CSS "position"Static, relative, absolute, float"
Css knows (11) -- position, css knows 11 position1. Introduction
This article will introduce position in an article. Before learning position, we should think about the question: under what circumstances should we locate it? What kind of requirements cannot be met without po
Css-default position of the Child tag in the parent tag and css-default position of the tag
If top and left are not set for Label B. They have a default value.
Top and left are located based on width and height.
Front-end development required: CSS Position resolution, must know position
People tend to use positioning methods when they are new to layout. Because the concept of positioning seems easier to grasp. On the surface, if you specify the position of a block element, it will be located there. However, positioning is a li
resolutions. In this case, we can use the following methods to deal with them:Finally, let's talk about the background-position attribute. The background-position attribute is used to determine the position of the background image. Background-position: center 25px; what doe
position an element relative to the browser window. Set the shape of an element This example shows how to set the shape of an element. This element is clipped to the shape and displayed. Z-indexz-index can be used to place an element after another element. Z-index the elements in the above example have changed Z-index.
Here's a description of the position attribute in
About positioning in CSS using sub-parent (subclass absolute position and parent class relative position)
Foreword: Recently in learning Javaweb front-end CSS, about the positioning of CSS may sometimes be used to the sub-father, due to my limited level if there is
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.