rounded-corners

youtube embedded video as iframe with border-radius

早过忘川 提交于 2019-12-01 09:54:31
问题 I got a problem I absolutely don't understand. I got a website with YouTube video iframe and want to round the borders via CSS. On http://www.wunschpreisdeal.de/empfehlung/winterreifen-profiltiefe-und-zustand-noch-ok the video is correctly embedded with rounded borders but that's not the case on http://www.wunschpreisdeal.de/mitglieder-empfehlung/the-axe-effect. They both have the same CSS, I haven't found any difference between those integrations. Can anyone help me? If you need some more

image with shadow and rounded edges in java swing

半腔热情 提交于 2019-12-01 09:40:39
I'm trying to add an image to this RoundedPane with rounded corners and shadow. But I fail to get it. I made ​​the panel extends from this class public class JPanelConFondo extends JPanel { private Image imagen; public JPanelConFondo() { } public JPanelConFondo(String nombreImagen) { if (nombreImagen != null) { imagen = new ImageIcon(getClass().getResource(nombreImagen)).getImage(); } } public JPanelConFondo(Image imagenInicial) { if (imagenInicial != null) { imagen = imagenInicial; } } public void setImagen(String nombreImagen) { if (nombreImagen != null) { imagen = new ImageIcon(getClass()

How can I get multiple borders with rounded corners? CSS

点点圈 提交于 2019-12-01 09:15:15
Any idea on how I can get round corners work with multiple borders? The box will be dynamic, depending what will be inputed into the box, so I can't add static width or height. body { background: #d2d1d0; } #box { border-radius: 15px; background: #f4f4f4; border: 1px solid #bbbbbb; width: 100%; height: 100%; margin: 10px auto; position: relative; } DIV#box, #box:before, #box:after { -moz-border-radius: 15px; border-radius: 15px; } #box:before { border-radius: 15px; border: 1px solid white; width: 99%; height: 94%; content: ''; position: absolute; } #box:after { border-radius: 15px; content: ''

Can you do CSS rounded corners in IE without using images?

自古美人都是妖i 提交于 2019-12-01 09:14:22
问题 Is there any way to make a rounded border in IE without using images using CSS only, or any other easy way? I have checked other questions like this on Stack Overflow, but I’m not getting an exact way. 回答1: Keep as bookmark : http://www.smashingmagazine.com/2010/04/28/css3-solutions-for-internet-explorer/ ;) For border-radius specifically, see http://code.google.com/p/curved-corner/ 回答2: You can do on for I9 only as it supports border-radius css property. Otherwise it seems to be difficult

How to create a JButton extension with rounded corners?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-01 06:34:44
问题 This is a continuation of the question "Java rounded Swing JButton". I have searched for an extension of javax.swing.JButton which will inherit all runtime behavior and just override drawing of the corners. Using the code given by noah.w on sun forums page the result looks like this: I'd like to be able to have the same gradient in the background, on mouse over change etc. Does anybody know how to do that? Code which creates the Java Swing window from the picture is: public class XrButton

How can I get multiple borders with rounded corners? CSS

ぐ巨炮叔叔 提交于 2019-12-01 06:23:52
问题 Any idea on how I can get round corners work with multiple borders? The box will be dynamic, depending what will be inputed into the box, so I can't add static width or height. body { background: #d2d1d0; } #box { border-radius: 15px; background: #f4f4f4; border: 1px solid #bbbbbb; width: 100%; height: 100%; margin: 10px auto; position: relative; } DIV#box, #box:before, #box:after { -moz-border-radius: 15px; border-radius: 15px; } #box:before { border-radius: 15px; border: 1px solid white;

border-radius doesn't work on IE10

戏子无情 提交于 2019-12-01 04:25:01
I need to have a container "DIV" with rounded corners. The following code works perfectly on all browsers except my IE10. I have no clue how to do in order to make it work. #about-kader { width: 200px; height: 180px; float: left; margin: 0px auto; background-color: #9bafc4; padding: 3px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; -ms-border-radius: 5px; behavior: url(border-radius.htc); } And here's the HTML part, please: <div id="about-kader"> ... ... ... </div> There is no way to make any round corner visible on IE10. The version I

svg css rounded corner not working

寵の児 提交于 2019-12-01 02:42:48
I have an SVG file that I am applying CSS to. Most rules seem to work, but when I apply rules about the rounding of corners (rx:5; ry:5) it has no effect. 'Inline' style rules work, but I'm having no luck with embedded and external style sheets: <svg ...> <defs> <style type="text/css" > <![CDATA[ rect{ rx:5; ry:5; } ]]> </style> </defs> <rect height="170" width="70" id="rect7" x="0" y="0" /> </svg> Any idea where I am going wrong? rx and ry are regular attributes rather than presentation attributes. Only presentation attributes can be styled by CSS. The various regular/presentation attributes

border-radius doesn't work on IE10

断了今生、忘了曾经 提交于 2019-12-01 02:11:03
问题 I need to have a container "DIV" with rounded corners. The following code works perfectly on all browsers except my IE10. I have no clue how to do in order to make it work. #about-kader { width: 200px; height: 180px; float: left; margin: 0px auto; background-color: #9bafc4; padding: 3px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; -ms-border-radius: 5px; behavior: url(border-radius.htc); } And here's the HTML part, please: <div id="about

How can I get NSScrollView to respect a clipping path

走远了吗. 提交于 2019-12-01 01:35:25
I am trying to make a NSScrollView with clipped corners, similar to the Twitter app: I have a NSScrollView subclass which I added the following code: - (void)drawRect:(NSRect)dirtyRect { NSBezierPath *pcath = [NSBezierPath bezierPathWithRoundedRect:[self bounds] xRadius:kDefaultCornerRadius yRadius:kDefaultCornerRadius]; [path setClip]; [super drawRect:dirtyRect]; } I expected the content of the NSScrollView to have rounded corners, but it is not respecting the clipped path. How can I do this? UPDATE & CLARIFICATION I know how to make a custom NSScroller , I know how to make it transparent