Skip navigation

Lost password? | Help

Browsers

a little personal bugs and features collection :)

Posts tagged with "css"

Rounded corners in SVG: making not all corners round

, , , ...

There is border-radius CSS3 property that makes the angles of the block rounded. Mozilla based browsers support it with vendor prefix -moz- for ages: -moz-border-radius:2em. Safari also supports it but with -webkit- prefix. Opera doesn't support this property, but unlike Safari and FF it supports SVG images as backgrounds (since 9.5), so we can rewrite the block styles in SVG and place the image as block background. But sometimes not all of the corners of the block should be rounded...

Read more...

How to remove <hr> border in MSIE6

,

Code:
<hr id='fline'>

CSS:
#fline{
height:20px;/*bg picture height*/
background:transparent url(images/line_11.jpg) top repeat-x;
border:none
}

It makes 1 pixel gray border in MSIE6.
To make one-color line without an image in IE one has to apply color:#color, but something like color:transparent don't work.
After my shaman dances I came to this hack:
*html #footer{
position:relative;/*to position clipped element*/
}
*html #fline{
height:22px;
clip:rect(1px auto 20px 1px);
position:absolute;
bottom:0;
width:100%;
left:0;
margin:0 -1px;/*to clip right borders*/
}

It works, but if I try to add something like padding-bottom:20px to *html #fline this hack doesn't work...

Btw, clip:rect is the most incorrect property in css2, because its length values are not like padding/margin/border ones (as it were the most logically): right and bottom values are calculated from left and top, not from the side they indicate.
December 2009
S M T W T F S
November 2009January 2010
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31