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
IntactDev: Coming Soon
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: 217918" data-attributes="member: 1872"><p>I like it, it's pretty nice.</p><p> </p><p>But you could've saved yourself a few lines of code in your CSS. At the minute you have:</p><p> </p><p>[code].social-facebook {</p><p> background: url(../images/social/facebook.png) no-repeat;</p><p> width: 64px;</p><p> height: 64px;</p><p> float: left;</p><p></p><p> padding-right: 150px;</p><p>}</p><p></p><p>.social-twitter {</p><p> background: url(../images/social/twitter.png) no-repeat;</p><p> width: 64px;</p><p> height: 64px;</p><p> float: left;</p><p></p><p> padding-right: 150px;</p><p>}</p><p></p><p>.social-youtube {</p><p> background: url(../images/social/youtube.png) no-repeat;</p><p> width: 64px;</p><p> height: 64px;</p><p> float: right;</p><p>}[/code]</p><p></p><p>What you could do is:</p><p></p><p>[code].social-icon {</p><p> width: 64px;</p><p> height: 64px;</p><p> float: left;</p><p> padding-right: 150px;</p><p>}</p><p></p><p>.social-icon:last-child {</p><p> padding-right: 0;</p><p>}</p><p></p><p>.social-facebook {</p><p> background: url(../images/social/facebook.png) no-repeat;</p><p>}</p><p></p><p>.social-twitter {</p><p> background: url(../images/social/twitter.png) no-repeat;</p><p>}</p><p></p><p>.social-youtube {</p><p> background: url(../images/social/youtube.png) no-repeat;</p><p>}[/code]</p><p></p><p>And then in your HTML, do this:</p><p></p><p>[HTML]<div class="social-icons"></p><p> <a href="http://twitter.com/IntactDev"></p><p> <div class="social-icon social-twitter"></div></p><p> </a></p><p> <a href="http://facebook.com/IntactDev"></p><p> <div class="social-icon social-facebook"></div></p><p> </a></p><p> <a href="http://youtube.com/IntactDev"></p><p> <div class="social-icon social-youtube"></div></p><p> </a></p><p></div>[/HTML]</p><p></p><p>It's more professional and saves code in your CSS. Hope it helps, if you decide to go with it. <img src="/styles/default/xenforo/smilies/emojione/smile.png" class="smilie" loading="lazy" alt=":)" title="Smile :)" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="Markshall, post: 217918, member: 1872"] I like it, it's pretty nice. But you could've saved yourself a few lines of code in your CSS. At the minute you have: [code].social-facebook { background: url(../images/social/facebook.png) no-repeat; width: 64px; height: 64px; float: left; padding-right: 150px; } .social-twitter { background: url(../images/social/twitter.png) no-repeat; width: 64px; height: 64px; float: left; padding-right: 150px; } .social-youtube { background: url(../images/social/youtube.png) no-repeat; width: 64px; height: 64px; float: right; }[/code] What you could do is: [code].social-icon { width: 64px; height: 64px; float: left; padding-right: 150px; } .social-icon:last-child { padding-right: 0; } .social-facebook { background: url(../images/social/facebook.png) no-repeat; } .social-twitter { background: url(../images/social/twitter.png) no-repeat; } .social-youtube { background: url(../images/social/youtube.png) no-repeat; }[/code] And then in your HTML, do this: [HTML]<div class="social-icons"> <a href="http://twitter.com/IntactDev"> <div class="social-icon social-twitter"></div> </a> <a href="http://facebook.com/IntactDev"> <div class="social-icon social-facebook"></div> </a> <a href="http://youtube.com/IntactDev"> <div class="social-icon social-youtube"></div> </a> </div>[/HTML] It's more professional and saves code in your CSS. Hope it helps, if you decide to go with it. :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
IntactDev: Coming Soon
Top