css background origin properties tutorial
- Web html5, css3, javascript, php, sql, jquery, xml, ajax, web design & development, photo maker, SEO.
- Online web design, along with everything you need for a complete website.
- css background properties tutorial, like background-color, background-image, background-position, background-repeat, background-attachment, background-size, background-origin, background-clip.
The CSS
The property takes three different values:
- border-box - the background image starts from the upper left corner of the border
- padding-box - (default) the background image starts from the upper left corner of the padding edge
- content-box - the background image starts from the upper left corner of the content
background images origin padding-box
Here we use a combination of origin keywords: padding-box.
.demo1{background-image: url("../images/birthday1.png");
border: 14px dashed orange;
padding: 20px;
background-repeat: no-repeat;
background-origin: padding-box;
overflow:none;
color:#000;}
padding-box
background images origin content-box
Here we use a combination of origin keywords: content-box.
.demo2{background-image: url("../images/birthday1.png");
border: 14px dashed orange;
padding: 20px;
background-repeat: no-repeat;
background-origin: content-box;
overflow:none;
color:#000;}
content-box
background images origin border-box
Here we use a combination of origin keywords: border-box.
.demo3{background-image: url("../images/birthday1.png");
border: 14px dashed orange;
padding: 20px;
background-repeat: no-repeat;
background-origin: border-box;
overflow:none;
color:#000;}
border-box
All Basic HTML5
HTML is the main markup language for web pages, and its elements are the basic building blocks of web pages. HTML is written in the form of HTML elements consisting of tags enclosed in "greater than" and "less than" symbols within the content of the web page.
All Basic CSS3
CSS (Cascading Style Sheets) is a computer language that belongs to the category of style sheet languages used to control the appearance of a document written in a markup language.It is used to control the appearance of a document written in HTML and XHTML, that is, to control the appearance of a web page and a website in general.
js JAVASCRIPT
Javascript is a set of computer software and specifications developed by James Gosling at Sun Microsystems, later acquired by Oracle Corporation, which provides a system for developing application software and its development in a multi-platform computing environment.
CREATIONS
In this chapter I call creation I will present you creations html, css and javascript that are very useful and creative in a web site. You can get them ready-made with Netbax creations or create them yourself as you wish with the help provided by the Netbax editor.
NAVIGATION Bar
having easy-to-use horizontal & vertical menu is important for any web site. with css you can transform boring html menus into good-looking horizontal & vertical bars. horizontal & vertical menu is such an important part of your website. it’s how your visitors navigate to the main areas of your site and makes it easy for them to find.
WEB BUTTONS
Collection of hand-picked free HTML and CSS button code examples.In this article, we'll see some really cool looking responsive buttons using only a few lines of CSS.You are free to copy, modify and use this code as you wish.All the buttons shown here can scale accordingly to the font-size attribute, and should work in any relatively recent browser.