UIWebview : How to set content size rounded corner?
===

How can I restrict webview contents to rondedrect? and how can I restrict it to not go out from border?

![enter image description here][1]


  [1]: http://i.stack.imgur.com/Kb4J8.png

here is code:


    myWebView = [[[UIWebView alloc] initWithFrame:webFrame] autorelease];
    myWebView.backgroundColor = [UIColor whiteColor];
    myWebView.scalesPageToFit = YES;
    myWebView.layer.cornerRadius = 20;
    myWebView.layer.borderWidth = 3;
    myWebView.layer.borderColor = [[UIColor whiteColor] CGColor];
    
    myWebView.autoresizingMask = (UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight);
    myWebView.delegate = self;
    [self.navController.view addSubview:myWebView];

