Why doesn’t height: 100% work to expand divs to the screen height?

In order for a percentage value to work for height, the parent’s height must be determined. The only exception is the root element <html>, which can be a percentage height. . So, you’ve given all of your elements height, except for the <html>, so what you should do is add this: And your code should work fine. JsFiddle example.

How to change the buttons text using javascript

If the HTMLElement is input[type=’button’], input[type=’submit’], etc. change it using this code: If, the HTMLElement is button[type=’button’], button[type=’submit’], etc: change it using any of these methods, Please note that input is an empty tag and cannot have innerHTML, innerText or textContent button is a container tag and can have innerHTML, innerText or textContent Ignore this … Read more

Mailto on submit button

In HTML you can specify a mailto: address in the <form> element’s [action] attribute. What this will do is allow the user’s email client to create an email prepopulated with the fields in the <form>. What this will not do is send an email.

HTML list-style-type dash

You could use :before and content: bearing in mind that this is not supported in IE 7 or below. If you’re OK with that then this is your best solution. See the Can I Use or QuirksMode CSS compatibility tables for full details. A slightly nastier solution that should work in older browsers is to … Read more

Freeze the top row for an html table only (Fixed Table Header Scrolling)

This is called Fixed Header Scrolling. There are a number of documented approaches: http://www.imaputz.com/cssStuff/bigFourVersion.html You won’t effectively pull this off without JavaScript … especially if you want cross browser support. There are a number of gotchyas with any approach you take, especially concerning cross browser/version support. Edit: Even if it’s not the header you want … Read more

HTML text input allow only numeric input

Note: This is an updated answer. Comments below refer to an old version which messed around with keycodes. JavaScript Try it yourself on JSFiddle. You can filter the input values of a text <input> with the following setInputFilter function (supports Copy+Paste, Drag+Drop, keyboard shortcuts, context menu operations, non-typeable keys, the caret position, different keyboard layouts, … Read more

Target a css class inside another css class

Not certain what the HTML looks like (that would help with answers). If it’s <div class=”testimonials content”>stuff</div> then simply remove the space in your css. A la… .testimonials.content { css here } UPDATE: Okay, after seeing HTML see if this works… or just or all 3 should work.

Wrap text around bootstrap image

Wrapping the title and created at date in a new column to compliment the width of the image and setting all the other text outside any column did the trick for me.A small downside is that the margins don’t line up but I am sure I’ll find a fix for that using some custom CSS.