html

IE8 and border css property on select menus

I am getting a really strange behaviour when viewing a very simple piece of HTML in IE, served up by IIS. I am at a loss to explain this... Take the following html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; <html> <head> <style> .iWantaBorder { border:red so...

How to scroll images vertically continuously using jquery

I am looking for something similar to this http://maaki.com/thomas/SmoothDivScroll/clickableLogoParade.htm The current one is left to right. But I need to scroll vertically ie bottom to top. Can any one help me plz ...

SautinSoft HTML-to-RTF and UNC Paths

Has anybody successfully used the SautinSoft HTML to RTF DLL which has images with a UNC path? When we use the component to transform a HTML document with images whose src attribute is pointing to a UNC path the resulting RTF document has the images missing. When navigating to the HTML page directly - with UNC paths as the source - ...

HTML annotations (selecting, highlighting, remove format)

I am working on a cross browser web based annotation toolset, which allows the users to select any part of a web page HIGHLIGHT, if you select: john is <li>big</li> <li>dump</li> Result <span style="background-color: rgb(106, 168, 79)">john is</span> <li><span style="background-color: rgb(106, 168, 79)">big</span></li> ...

how to size a div's height to its container height, using CSS ?

How to size a div's height to its container height, using CSS ? <div class='container'><br> &nbsp;&nbsp;<div style='display: block; height: 500px'>left</div><br> &nbsp;&nbsp;<div id='to-be-sized' >right</div><br> </div> ...

make select box values faded out/unclickable

Hi, I have a normal HTML select dropdown box <select id="day" name="day"> <option value="0">All</option> <option value="1">Mon</option> <option value="2">Tue</option> <option value="3">Wed</option> <option value="4">Thu</option> <option value="5">Fri</option> </select> But on occassion I want to make some options not clickable,...

Drawing a grid in javascript ( game of life, for example )

Essentially, I had this idea in my head for a sort of evolution simulator, not exactly like Conways Game of Life, but the one part where they do match is that they will both be based on a square grid. Now, personally, I like working in HTML+Javascript+ for simple apps, since it allows fast UI creation, and if you're not doing something ...

Easiest way to extract the urls from an html page using sed or awk only.

I want to extract the URL from within the anchor tags of an html file. This needs to be done in BASH using SED/AWK. No perl please. What is the easiest way to do this? Thanks a lot. ...

CSS - Vertically Align DIV content

Hello, I am trying to vertically center some content via CSS. For the life of me, I cannot figure out the cause. Can someone tell me why the word "test" in the following HTML is always top-aligned no matter what I do? <html> <head> <title>test</title> </head> <body> <table border='0' cellpadding='0' cellspacing='...

Disabling a link tag using JavaScript on my printable page

I have a script that creates a printable page by copying the HTML across and then doing some manipulation, such as disabling the buttons on the page, on page load. I also want to disable the links on the page. I don't really mind if they look like links still as long as they don't do anything, and don't give any JavaScript errors! The a...

Parsing periodic elements in PHP/html

This problem actually hit me recently. So I was tasked with putting people's bios up on the web (asked for opinions in a different question), which I went with XML and just created elements based on what sections was going to be displayed. Some people had formulas in their bio and when I was copying/pasting the formatting didn't copy o...

JSF components libs generate awful html-code. It's not OK but is it acceptable?

When I was developing web-apps with jsp/jstl and jQuery, I used to write nice html-code, separated from styles and scripts. JSP inserted some odd spaces and blank lines but nothing else. Now I'm trying to develop with jsf. JSF has lots of libs for creating RIA with numerous components so it should be much faster to develop web-apps wi...

Bold labels in MFC

I want to create labels in MFC (Static text) that have both bold and non-bold text. Something like this: "I would like my label to look like this, for example" Any thoughts of how to do this? I know that I can change the font of the entire label and have it either bold or not, but is there any way of merging more than one style, o...

text-align not working as expected

I am attempting to make two elements on different sides of their container. In my actual code these two elements are to be on opposite sides of a div, but for the sake of example, lets say I want them on opposite sides of the browser window. So I did a simple <html> <head> </head> <body> <table> <tr> <td style="width: 50%;text-align: l...

handling forms and textbox for multiple button

As you can see here that I have a text box with three submit buttons each redirecting to a different jsp page, however in those jsp pages, when I do request.getParameter("bid"), all I get is null... How can I fix this the simplest way possible? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtm...

CSS inline area cross browser

I would like to add some CSS fixed size blocks inline into a text paragraph and I'm having cross browser issues. I use div and inline-block and it works on Firefox. Under IE it fails (inline-blocks aren't fully supported). Is there a simple cross browser solution available? (The rationale for this is for the fixed size blocks to use ba...

How do I detect support for contentEditable via JavaScript?

I've been searching for this for a couple of days now and so far, the best I can come up with is checking the list below. I really don't like to check for support based on User-Agent, especially since it can be spoofed. I've also heard of at least one instance where the list below is incorrect (noted below). Is Internet Explorer? Is ...

How can I append content to the bottom of a fixed-height div and have it overflow-y: scroll?

The question explains it pretty fully, but here's some more detail: I have a div with a fixed height. Content is dynamically loaded via Ajax and appended to the div. Added content is always positioned at the bottom of the div. 2 pieces of content (no scrolling yet) -------------------------div-- | | | ...

Why there is no tree tag in html?

Hi, I wonder why there is no tree tag in html? Something like table tag. For example: <tree> <treenode id=root> <treenode id=child1 /> <treenode id=child2> <treenode id=child2-1> ...... </treenode> </treenode> </treenode> </tree> ...

display mysql newline in HTML

Certain fields in our mysql db appear to contain newline characters so that if I SELECT on them something like the following will be returned for a single SQL call: Life to be sure is nothing much to lose But young men think it is and we were young If I want to preserve the line breaks when displaying this field on a webpage, is the ...