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
Speed Coding #2
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: 404215" data-attributes="member: 1872"><p>Nice. Are the designs original or are they designs that you've found and decided to code up?</p><p></p><p>A few pointers, where you've done</p><p>[code].timer .days-wrapper,</p><p>.timer .hours-wrapper,</p><p>.timer .minutes-wrapper,</p><p>.timer .seconds-wrapper { /*styles here*/ }[/code]</p><p>You can cheat and do it like this</p><p>[code].timer [class$="-wrapper"] { /*styles here*/ }[/code]</p><p>This will select any element whose class ends in "<span style="font-family: 'Courier New'">-wrapper</span>" within the <span style="font-family: 'Courier New'">timer</span> div. You can even specify which types of elements too</p><p>[code].timer div[class$="-wrapper"] { /*styles here*/ }[/code]</p><p>So if you've got multiple types of elements (<span style="font-family: 'Courier New'">div</span>, <span style="font-family: 'Courier New'">span</span>, <span style="font-family: 'Courier New'">img</span>, etc) whose class may end in "<span style="font-family: 'Courier New'">-wrapper</span>", this will only select the divs that end in "<span style="font-family: 'Courier New'">-wrapper</span>"</p><p>After seeing that, it probably won't surprise you to learn that you can apply pseudo classes to them</p><p>[code].timer div[class$="-wrapper"]:hover { /*styles here*/ }[/code]</p><p></p><p>Another thing, I noticed you were using vendor-prefixes for box-shadow, border-radius and transition. This is no longer required. These CSS features are now supported by all major browsers.</p><p><a href="http://caniuse.com/#search=box-shadow" target="_blank">http://caniuse.com/#search=box-shadow</a></p><p><a href="http://caniuse.com/#search=border-radius" target="_blank">http://caniuse.com/#search=border-radius</a></p><p><a href="http://caniuse.com/#search=transition" target="_blank">http://caniuse.com/#search=transition</a></p><p></p><p>It would have been nice to get a finished preview at the end though, I feel cheated <img src="/styles/default/xenforo/smilies/emojione/frown.png" class="smilie" loading="lazy" alt=":(" title="Frown :(" data-shortname=":(" /></p></blockquote><p></p>
[QUOTE="Markshall, post: 404215, member: 1872"] Nice. Are the designs original or are they designs that you've found and decided to code up? A few pointers, where you've done [code].timer .days-wrapper, .timer .hours-wrapper, .timer .minutes-wrapper, .timer .seconds-wrapper { /*styles here*/ }[/code] You can cheat and do it like this [code].timer [class$="-wrapper"] { /*styles here*/ }[/code] This will select any element whose class ends in "[FONT=Courier New]-wrapper[/FONT]" within the [FONT=Courier New]timer[/FONT] div. You can even specify which types of elements too [code].timer div[class$="-wrapper"] { /*styles here*/ }[/code] So if you've got multiple types of elements ([FONT=Courier New]div[/FONT], [FONT=Courier New]span[/FONT], [FONT=Courier New]img[/FONT], etc) whose class may end in "[FONT=Courier New]-wrapper[/FONT]", this will only select the divs that end in "[FONT=Courier New]-wrapper[/FONT]" After seeing that, it probably won't surprise you to learn that you can apply pseudo classes to them [code].timer div[class$="-wrapper"]:hover { /*styles here*/ }[/code] Another thing, I noticed you were using vendor-prefixes for box-shadow, border-radius and transition. This is no longer required. These CSS features are now supported by all major browsers. [URL]http://caniuse.com/#search=box-shadow[/URL] [URL]http://caniuse.com/#search=border-radius[/URL] [URL]http://caniuse.com/#search=transition[/URL] It would have been nice to get a finished preview at the end though, I feel cheated :( [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Speed Coding #2
Top