html

Why can't I center a <td> in IE7?

In Firefox, "C" is centered, due to the CSS blurb at the beginning. Why does IE7 left-justify it? <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <style type="text/css"> td { te...

Are fluid websites worth making anymore?

Hey guys, I'm making a website now and I am trying to decide if I should make it fluid or not. Fixed width websites are much easier to make and also much easier to make them appear consistent. To be honest though, I personally prefer looking at fluid websites that stretch to the full width of my monitor. My question comes from the fact...

Opera Scrolls Page to Invisible Elements

I'm working on a simple game engine in Javascript (crazy, I know.) Screenshot from Opera: http://img406.imageshack.us/img406/5818/gamek.jpg Although it looks like a tile engine, it's actually object-based; each row or column of grey blocks is a single <div>, positioned relative to the viewing area (box with red border). The viewing area ...

How can I insert dynamic text into a div with absolute position ?

Hi, Take a look at http://www.barelyfitz.com/screencast/html-training/css/positioning/ item 6. It says: It is not a viable solution for most designs, because we usually do not know how much text will be in the elements, or the exact font sizes that will be used. What workaround do I need to use in order to insert dynamic text into...

How to call Processing.js function from HTML?

I'm exploring HTML5 and Processing.js. When the user clicks on an image on my webpage, I'd like to call a function in the Processing.js code. Just calling the function in onclick, as illustrated in this simple example, isn't working: <html> <head> <script language="javascript" src="processing.init.js"></script> <script lan...

How to reorder a row of html input fields without getting into AJAX

Hi, I'm generating a set of rows of html input text fields, which I want my endusers to be able to reorder. I dont want to use AJAX, but am okay with javascript. I'm okay with some arrow buttons placed on the side of each row, which when pressed move the fields up and down. My issue with AJAX is that its too heavy (50-60kb) for just t...

Methods to make a layout compatible with window resize as well as font resize

Hi Guys, Is there a good advisory / best practice manual etc. out there which outlines methods to make a page layout fluid in the following two ways: a) The layout should be robust under window resize b) The layout should seamlessly handle font resizes committed by the user Every time I design a page layout I end up using different, ...

Css, child-divs and floating

Hello... I'm tired to work with this divs :(. Here is my problem: I have 2 divs: <div id="content"> <div id="row_left"></div> <div id="row_middle"></div> <div id="row_right"></div> </div> <div id="bottom"></div> css: #content { overflow: hidden; width: 100%; } Content-div is including another 3 divs, which should stay horiz...

How does Almost Standards Mode change rendering from Standards mode?

All the documentation I can find suggests that almost standards mode differs from standards mode only in the way images in table cells are aligned. This question : http://stackoverflow.com/questions/1414748/internet-explorer-8-and-checkbox-css-problem, however indicates that the rendering in IE8 and Opera changed between the two modes, ...

how i integrate html text editor in windows application?

how i integrate html text editor in windows application? ...

convert html entities to unicode(utf-8) strings in c?

This question is very similar to that one, but I need to do the same thing in C, not python. Here are some examples of what the function should do: input output &lt; < &gt; > &auml; ä &#x00DF; ß The function should have the signature char *html2str(char *html) or similar. I'm not reading byte by byte from a stream. Is t...

Avoid Multiple (40) jquery confirmation dialog boxes - reuse?

I'm working on fixing up a legacy web application with jQuery. I have a form that has 40 buttons that each have some type of confirmation that use javascript confirm. I want to switch these over to use the jquery modal dialog. I have programmed several of them like below and they work fine. Problem is that there is 40 of them on th...

What differences are expected of XHTML5 versus HTML5?

What differences are expected of XHTML5 versus HTML5? I understand that XHTML5 is the XML form of the language and HTML5 is the SGML form of the language, which means obvious minor syntax differences. Will there be any further differences? Will XHTML5 deprecate completely worthless elements that were not deprecated by HTML5? Will XHT...

Is it possible to link to an image and have the background of the page it loads into not be white?

So, using IE as my browser, I have a simple link... <a href="test.jpg">Image Link</a> Is it possible to change the background color of the page this image loads up in? I want to avoid creating a whole new page for the image. EDIT Sorry for the confusion. I thought it was pretty clear. Pascal has it right as does Guffa. from Pasc...

<input type="file" /> not showing files path

I have a file uploader but it's not showing the files path (so you can only upload files that are in the same folder) How can I make it so show's the files path (desktop/something/yes/dog.swf) ...

Storing and reading images above public_html

I am trying to secure my PHP Image upload script and the last hurdle I have to jump is making it so that users cannot directly excecute the images, but the server can still serve them in web pages. I tried changing ownership and permissions of the folders to no avail, so I am trying to store the images above public_html and display them ...

[html] Problem with text marker

Hola hola! I have a problem with my website, and that is when i visit it and click somewhere a BIG text marker is shown at the side. Visit the site urself and check? The website Just visit and click somewhere and u can see what the problem is. How do i fix this? ...

Configuring and Using HTML Tidy

I would like to use Textmate's built-in Tidy (Ctrl+Shift+H) functionality to indent my HTML 'without modifying anything' in the code. I write pretty neat HTML already, I just need Tidy to indent my code with Soft-tabs. Currently it breaks a lot of things and the formatting isn't perfect either. Can someone please write a Tidy config for...

part of the vbscript code gets trashed with hyphens

on some computers, when a client opens the specific html page, part of the vbscript code on the client side gets trashed with hyphens. i saw that the vbscript code on that page was composed of one huge code section enclosed in script start and end tags. i decided to fragment it to small sections, and it seemed better, but when i fragmene...

CSS <a> border margin issues

I've got an interesting box-model problem here. I have a header full of links, and for some reason my 0px margins are ignored and appear as 2px margins surrounding each link. I've set up a test page at http://www.gimmesomeoven.com/test.htm to illustrate the problem. Each link in the header should be a 56px square link with a 1px border ...