html

CSS max-height not working

I have a very simply problem where I need a div to expand to fit its contents unless the height reaches a certain size, when I want the div to scroll vertically instead. As a test, I created a page containing: <div style="width:300px;max-height:25px;background-color:green;overflow:auto;"> 1<br /> 2<br /> 3<br /> 4<br /> ...

How do I detect when a web page is loaded?

I want to write an application that detects when a page is loaded in the browser, then I should be able to insert content on top of the loaded web page? Anybody with an idea on how to do that? Please note that I should be able to do this in any browser (Firefox/IE). What language should I use to help me do this? How do I detect this f...

CSS font size: relative vs. absolute values. Which to use?

What's the best way to size text across browsers? What are the advantages and disadvantages of defining font size in pixels / em? ...

How can I improve my HTML and CSS?

I am frustrated by my lack of aesthetic judgment. As a developer, I have a hard time just to create a decent looking website. The question is where can I learn all the necessary CSS skills or are there things like "Effective CSS design" that allows me to Pick up CSS quickly Use it to make beautiful looking website? I will apprecia...

Turning TIMESTAMP sql into 12 hour time

Hi, I am writing an app that allows people to schedule things for certain times and then displays them. The time of the event is stored in the database as an sql TIME, because there are things im doing in the DB that need this structure. However, on the output page i want the time to be in 12:00 am/pm format, but i dont want to run a c...

What is the best way to write HTML from Python?

I have figured out how to extract the information I need from a PDF file using PDFMiner in Python, and now I need to write out a modified version of the document with only the information that's needed as an HTML file. The new version will be archived online to a repository, and a printed copy shipped with the unit. What is the best wa...

editable div content in html 4

Hello, Wondering if there's any not-too-hard way to edit non-form text in html 4. I know there's a contentEditable property that can be set in html 5, but I want better browser support than that will give me. It seems like gmail is doing something like this in their chat status indicator. This works properly on IE6 (which I don't believe...

IE7 DIV border printing problem

I have a web page that renders the same in IE7, Firefox, and Safari - except when printing. IE7 appears to allocate too much space for borders when printing. In the example below, the box heights plus borders should add up to the same height in the 2 columns. I set the borders to 10px to exaggerate the problem. I hate CSS hacks, and so...

How to get the HTML output from a DataGrid?

Hi, I was wondering if there was a way to some how get the HTML output of a DataGrid. I want the raw HTML after the data has been bound to the grid. Is there some sort of overload for the render method I can use to accomplish this? Thanks. ...

Using diff to find the portions of many files that are the same? (bizzaro-diff, or inverse-diff)

Bizzaro-Diff!!! Is there a away to do a bizzaro/inverse-diff that only displays the portions of a group of files that are the same? (I.E. way more than three files) Odd question, I know...but I'm converting someone's ancient static pages to something a little more manageable. ...

How to use storeHtmlSource in python code (Selenium RC)

I found storeHtmlSource method description in Selenium reference, but can't figure out how to use it in python code I generated by exporting recording of my actions from the Selenium IDE. I need to pass the html source code of the current page into a function for processing. How to do that? Can anyone show example of code for calling th...

Meta-refresh doesn't work?

I have a page using something along the lines of <meta http-equiv="refresh" content="0;url=http://example.com/" /> but for certain users on a certain workstation this doesn't work. The is in IE. Is there something wrong with cookies or a setting somewhere which would cause this to fail? I never heard of such a thing. ...

Need Flash / Lightwindow Help Fast

I'm trying to finish up a Flash website for my company, and am having some major frustrations with Lightwindow links in Flash. I have a "Videos" page that has a few links, that when you click on one, it opens a Lightbox with a .SWF that plays the video. The problem is that the top of the Lightwindow and the Flash menu bar get in the way ...

How can I get whitespace between tags to not show up?

I am trying to create a menu using anchor tags, and they should butt up next to each other, so related links can be connected with a border. Here is some example code: <html> <head> <style type="text/css"> a { border: 1px solid #939393; margin: 15px; padding: 8px; } a:hover { border-color: #11...

How do I do URL rewriting in php?

This is a double question: The correct answer will go to "How you do it in PHP" explaining if there is any advantage goes also counts if possible. I'm just curious because I really don't know and I see it a lot in webpages. Edit: I don't know the technical name, but for example here in stackoverflow: http://stackoverflow.com/posts/edit...

Placing a div inside a table cell

I'm trying to get a DIV element into a table cell, in a way in which the DIV spreads along all the cell's area. But, for unknown reason, a 1px border appears; as far as I know, it's neither part of the table or the div (table has no borders, padding or spacing, and the div has no margin or padding). Perhaps you can spot me the bug? <htm...

HTML formatting Problem : MS Word Document Generation with OpenOffice 2.4

I am using Openoffice.org to convert HTML document into a Microsoft Word document. We used divs to create a formatting block, but Openoffice is ignoring it. So we are forced to use tables and those, too are spilling out of the generated Word document on the right side. So i was wondering if there was any other way, where I can have form...

Base 64 encode vs loading an image file.

So I am working on something in php where I have to get get my images from a sql database where they will be encoded in base64. The speed of displaying these images is critical so I am trying to figure out if it would be faster turn the database data into an image file and then load it in the browser, or just echo the raw base64 data and...

Can you do this HTML layout without using tables?

Ok, I had a simple layout problem a week or two ago. Namely sections of a page needed a header: +---------------------------------------------------------+ | Title Button | +---------------------------------------------------------+ Pretty simple stuff. Thing is table hatred seems to have t...

Jquery - Dialogue not displaying correctly on IE6

I am trying to use bgiform but it seems to have no effect. The text in IE is pushed off of the screen of the dialogue box when its displayed. It works fine in FF. Any ideas? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xht...