Tuesday, April 15, 2014

Hmm .. How cool tutorial. Incidentally I

Pseudo-Element CSS: before and: after | DesignMagz
pseudo-elements: before and: after CSS is a useful bit of magic to insert content before and after an element. Content is added via the content property can also be semacem div reserves that can be freely styling. Could be padding, border, background - like-like lo lah!
Btw, IE supports pseudo-element guns so mild open Firefox or Opera in order to ngikutin this article. Yes weve suxx, but if these Westerners said, "it will degrade gracefully". What is the point of Pseudo-Elements?
Basically anyway barker board you can enter any kind of text strings, how well you can already see in Example 1. But besides that, you can also include other objects you know (eg images), you can just give her the URL. . Boxes: before {content: url (box-top.gif); display: block; ...}. Boxes: barker board after {content: url (box-bottom.gif); display: block; ...}
Oia, I forgot. If visualized pseudo-elements: barker board before and: after to insert the content in this section: <div class="box"> <BEFORE> box-top.gif </ BEFORE> <p> some content ... </ p> < AFTER> box-bottom.gif </ AFTER> </ div> barker board
In addition to displaying static barker board text, you can also make use automatic numbering barker board counter or counters function (name). For starters we tried the first simple example: We will menomeri code examples would you like clay in Example 4 with the label "Example 1", "Example 2", and so on. html {counter-reset: codenum; }. Example: before {content: "Example" counter (codenum); counter-increment: codenum; display: barker board block; ...}
Okay, this section may need a little explanation. Note the second selector, here I make a counter codenum name that begins with the text "Example". Then run penomerannya use counter-increment property.
Keith finished! Counter-reset property in the first selector using that to start numbering from zero (this is actually a bug fix that Firefox guns ngebandel). And even if by default numbering is made with a number format, but converted into a variety of other styles also. Creating Multi-Column barker board List
Now the story you have to make a list of serial (using the ol tag donk), which should be visually separated into several columns. But that means you have to memisahnya so some guns will list and numbering sequence donk. So how do we produce this effect? html {counter-reset: listnum; } Ol li {list-style-type: none; } Ol li: before {content: counter (listnum) "."; counter-increment: listnum; }
There are times when we want to provide barker board additional information barker board about an element. Examples of tagged attributes blockquote cite the source of information about the contents usually quote guns unfortunately most browsers display the contents. This is where the pseudo-element came to help, the function barker board attr (). blockquote [cite]: after {content: "Source:" attr (cite); display: block; ...}
Tooltip JavaScript? Stale! Cobain pure CSS tooltip. Here we play with the function attr () to display barker board the contents of the title attribute of a link. a [title]: hover: after {content: attr (title); display: block; width: auto; position: absolute; z-index: 1000; top: auto; left: auto; ...}
There is definitely a problem. IE 6 guns ketolong clear and IE 7 developers also already said guns would support the pseudo-element, so the same I do not protest. Safari barker board on OS X users also seem to be nikmatin guns CSS features of this one, sorry :)
But remember aja kalo-browser CSS and open-source browser like Firefox continues to grow. Here's what I tunjukin sometimes referred to as Progressive Enhancement, ato practice fully utilize capabilities barker board of modern browsers, while tetep ensure an optimal experience for the user's browser laen.
Pupung Budi Purnama - not an expert or an expert, just a freelance web designer, living in Bandung, West Java. Wrestling in the web world since 1999, having worked in several IT companies as a designer. barker board Day-to-day, he runs a web development company from his bedroom.
Reply
May 9, 2007
Hmm .. How cool tutorial. Incidentally I 'new player' in the world of web design with css. And so, it could add css knowledge :) In the past greatness still fascinated with tabel2an anyway. But, after reading lots of articles on this website, especially about css, so start 'falling in love' deh ma css: D Salute for Risk bang n the other contributors!
Reply
Assalam, Unfortunately, when I opened this article in one cafe in Bandung, can not show you examples ituh works fine on every browser, Internet Explorer seems at the cafe are not compatible, meaning if I'll use this script, there is a possibility found similar results, not ungrateful, barker board just sa

No comments:

Post a Comment