html

Elements with nowrap get stuck to adjacent elements in WebKit

I have a ul list that I display as a horizontal menu. I'd like the content of each li to remain on one line, but the entire li items to jump lines as necessary. Something like: First entry in the menu Second menu entry These words are short, the LI jumps lines, but doesn't wrap Yet anoter] [And more] [Some more] Logically, I'd just pu...

Absolute positioning of form elements in HTML

I am writing a C++ program which allows a user to design a form and then to generate the corresponding web form. Basically, the user gets an IDE something like Delphi, Visual Basic, etc and can position text labels, input fields, radio buttons, etc He can resize, rearrange and, when he is satisified, he instructs my program to generate ...

ie6 bug, text cropped inside div

i have this this simple div : <div id="error_message">Some bad things happened here, sorry... try again later!</div> and this css: #error_message { width:170px; height:44px; color:green; font-size:15px; margin-left:10px; text-align:center; } ok, as i expected ie6 kicks my butt again :D so what it does ...

Fluid Columns with matching height and background image

I'm working on a new layout for my site that uses a header, footer and two column center region. The two columns consist of the main content area which is fluid height and width and a right sidebar which is fluid height and fixed width. I have done similar layouts before, but this one depends on using two different background images (o...

Regular expression to find a value in a webpage

I need to find a regular expression which pulls out a value from a table cell in a html doc. Example contents of this table cell are "Result: 40 mins". I need a regular expression to match the actual number (40). This is in java, thanks in advance. ...

What stops Firefox from rendering a page ...

I'm currently facing the problem that the server delivers a page with valid xhtml (transitional) but Firefox (3.x) refuses to render it every now and then. Reloading the page (F5) shows the rendered contents as supposed. Looking it up in Firebug shows that the server delivered everything and that the html-header als "arrived" ... but it...

HTML to XML conversion with C++

Is there a C++ code or library to convert a HTML document to a XML document? Thanks. ...

how do I make contents of html text fields, text areas and select boxes selectable using CTRL-A?

right now when I do CTRL A on my (fairly lame) webpages, the contents of textboxes and of listboxes/select-boxes is not selected and hence cannot be easily copied. Is there a way to fix this, either directly or by replacing these lame widgets with some similar ones that explicitly support this feature? ...

solve copy/paste encoding problems?

I hear that you can copy paste text from MS word and send an email or post something and there will be an encoding problem. I also heard from someone else its only a problem with webpages that cant handle unicode. Is it possible to have a doc that cannot be copy/paste to a webbrowsers/apps properly? (assuming its all text and only has a...

how can i make a HTML submit button which hand you/generate a PDF?

Example provided would be helpful. ...

How can I determine the instant a function is loaded?

I am using the Google Maps JavaScript v3 API. The maps library takes awhile to load; however, certain functions load before others. How can I programatically determine the instant the getBounds function is ready for use from the Google Maps JavaScript library? UPDATE: Is there some type of event I could create to run once getBounds i...

How do we use display:table-cell?

I have a div with float:right (no position property declared). This div has some text content which may be wrapped sometimes. I want the text to always be vertically centered. Declaring display:table-cell and vertical-align:middle for this div does not work at all. Can somebody point me in the right direction about table-cell? I am usin...

How to analyze HTML Page using PHP?

Hi I want to analyze HTML page by following example. I can put url page to textfield then press enter. I get some text from HTML page such as title, h1, div id="do" or so on. How I can do it by using PHP? Thanks! ...

HTML DOM drag-n-drop: what about when mouse leaves window?

I'm working on a web app where I support dragging on the page, by simply watching for mousedown/mousemove/mouseup events. That part works great. The problem is that I'm only handling dragging inside one particular element, by design, and if a user (accidentally or not) drags outside, it gets "stuck" in drag mode. That is, mouse-down, ...

Is there any way in Eclipse to format a code that contains divs in the way Netbeans do it?

Is there any way in Eclipse to format a code that contains divs in the way Netbeans do it? I mean, if you have this in Netbeans: <div> </div> </div> <div> and you format it (Source > Format), it becomes this way: <div> <div> </div> </div> ...

javascript /innerHTML / html

Hello, I have a JS function - triggered with onclick -, that is dynamically changing 4 pics in the current page. But where i have troubles, is the displayed set of picture is clickable too, and should display the picture in lightbox. So 2 buttons, corresponding to 2 sets of pictures, a click call a function which changes the innerHTM...

JQuery Change Background Color of 'Option' Element

Hello everyone, I'm in a bit of a rut, i've searched high and low for a JQuery method to change the background color of an item in a drop-down menu (<select><option>foo 1</option><option>foo 2</option></select>) on hover. How am i supposed to do this? ...

jQuery apply code as each element loads

I am using jQuery to add placeholders to each text box on a page. I could just use $(document).ready() and then iterate through all the elements locating all those with the placeholder attribute and then adding the events to that element but this means that the user could click on the text box before the jQuery code is applied. So I wo...

The jQuery .ready() event and building content in javascript

Hi, let's say I have a simple javascript like so: $(document).ready(function(){ if(login == "1") { showExtMenu(); //Show the logged in user the extra menu links } else { showRegMenu(); //Show the user the regular menu } }); showExtMenu and showRegMenu populates an empty div with some html code. My question is, will...

HREF to a .doc file works... an HREF to a .docx does not

Strange... When i create an HREF to a .doc, the browser behaves correctly and onclick allows the user to download the file. If I have an HREF to a .docx, it doesn't prompt to the user to download the file but shows a "The page cannot be found" error page at the url of the file. Any ideas? ...