Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
My First Ever PSD To CSS.
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Markshall" data-source="post: 438194" data-attributes="member: 1872"><p>Nice work for your first conversion.</p><p></p><p>I've forked it and made it JavaScript-less. So the animation when you hover over the button to show the sub-menu is done with pure CSS.</p><p></p><p><a href="https://codepen.io/Markshall/pen/gdrQaB" target="_blank">https://codepen.io/Markshall/pen/gdrQaB</a></p><p></p><p>Feel free to steal it.</p><p></p><p>I also noticed you had your font as "Helvetica Neue Bold". It doesn't work like that unfortunately. You have to set it as just the font-face and then tell elements to have a different font-weight. You'll notice under <span style="font-family: 'Courier New'">.item</span>, I've set a <span style="font-family: 'Courier New'">font-weight</span> of <span style="font-family: 'Courier New'">600</span> to make it appear bold like in the original picture you've shown.</p><p></p><p>I've tidied up your code too, you had elements set you didn't need to set. The button with an icon as it's main text has a class of <span style="font-family: 'Courier New'">.with-icon</span> to give it a different <span style="font-family: 'Courier New'">padding</span> setting.</p></blockquote><p></p>
[QUOTE="Markshall, post: 438194, member: 1872"] Nice work for your first conversion. I've forked it and made it JavaScript-less. So the animation when you hover over the button to show the sub-menu is done with pure CSS. [URL]https://codepen.io/Markshall/pen/gdrQaB[/URL] Feel free to steal it. I also noticed you had your font as "Helvetica Neue Bold". It doesn't work like that unfortunately. You have to set it as just the font-face and then tell elements to have a different font-weight. You'll notice under [FONT=Courier New].item[/FONT], I've set a [FONT=Courier New]font-weight[/FONT] of [FONT=Courier New]600[/FONT] to make it appear bold like in the original picture you've shown. I've tidied up your code too, you had elements set you didn't need to set. The button with an icon as it's main text has a class of [FONT=Courier New].with-icon[/FONT] to give it a different [FONT=Courier New]padding[/FONT] setting. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
My First Ever PSD To CSS.
Top