html - css how do I realize cut-out borders? -
i have page mockup.

how realize cut-out border on left?
thanks
there several possible solutions question:
just use triangle graphic.
easy, obvious answer. not looking for, though.use filled in square div, , rotate 45 degrees.
works, overkill simple. plus rotation can bit painful in older versions of ie (it works,filtersyntax horrible, , default rotation point different other browsers, can hairy right). effort simple effect this.use css triangular-borders hack make triangles.
it's bit hacky, works well. read more here: http://jonrohan.me/guide/css/creating-triangles-in-css/use svg.
svg xml-based vector graphics format. trivial create in svg. great solution, except ie8 , earlier don't support svg. fortunately though, support vml, competing format (ie9 supports svg, vml going die, need deal time being). solution use 1 of javascript libraries svg-vml conversion on fly. there's several of them - try 1 example: http://code.google.com/p/svg2vml/. or can use raphael library draw in either svg or vml using javascript.
which 1 of these solutions use you; depends on browsers want support, whether you're happy using javascript, whether want avoid adding unnecessary graphics, etc.
i suggest css triangular borders hack best solution time being. in future, svg better answer, fact ie8/7/6 don't support bit of killer.
the problem triangular borders hack doesn't work in 100% ie6 (see page linked above details on that), it's usable. , frankly, i'd drop support ie6 anyway.
Comments
Post a Comment