Using the export CSS tool
Right-click the layer or object you'd like to export the CSS from in Photoshop.
Click 'Copy CSS'
Paste your CSS into a code editor like Sublime Text.
Convert your CSS into a class or ID that you can apply to your website.