I have about 7 Javascript files now (thanks to various jQuery plugins) and 4-5 CSS files. I'm curious as to what's the best practice for dealing with these including where in the document they should be loaded? YSlow tells me that Javascript files should be--where possible--included at the end. The end of the body? It mentions that t...
I have an HTML table that contains a large number of rows and columns. The top row contains headers, and the first cell in every row below that contains a header.
I need to allow the user to scroll the table whilst keeping the top row and left column visible at all times (similar to what can be achieved using the "freeze cells" option i...
I have a DIV in my HTML page. I am showing this DIV based on some condition. But DIV is displaying behind any HTML element where I pointed the mouse cursor.
I have tried all value for Z-INDEX property from 0 - 999999.
Can anyone tell me why this is happening?
Is there any minimum or maximum value of Z-INDEX property of CSS?
For examp...
We have to add a basic HTML editor to our product. As we only support IE at present (most customers are still on IE 6), I have been told to use the Internet Explorer built-in XHTML editing capabilities – e.g. <div contentEditable="true"> as explained at "Editing a Web Page" .
Apart from not working in other browsers. (The management do...
Here's a funny one: my girlfriend wants to learn HTML in order to make some small changes to a web app she is using. Now, I am kind of a low level guy and haven't done web development for a few years now. What do you recommend to get started - it's her first "programming language", but I think she has the necessary skills.
...
I have an asp page containing a form with two fields where the client is supposed to write his/her information.
<td><%=Html.TextBox("Date")%></td>
<td><%=Html.TextBox("City")%></td>
My action's signature looks (at the moment) like this:
public ActionResult XXX(string Date, string City) {...}
The problem is that I want to propagate...
Is there an official name for the character codes, the codes that represent & as & in order to differentiate between the text character and the coding use of it, used in XML and HTML content?
Also, are these part of the XML or HTML standard, or a third party standard? And, is there an official site you can point me to about them?
...
In asp.net if you define an asp:ListBox as follows:
<asp:ListBox ID="listBox2" runat="server" SelectionMode="Single" Rows="3">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
<asp:ListItem>4</asp:ListItem>
<asp:ListItem>5</asp:ListItem>
<asp:ListItem>6</asp:ListItem>
<asp:ListIt...
Is it possible to change the border color on a <select> element in an HTML form?
The border-color style works in Firefox but not IE.
I could find no real answers on Google.
...
In what situations is it more appropriate to use an HTML IMG tag to display an image, as opposed to a CSS background-image, and vice-versa?
Single-reason answers are welcome, but I'm hoping eventually to see a consolidated list of scenarios, rationales, etc. that can be used as a best-practice guide for making this kind of GUI design de...
How do you get the proper index of a selected input from a set of input elements with irregularly numbered indexes using JQuery? JQuery's "index" function always returns a value starting from 0 instead of the indexes I used. My code is below:
JQuery:
$("input[name^=myboxes]").click(function() {
var element_id = $("input[name^=my...
I want to show an image from a URL and I want that image to have a given size but I want to maintain the ratio between height and width.
...
I'm working on some JQuery to hide/show some content when I click a link. I can create something like:
<a href="#" onclick="jquery_stuff" />
But if I click that link while I'm scrolled down on a page, it will jump back up to the top of the page.
If I do something like:
<a href="" onclick="jquery_stuff" />
The page will reload, whi...
I was recently asked to "just stick a link at the top" of one of our sites to offer hand held users the use of http://stackoverflow.com">Google's Wireless Transcoder.
Initially I was skeptical but as I started to look into it I became intrigued that this could save me a lot of work. Though I'd love to implement a hand held solution for ...
I want to show an image from an URL with a certain width and height even if it has a diferent size ratio.
So I want to resize (maintaning the ratio) and then cut the image to the size I want.
I can resize with html img property and I can cut with background-image.
How can I do both?
Example:
This image:
"http://img1.jurko.net/wall/p...
What is the best way to use the <label> tag within an ASP.NET application? I want it to be XHTML valid, accessible and usable.
I understand the optimal way is this:
<label for="Username">Username:</label>
<input type="text" id="Username" runat="server" />
But if the above code is in an ASP.NET user control, the input ID will change, ...
I've got a series of tabs on a page. The tabs are set to relative position. They are then moved 15px to the left. The resulting style looks like this:
style="position:relative;left:-15px" (note that each tab's left is going to be -15 * tab number - so #2 will be -15, #3 is -30, etc.)
This gives the tabs a nice overlapping feel, which i...
Hey All,
I'm trying to create a dynamic popup window that is able to be re-sized. However, since I'm not able to use static widths, I'm running into issues with using floats and percentages for the widths.
When I specify a percentage for the width of a floating div, it assumes I mean the 100% of the width of the containing div. What ...
Last night I decided to add HTML fragment links in my computer listing page. However, no matter the pattern of linking, or whichever browser I use, those fragment links are simply not navigatable.
http://icelava.net/mycomputers.aspx#SEPHIROTH
http://icelava.net/mycomputers.aspx#DIABLO
UPDATE on Answer: the links now flow correctly to ...
With today's modern mobile phones, is it still worth programming the mobile version of your site in WML?
Most mobile browsers even a few years old can manage to do okay in regular HTML. With WML, you are obviously given more control over what is displayed and what isn't with less fear of it not working on a particular device, but today,...