html

HTML img has unwanted edges

See anything-pages.com/ and look at World Series 2010 sponsorship logo on left. There is an edge along the top and left sides of the logo which is rendered in this markup: <div style="position: absolute; float: left; left: 0px;"> <img width="200" height="200" src="/themes/zen/atdwh_classic/images/2010 JLBB-30 year - sml.jpg"> </div...

Ideal value for <a href="?"> when used for a JS event?

I've got a link I want to appear on my page, <a>add another</a> But it doesn't look like a link unless I add an href attribute. I'm going to be using jquery to add a .click() event to it, so it doesn't really need anything else. What's the best value to href to? #? javascript:void(0)? My concern is if someone clicks it before the .c...

.change() would not work in IE for <select> tags

I have such a combo box in my site and I want it to load some content as soon as it's changed by the user. It's a simple one having each State of my country, check it out: http://jsfiddle.net/tzvyX/ It happens that in IE, the .change() method doesn't work and I don't know what to do to fix it. maybe some other event listener? ...

firefox making white "flash" as it builds the page.

Ive been working on building a website with a flash slideshow component, and I am a little bit puzzled. When I view the page in Firefox (3.6.8), it appears to download the content of the page first and makes a white "flash" as it downloads the slideshow. But when I view the page in Safari it appears to build the page first, then downlo...

How to style XML displayed in HTML?

I'd like to display XML pulled from a database on a website. I'd like to be able to style how it is displayed (such as different colors for string value, attributes, elements,..). How would you do this? Can you use CSS? Thanks! EDIT: I mean display the XML as XML editor would, sorry for the confusion! ...

jQuery Bounce In Place

I need my list item elements to bounce in place and not fall all over each other. I created a JSFiddle of what I mean: http://jsfiddle.net/RGvjj/ Can someone advise me as to why the elements are doing that and what I need to do to fix that? ...

Coloring substrings in an HTML multiple select option

I have a multiple select box that is populated with a set of options that contain a substring that a user enters as a keyword in a search. The user can then select what they want from the generated select box. To make things easier, I would like to highlight the substring in each of the options in the select box. Is this possible, and...

What is the code in HTML for making an image, or a gif animation- to appear in FRONT of an embeded movie clip (lets say from you tube)?

What is the code in HTML for making an image, or a gif animation- to appear in FRONT of an embeded movie clip (lets say from you tube)? ...

.NET and html pages auth management

I have absolutely no knowledge of .NET but am tasked to think/solve a small issue. I have a web site written in .NET which authenticates users before allowing them in. Now there is a new directory containing static html pages that must be controlled using the same auth session. I want to achieve this without having to convert the html pa...

Possible? — A div overlay which is completely ignored by mouse events (so that mouse events effect only the div below)

I have a google map in an iframe and wrapped in a div. Above that div, i have another, which serves to create a recessed shadow effect. The problem is that this overlayed div will take priority of any mouse events, so it renders the interactive google map below useless. There must be a way I can make the overlayed div ignore mouse even...

What CSS should I use to get a border around an option tag in both Firefox and IE?

Right now I am using the following CSS: option { border-width: 1px; border-style: solid; } Which works fine in Firefox but not in IE. I'm not sure if it makes a difference but the option tags are generated by an ASP.NET ListBox control. ...

Add a surrounding div with jQuery?

Bit tricky to communicate but hope this makes sense. I have 8 div containers and need to wrap all the even numbers with an extra div using Jquery, the desired effect like so, <div id="wrapper"> <div id="content"> </div></div> <div id="content"> </div> <div id="wrapper"> <div id="content"> </div></div> ...

does IE8 support out-of-the-box in 'localStorage'

I am trying to use html5 feature 'localStorage' according to this blog it can be done using IE8 however when I am trying use it I get javascript error the 'localStorage is null or not an object' So my question- can it be used by IE8 out-of-the-box or not? Here is my code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...

Simple stacked/segmented html bar

Rather than try to reinvent the wheel, I'm hoping someone can shed some light on how to create a stacked/segmented bar or point me to an existing control. Here's what I need: Horizontal bar Standard html Each segment needs to be color coded from css Each segment needs to be a percentage of the total (i.e. if total value = 100, then a ...

Fixed width div losing its background-color upon resizing the browser window.

I am creating a blog based on the 960 grid system. It has three simple divs: header 2. Content 3. Footer and each of them has a fixed width div which holds 2-3 columns of text. The content div, and the fixed width div inside it have the same background color, but when i reduce the size of the browser window, for some reason it ignores...

Repeating Content On Web Page

What is the best way to include repeating content on every page of a website such as a navigation menu? ...

Iphone/iPad local asp files?

I already know that you can load local html files in a UIWebView, but could you do the same thing with asp files? And could you use AJAX on the iPhone? ...

unwanted horizontal scroll bar in fluid layout

Hi, http://www.twofivefivefive.com/asctest/ I am helping a friend with this site, and it is a fluid, % based design (which I have no experience working with). For some reason, I am getting a horizontal scroll bar, that scrolls into blank space on the right side. I haven't the faintest clue what is causing the page to be wider than it ...

Open a new browser window WITHOUT using target="_blank"

Every solution I've seen so far for opening a new browser window uses the target property in to set it to "_blank". This is frustrating because in some browsers it only opens a new tab AND combine that with the auto-resizing behvaiour at http://www.facebook.com/connect/prompt_feed.php?&amp;message=test, it basically mangles my browser w...

Using asp.net <%: %> syntax to generate javascript in an MVC application

I have a for loop to loop through my list of SliderItems which contain an ID, ImageUrl, and a link Url. <% foreach (var item in Model) { %> <a href="#"><img id="<%: item.ImageID %>" src="<%: item.ImageUrl %>" class="slide" alt="" /></a> <%} %> I need to loop through and generate the data parameters for this javascript automatical...