229

professional dilettante

Safari Developer Tools

There’s an easy way to get firebug-like tools in Safari.  From the terminal, run defaults write com.apple.Safari WebKitDeveloperExtras -bool true Now you can examine html and css for the page you’re on similar to how you would with firebug. Position your mouse pointer over an element you want to look at. Right-click –> Inspect Element.  [...]

There’s an easy way to get firebug-like tools in Safari.  From the terminal, run

defaults write com.apple.Safari WebKitDeveloperExtras -bool true

Now you can examine html and css for the page you’re on similar to how you would with firebug. Position your mouse pointer over an element you want to look at. Right-click –> Inspect Element.  Up pops a console, with the HTML for the element you were hovering over.  CSS for that element is to the right of the HTML. **To edit the css, you have to edit the properties and values for the html element below the “Computed Styles”.  Editing the computed styles does nothing. Below the computed styles should be the element you want.

Double click to access the property and it’s values.

To add a new property, double click an existing property and add a semi-colon after it.  Then add your new rule.

While you’re still in the current attribute (cursor is blinking), see your CSS take effect by pressing enter or click outside of the current property/value in order to save your edits.

There is an additional menu to go along with other features too.  Expose this menu by going to Preferences -> Advanced -> Check the box “Show Develop Menu in Menu Bar”.

Here are some of the other dev features apple has added to Safari, http://www.apple.com/safari/features.html#developer

Leave a Reply

Required fields are marked with an asterisk (*), you may use these tags in your comment: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Spam protection by WP Captcha-Free

Most Recent Post

It’s been a long time, I shouldn’t have left you, part 1 …

But now I’m back.All official like.I do social stuff again.I see my friends.I’m moving into my own place again.And all that adult shit.

Categories

Content © professional dilettante
Proudly powered by WordPress
Theme designed by Artisan Themes

Entries (RSS)
Comments (RSS)

22 queries.
0.504 seconds.