tbwiii
-
Change background color when page re-loads?
Nice bit of code-golf @Hompimpa
-
Change table Row background-color On click a link presented in td
Yeah then JavaScript is definitely the way to go, let us know if you need a hand with that.
-
Liquid container div with zig-zag border
You are going to get a little bleed on the top and bottom though
-
How OCD Are You?
I can deal with 3 character hex codes but lower-case annoys me too. I resisted using auto-complete for the same reason - but having it around can really speed things up, especially one that doesn't always have a distracting drop-down list. So…
-
Change table Row background-color On click a link presented in td
There's no selector we can use to select the parent of a hovered element. This is, however, possible in other ways. Here are your options: Use a little JavaScript wrap the whole row in an anchor put the :hover rule on the table row
-
How OCD Are You?
My CSS is formatted like so .my-class { width: 100%; margin: 1em 0; color: #333; background: #FEFEFE; } I do it line-by-line for readability and sometimes if it has a lot of rules I break them up into sections like in the exampl…
-
Reset or Normalize?
Agreed - tweak normalize to what you're going to use anyway. That way like @ joshuanhibbert it's less work for you because you don't have to re-daclare everything you intend to use and an added benefit is it's less work for the b…
-
Responsive Image width:inherit
Hadn't thought of that. I opened up a JSFiddle to play around with it. Your implementation only works if your image's container has a fixed width or if it has a percentage based width of 100%. If say the container has a 40% width then t…
-
Fix footer menu position
I think @Paulie_D is suggesting that you should add that snippet inside your "head" tag and see if that fixes your problem.
-
Change background color when page re-loads?
Here's an example for a truly random color http://jsfiddle.net/djHyV/
-
Change background color when page re-loads?
Do you want a set of different colors or do you want the colors to be truly random?
-
Image preloading with CSS in Chrome
I'm not sure what exactly could be causing that. Are you able to test with Chrome on another machine?
-
Using JavaScript in WordPress posts...
I think best practice is to if at all possible no use JS inline. Are you doing a lot of repetitive tasks, or is it almost always something new?
-
Image preloading with CSS in Chrome
I'm checking the network requests and the images are only being called for me 1 time. Have you tried watching the network tab of the Chrome Developer tools?
-
How to achieve this in WordPress?
@andy_unleash & @JoshWhite That's a cool method - I had not thought of that. @stevencrader Oh yeah, the "q" tag. I need to commit that one to memory
-
How to achieve this in WordPress?
Sure, this is possible with CSS. JSFiddle Example If you just have a style for your "blockquote" tag in your style-sheet, you can just use that tag whenever you want an aside/quote like that. If you can provide a link we can tell you exa…
-
Code Academy help...
Sorry! I was on my phone at the time or I would have typed the whole solution out :)
-
Code Academy help...
I think you want to do if(i % 2) { print i*i; } It checks to see if there's a remainder from i divided by 2. If there is then i is odd. If it is odd then square it.
-
How to decode this javascript
Try http://jsbeautifier.org/
-
Image preloading with CSS in Chrome
Instead of using :after, did you try just putting the images in a hidden div at the bottom and make that div for any preloaded images you need? That should work. edit: I can't get the forum to display my code right. Here's an example : ht…
-
Random background image javascript help
It's probably a good idea to move those image paths to CSS and just put different classes on via the JavaScript. Here's an example: codepen
-
links not responding from floats and fixed positions...
That's too bad, but I'm glad the other thing worked though!
-
Image preloading with CSS in Chrome
Have you tried using the sprite in this way: Put the normal bg on the list-item Put the hover bg on the hover-state of the anchor tag Fade the anchor's hover-state bg in the way you are now. Theoretically that should achieve the same look an…
-
links not responding from floats and fixed positions...
There's actually a few (or 6) invisible divs covering the link. They are in a div with the class ".rt-container" It looks like they're empty - so you should be able to just eliminate them from your markup. That or position that …
-
Image preloading with CSS in Chrome
Do you have a live example?
-
jQuery - Better understanding of .live();
@senff "on" only needs a different structure of you care what was hovered/clicked on inside of the original selector. If you only care that ".tweet" is hovered on: $('.tweet').on('hover', function() { // som…
-
Image preloading with CSS in Chrome
You could do transition: color ; if you want to just affect the color of the link with the transition and not everything that changes about it.
-
Image preloading with CSS in Chrome
Have you considered using sprites? Basically it is one image that holds multiple images. They can be large (every image in the layout) or small scale (just a button's regular, hover, and pressed state). All you have to do is change the backgr…
-
jQuery - Better understanding of .live();
To answer your question, you would usually need to tie the event to the parent that is always there and use the on method to listen as the event bubbles up the DOM, like so: $("#parentDiv").on('focus', 'input[name=emailAddr…
-
codepen doesn't like my js?
@matt_sanford I think it might be an iframe issue - I have had similar things happen with jsFiddle. Chris could say for sure though.