I've seen Ryan Fait's method for sticky footer as well as one here and here.
Why are these people making templates for sticky footers when #footer{position:fixed; bottom:0;} will suffice?
EDIT:
I will add that using position: fixed; for a footer does break margin: auto; centering in (at least) some browsers, thus creating the need f...
I am trying to create a HTML page where the "body" color changes depending on some data being gathered from the RAM. If the RAM fills up beyond a certain threshold then I want the color to change.
<body style="background-color:<%=
if(MemoryPercentage < 33)
{
//set to green.
}
else if(MemoryPercentage < 66)
...
I built a printable version of my data using multiple iframes to display line item details. However, if any of my iframe content is larger than a page they get cut off when printing (they display fine on the screen). All of my iframes point back to the same domain and I'm using the browser's File->Print function to do my printing. I don'...
Has anyone seen the following rendering bug in google chrome:
I get it occasionally when I navigate to http://www.mediabrowser.tv
What causes it? Is there any workaround?
...
I am developing a web based business software which will be used internally.
I am looking for some open source themes which are meant for business software. I am finding a lot of themes which are meant for blogs and personal websites, but not too many for enterprise themes.
Enterprise software in my books has a lot of reports, options...
Let me explain a bit more, I am trying to have a large area (full screen) with a fixed size hole in it. The hole will follow the mouse around the screen. Think of having a scope focused on the page and the rest of the page grayed out.
I need this working efficiently in all browsers (inc IE 6).
My current solution uses 4 divs (top, rig...
I made something like an array of Input boxes in a html file, in this way, it is easy to write just one javascript function for all of them (see below):
<form name="myform">
<input type="text" name="t" onkeydown="return a(0)">
<input type="text" name="t" onkeydown="return a(1)">
<input type="text" name="t" onkeydown="return a(2)">...
Hi all, I am trying to have a user imput data into several fields, then I want to be able to add that value and take a percentage of it. I realize that I could just add the variables, however I would like the user to be able to see the total and the percentage. If you would like to look at the site just for reference,
http://clubs.ps...
I expected the middle column to be 3 times as wide as the left and right columns. Instead of the withs appearing as specified 200,600, 200 (left to right), the widths appeared as if I specified them in this order: 200, 200, 600. In other words, the LAST column appeared 3 times as wide as the first two.
Why? (This is my primary question)...
Hello,
I have a Dropdownlist or maybe better described as a "select" control. This list can have 50 to 100 items in it. Lets just say it's showing numerically 1 through 50.
I would like the control to show on the form with no selected value, however when the user clicks/focuses on it - I would like to have what appears to the user as t...
I've seen some results on StackOverflow already on a similar topic and they all recommended the HTML Agility Pack. I've also found a few examples on it too, but it isn't working. My current code:
HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();
doc.LoadHtml("http://stackoverflow.com/");
List...
So I was thinking a simple way to deal with javascript being disabled by the browser would be the following:
<head>
<title>JavaScript Test</title>
<noscript>
<meta http-equiv="Refresh"
content="1;url=nojs.html" />
</noscript>
</head>
And having the nojs.html have somethin...
Hi
I have the following html and the text for the input "fg" is not visible.
<td style="background-color: white;">
<input id="NormalDay1" class="tsm_textbox" type="text" value="fg" size="20" name="NormalDay1" style="background-color: white;"/>
</td>
I have checked for any color attributes in firebug but can't see any.
Any ideas why?...
Hi ,sample site
The above is the sample site ,
please look the phone number textfield in that site ,
How they are doing such thing,
how to show the default phone number format value in the phone number text field ,
and how to remove that format while user entering the phone number,
Is there any jquery function there, or we have t...
To make lists horizontal and hide default bullets, is it necessary to give {display:inline} and {float:left} both to the <li> tags or anyone of these alone is enough?
<ul>
<li><a href="#">First item</a></li>
<li><a href="#">item 2</a></li>
<li><a href="#">item 3</a></li>
<li><a href="#">item 4</a></li>
<li><a href="#">Last item</a></li...
I was unable to display local images in both IE6 and IE7. Below is a page where you can see a demo:
http://www.thaiperfect.com/anytest/
Any advice?
...
Is there a way to prioritize one table column in HTML? The thing is, I've got 4 columns, and the content may change a lot for the content in all cells. But I want the first column to take up as much space as possible, so the 3 other columns only use as much width as they need to keep everything on one line.
The table itself has a fixed ...
I've got a form that has no submit button and it would be great if the form is still submitted when the user hits the enter key. I've tried adding a hidden submit button, which gives me the desired behavior in Safari, Firefox and Chrome, but the form is still not submitted in IE. Is there a standard way of doing this?
...
I am creating a dynamic table in which each row has a group of radio buttons placed in different columns.
I want to change the cell background color when a radio button is clicked.I am constructing the table using the code snippet below. How to identify the radio button in javascript, so that I can set the cell with an appropriate backgr...
I have a div as a container for a file view. This div has scrolling in y direction.
I want to automatically scroll the content inside this container div to a specific position when loading the page, but without to scroll the whole page. I have tried with <a name="scrollHere"> and location.hash = 'scrollHere'; but this scrolls the whole ...