html

Internet Explorer 8: list problem

There is an unordered list, and one of the list items contains two links. For some reason, Internet Explorer 8 is showing the part of the list item beginning with the first link as outside the list and apparently outside the containing div also. Here is what it looks like (those two lines should be on one line!): The html: <!-- These...

How to make a RESTful search button?

I need to do a search based on a term entered into a text box. Simply: user clicks something and results are returned. This is fairly straight-forward, except I'm having a bit of difficulty actually implementing it. The problem is, I want to do this as RESTfully as possible, so I don't want to create a button as follows: <input id="sea...

WMPlayer embed not playing video

In my company we link our site to videos provided by a partner company. They changed their video encoding from .FLV to .MP4 videos and the current video player on our site doesn't playe them. We changed it to Windows Media Player given that most of our customers are running windows and internet explorer, the embed code we used is this on...

Popup with a gridview when a link is clicked

Hello, Could someone help me out in getting a popup with a gridview(with 2 columns) inside when a link is clicked. I need some help badly. Can someone please tel me how to start and the procedure. I will be thankful. 2 columns in the gridview include checkbox and Text. This should get populated from database and after modifying that. ...

Using Z-index, margin not working to push div away from another

I have edited this post with my question writen in a more simple way to understand. Please see below. Some CSS I am using: #wing_right { background-image:url("../images/poppadom.png"); height:678px; margin-right:-60px; margin-left: 500px; position:fixed; right:0; top:240px; width:387px; z-index:50; } Easier ver...

Indented blockquote around float

I have a blockquote that flows around a left-floated image. How can I make the blockquote indented 2em from the left margin of the page when it is above or below the image but indented 2em from the right side of the floated image when it is along the same line as the image? I am using HTML and CSS. ...

HTML table reduces the print font size on entire page

I had a page that displayed some text and a centered table below that text. I added another table adjacent to the first table. The font size remained the same on screen, but in print the font size got reduced. This is probably so that two tables could fit one besides another. Problem is in the fact that font size got reduced on the enti...

How to create a Scrollable Table in Google Chrome

Ok so this is basically about scrollable tables. If I have a table element I can make the content scrollable (with some javascript fun, including accouting for the scroll bar using the width) by making the thead fixed height, and the tbody fixed height, then setting scrolling to auto on the tbody. This works in Firefox, but in google c...

Why did they deprecate the width attribute for preformatted text?

The width attribute for <pre>, which defines maximum character length per line, was deprecated in HTML 4.01, and I no longer see it in current draft of HTML5. I couldn't find the reason behind it in the mailing lists of W3C's WG for HTML (maybe I searched wrong), although the specs for 4.01 said it was not supported in all clients. One...

Cleaning up the HTML generated by JQueryUI?

Can this be done? I'm building a template generator complete with resizable and draggable elements inside a preview window. Problem is, when I go to get the HTML generated, each of the elements have all the JQueryUI classes and divs added, which are not desirable in the final product. I'd like the output HTML to be simple enough that I c...

Value cannot be null. Parameter name: control

<cc1:ConfirmButtonExtender DisplayModalPopupID="ModalPopupExtender4" ID="ConfirmButtonExtender4" runat="server" TargetControlID="lnkremoveloc" Enabled="False" OnClientCancel="RemoveLocations"> </cc1:ConfirmButtonExtender> <cc1:ModalPopupExtender ID="ModalPopupExtender4" OkControlID="btnDisable" CancelC...

how do I know if the mouse pointer is on the HTML element?

I have a timed event I want to behave differently accordingly to what HTML element the mouse pointer is on. Is there a way, assuming I have the HTML element, to know if the mouse pointer is currently on top of it. I am well aware of the onmouseover/onmouseout events and how to use them. I am using JQuery. I am obviously looking for some ...

Scroll page content within specific area?

Hello fellow geeks, I'm designing a website which has fixed elements on the outer edges of a fixed-width layout. A div in the center is reserved for the content. When the user scrolls, I want all of the content (besides said fixed outer navigation elements) to stay within the borders of that center element. Here's a quick mockup of wh...

Why does IE8 fail to window.open() when viewing local HTML files (and how to fix it)?

Due to orders, I must test some pages from a local file system running Windows XP and IE8. Firefox and other browsers can view the documents and javascript for opening new windows works. However, with IE8, I get new window filled with some default error message, "Internet Explorer cannot display the webpage". Anyhow the first "launche...

IE not centering these images, is there a fix?

My HTML+CSS graphic My issue with this page is that the "High School", "Middle School", and "Elementary School" images center perfectly in all browsers except for IE6, 7, and 8. Relevant parts of the page: (Edited for clarity) CSS: #block { clear: both; width: 682px; } .education_level_wrapper { float: left; width: 1...

Strange problem while compiling CHM file

Hello, I had to write some documentation. I wrote each page in MS Word and then save each *.docx as htm file. I'm using "HTML Help Workshop" (from microsoft) to compile a chm file. I was able to sucessfully create a chm file but the problem is that not all images in chm file are displayed. I tried decompiling the *.chm file into anothe...

What is an appropriate list of HTML elements that one should style in an site's CSS?

When designing the base styles for a site, one should strive to address all of the different HTML elements that could come into use. This is especially true when developing a skin for a CMS where the admin's WYSIWYG editor might introduce elements you hadn't planned on (strong, em, strike... etc). What is a list of HTML elements that an...

How to stop someone uploading a script in textarea?

Hello I have a situation where users can submit feedback through a textarea on a HTML page or JSP. This works fine and the text ends up in the database. But, can anyone suggest any safeguards which could prevent somebody trying to submit malicious scripts which could possibly affect the page's behaviour? I am aware of parsing the tex...

How to position this using only CSS and no tables

I want to position this HTML snippet <div id="D1"> <div id="D1.1">HeaderText</div> <div id="D1.2"> From <input id="from" name="from" value=""/> </div> <div id="D1.3"> To <input id="To" name="To" value=""/> </div> </div> this way +-(D1)-------------------------------------------------------------------------+ |+-(D1....

Animated List Rearrangement (JQuery UI Sortable)

I'm trying to build a sortable listed thats animated. Apples Bananas Cavemen Let's say I've selected Apples and I want to switch it with Cavemen, I want to click on Apples, drag it to cavemen and have bannas and cave men animate up to the proper positions. I am aware that JQuery UI Sortable allows for some level of this functionalit...