indiePaper

Full Version: Border and Outline (and other thoughts on CSS(3)?)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
This thread might not be very interesting, or new. But this are the kind of things people that happends to people that does not google every word and that likes to think and over-complicate an issue (like me Tongue)

So about a month ago I knew about the existence of outline as a CSS property. And I was like, "so is just another border?". But I realized the diference like two weeks ago! The border is like inside the element, while the outline is outside (oh that's huge). But anyways, the borders get rounded when you use border-radius, but the outline doesn't.

In the design I was workin on, the ideal thing would be to have a border and an outline in order to achieve the 2px pop technique w/o any images. But it was rounded with CSS. So it was not possible, because the outline would remain as an square. So I thought of others way of making it, the first one was to add an extra wrapper, but I'm not killing my semantics for this, so it was a no. Then, it was the CSS3 borders with images... it'd make the trick, but not in IE (and other browsers) and this same property would make many others things possible, even an alternate CSS3 method of making rounded corners, and many other neat things with a little of imagination. So, I could only make a 1px*1px white image (that would make the line to contrast with the dark border) and set is as background of the element, I set it to repeat-x and be 1px away of the top. And there it was done, but I had to use another image, another HTTP request, slower.

So that lead me to think, when we'll be able to work with CSS3 and unleash our creativity with it. Having faster loads, and cleaner markups and CSS. I wanted to go the CSS3 conference in New York that took place this year Tongue

But, there's also some light on the no-so-far-away future, Microsoft recently announced IE9 would have CSS3 support Big Grin The bad thing is, when will people upgrade? Probably never, or when their computers completely crashes and they are forced to buy new licenses.
The way I do this is I separate it in images and make a border that way. Out of 8 images.
borders uses image? Smile i might try it soon.. thanks combus.. Big Grin i really learn a lot from you buddy! Smile
Well, not on CSS 2.1. But borders can use images in CSS3, it's actually pretty cool since it give your the chance to make a whole bunch of things Big Grin (and keeping a very clean markup)
one example of image border done @ mybbsource blue rush theme, right? Smile
its pretty cool.. i like the new concept done by CSS3..
Not exactly, I did use border and outline there though. But table elements can't have an outline, so I had to wrap the tables into divs to make the effect.

And yeah, I really like the many things you can do with CSS3, but I'm not as exited as a major part of design community on CSS animations. I prefer to use JS on that, since it's a bit more supported and I already know how to make it Tongue
cool.. give it a shot then.. and let see how it works Smile nice idea combus!
W każdym domu najważniejszą rolę pełni oświetlenie. To ono pozwala przyrządzić przestrzeń idealną do relaksu, zabawy, spotkań spośród przyjaciółmi. Adekwatnie dobrane oświetlenie nada wnętrzom nastrojowego klimatu, natomiast plus optycznie je powiększy. W naszym sklepie znajdziecie rozmaite lampy tudzież osprzęt oświetleniowe. Nasze produkty skierowane są do osób, które oczekują zaskakującego efektu światła. Nasz asortyment obejmuje również oświetlenie aż do dużego pokoju, pokoju dziecięcego, gdy oraz aż do łazienki. Lecz tuż przy nas znajdziecie lampy podłogowe, ścienne, sufitowe zaś stołowe. Wszystkie wyróżniają się wysoką jakością wykonania, nietuzinkowym stylem a oryginalnymi formami. Ze względu temu do perfekcji komponują się spośród wnętrzami urządzonymi w różnych stylach. Oferujemy lampy tradycyjne oraz niezwykle nowoczesne, klasyczne a obficie zdobione, w szerokiej gamie kolorystycznej. W stosunki od oczekiwań tudzież potrzeb, możecie wybierać modele dające ciepłe i rozproszone światło, ewentualnie takie, które zapewniają dobre oświetlenie ogólne albo punktowe. Możecie zaczerpnąć po lampy wykonane spośród papieru czerpanego, glin, ze stali względnie szkła. Dostarczamy dodatkowo niezbędne dodatki oświetleniowe. Dajemy wam bezmiar potencjał na oryginalne dekorowanie przestrzeni, w których funkcjonujecie na co doba.
Pages: 1 2 3
Reference URL's