Re: stripped down webview
Re: stripped down webview
- Subject: Re: stripped down webview
- From: Jens Alfke <email@hidden>
- Date: Sat, 18 Aug 2012 20:43:08 -0700
On Aug 18, 2012, at 11:29 AM, Koen van der Drift <email@hidden> wrote:
>> This is a good start. I believe "user stylesheet" is the term of art for a local override stylesheet. From a quick Google, the relevant APIs are on the WebPreferences class: -setUserStyleSheetEnabled: and -setUserStyleSheetLocation:. You could start with one of the common "reset" stylesheets and customize it from there.
>
> I tried that, but the settings in my css file are not used.
That will establish default values, but values in page stylesheets will still override them. If you want your values to override those on the page, add the "!important" modifier to them.
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden