html

CSS table cellpadding and cellspacing?

Possible Duplicate: How to set cellpadding & cellspacing in CSS? i have a little problem, i don't know how i can make my CSS style to remove cellpadding and cellspacing. i hobe i can be helpet. ...

html table - by rows or columns

do all browsers support html table by columns first. i know you can do: <table> <tr> <td></td> </tr> </table> but can you build up a table by columns first? Is there anything wrong with doing cols first? ...

Figure out which checkboxes have been selected in a form in php

Hi all, I have a form with several checkboxes. When I submit it to another php page, I am wondering: How can I tell which ones are checked without calling isset on every checkbox name? (if there is a way). If I give each of the checkboxes the same name, then only the last selected checkbox is returned. Thanks, Michael ...

Multiple image upload without flash

Hello. I want to use HTML and PHP for 9 or more images upload. The problem is that I don't want 9 upload fields because it looks bad. Does anybody have any suggestions ? Maybe examples ? Thanks. ...

Problem with IE using 960.gs

I'm using the 960.gs CSS framework on a site and have hit problems almost instantly with IE (7, though I assume 6 is no better). <html> <head> <link rel="stylesheet" href="design/reset.css" /> <link rel="stylesheet" href="design/960.css" /> <link rel="stylesheet" href="design/text.css" /> </head> <body> <div class="conta...

Joining 2 XPath Queries

I'm having a hard time with XPath here.. Given the following XPath queries: $xpath->query('//input[@name="' . $field . '"]'); $xpath->query('//select[@name="' . $field . '"]'); Is is possible to combine them into one single query? I want to get the value of the field, however I don't know if the field with be a input, select, textarea...

How to quickly do a sitewide batch replace of CAPS HTML tags into lowercase

I have a whole bunch of HTML code throughout pages on my website and they've got all the tags and their attributes in CAPS which I don't like aesthetically, and there are a bunch of other inconsistencies and poor coding. Is there a tool or macro of some kind that can convert all the tags sitewide relatively simply without manually steppi...

Adding rounded corners to a nav bar CSS

I have nav a bar on my site but I want to put rounded corners on each end of it. So far my css for this is.. #nav { left:40px; position:relative; top:140px; } #nav a { background-image:url(../images/menu.png); background-repeat:no-repeat; color:#FFFFFF; display:inline; float:left; font-family:Arial,Helvetica,sans-serif; font-size:17px; ...

PHP Regex match all HTML tags

I am reading contains of an HTML page for some details, I'm searching for every occurrence of a string, that string comes withing a tag, I want to read just that string only. Example: <a href="http://www.example.com/search?la=en&amp;q=javascript"&gt;javascript&lt;/a&gt; <a href="http://www.example.com/search?la=en&amp;q=PHP"&gt;PHP&l...

Title appears right aligned!

http://www.perfectclaims.com/ppiclaimsnew/ I dont understand why the first part of the title is right aligned? any ideas? Thanks ...

Forms, Post and submit buttons

I feel a little silly asking this but I wanted everyones opinion on it. I want to submit a page, target itself, on the press of a button but carrying one piece of data with it. Example: Edit | Delete On the click on edit, I want the page to reload with $_POST['example'] === "edit" or something. I don't want to use $_GET and I don't w...

failed to change page character set in meta

Code as follows: <meta http-equiv="Content-type" content="text/html; charset=utf8" /> But when I browse the page using IE, it still uses its default charset, which is not utf8. And the page becomes normal only after I set the character set to utf8 manually. Why the HTML failed to inform browser of its character set? It's on local f...

JQuery - "highlight" effect help

Looking at the "highlight" JQuery effect: http://docs.jquery.com/UI/Effects/Highlight You can change the background color of any DIV to fade in/out However, the example is to "highlight" on a "click" event $("div").click(function () { $(this).effect("highlight", {}, 3000); }); How can I programatically call the highlight meth...

Arranging elements on the screen and saving their positions

Hi, I want to build a tool (with HTML5, JS and CSS3), which helps customers to arrange elements on a website mockup (e.g. text blocks and pictures). I want to save the position of these elements in order to reconstruct the whole mockup website later. Maybe a grid system would be the best? I would be happy to get some ideas on approa...

jQuery - auto size text input (not textarea!)

Hi, How do I auto-resize the input type="text" field with jQuery? I want it to be like 100px wide at the start, then make it auto-widening as user inputs text... is that possible? ...

How to center image of variable width in DIV on page?

I have an image of variable width that I'd like to center in a container div, which will be centered on the page. If I set a width on the div and give it a margin: 0 auto, it will center, but the problem is that the image inside of the div is of variable width, so I can't set a width on the container div. Any suggestions? Clarificatio...

load a document string into an iframe

I have a string (fetched via ajax), which is an entire html document (doctype to < /html>). Does anyone know of a way to load it into an iframe? I cannot simply specify the url that returned the document in the src of the iframe, since the response may have come from a post, and repeating it may have ill effects. Also, I can't submit it...

Is there a way to set the CSS information for a particular instance of YUI DataTable?

The place were I wnat to use the YUI DataTable is in a wiki that allows HTML and javascript. I have created the custom table, put it in a div and gave it an ID and it works really well except that it usees the CSS from the container wiki page and visually it is not presentable. I would like to be able to set the CSS information for this ...

How to submit a form using onChange

i need to submit values of 3 different options in a form, but I'm very inexperienced in using ajax. I have 3 different list of options/select values and whenever one of the option is selected it'll submit all the other 2 options. I've only managed to submit a single option but unable to submit the rest of the options. I need some expert ...

Hide index.php (or index.html) of an URL

When I type the address of my site in a browser (mysite.com), it redirects to mysite.com/index.php. Why not to index.html ? Because I changed it in the conf file in Apache 2.2 . Now I would like to hide the last "index.php" part. How do I do that ? Would it be different it was index.html than index.php ? Wouldn't be ugly if by lookin...