html

2-column auto-layout by CSS?

Given a <div> Lorem ipsum dolor sit amet, consectetur adipiscing... </div> is it possible with CSS to generate a 2 or 3-column layout automatically, say by specifying the height of the container? If not, what are best practices in such a case? Thanks for your help. ...

Submit form to parent window WITHOUT Javascript

The application I am developing needs to work in a browser without javascript. At one point I use an a_link to open a popup window (using target="_newname"). On that page I present a form which I need then to be submitted to the parent windows page. tried <form target="_parent"> without success, all the information I can find online...

What's the point of using the "cols" attribute of the <textarea> tag in HTML?

The "cols" attribute is required in valid HTML but I don't see the benefit of using it. Do you? ...

Why tool tip is not displaying for page title in 'chrome'?

I have a html page <!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/xhtml"&gt; <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>page title</title> </head> <body> </body> </html> But t...

Unable to select a particular radio button choice by clicking on the choice text

<s:decorate template="/layout/display-text.xhtml"> <h:selectOneRadio layout="pageDirection" value="#{_userHome.pref}"> <f:selectItems value="#{_userHome.getPreferences()}" /> </h:selectOneRadio> </s:decorate> We are able to select the user p...

Specifying width and height as percentages without skewing photo proportions in HTML

I was wondering if in the width and height attributes, I could specify width and height as percentages? Well, I guess that is obvious, because when I try so, it resizes, but it appears to skew the quality of my image. Here is an example of my markup with fixed attributes: <img src="#" width="346" height="413"> Now, while trying to ...

how to group the components to a fixed position on the screen in asp.net?

hi, i am designing an registration page in asp.net.to group the components(label, ddl and text boxes) i am using panels,but while running the page positions of components are changing. How to fix components to a particular position? thanks with regards, radha ...

Why does adding a DOCTYPE affect my CSS?

I am wondering why the following HTML/CSS renders fine until I put a doctype in: <body style="margin:0; padding:0; background-color:#eeeeee"></body> <div id="HeaderContainer" style="background-color:#eeeeee; color:Black; border-bottom:1px solid #cccccc; height:60px; margin:0px"></div> <div style="width:100%; background-color:White; ma...

Referring to a sandbox file from HTML with iPhone

Hi, I'm trying to build a HTML based application for the iPad. I want to build a background process using Objective-C to download images and data and then refer to those from within a HTML file using the UIWebView. I can successfully download an image and save it to the Documents sandbox directory. In the simulator I can see the pat...

Using jQuery to show/hide list items

Hi all, All of this is code is here: http://jsfiddle.net/yrgK8/ I have a "news" section which is composed of the following: <ul id="news"> <li><p>asfdsadfdsafdsafdsafdsafdsafdsafdsa</p></li> <li><p><a href="http://google.com"&gt;google.com link</a</p></li> </ul> ...

How do I update row style on AJAX update?

I've got a datatable with row styling applied via rowClasses on the datatable. The rows contain AJAX buttons. When a button is clicked, it does some databasy stuff, updates it's text, and changes the datasource used by the datatable. The datatable then refreshes (as it's one of the ajax render options). The text of the buttons update...

How to handle non-English characters extracting from MySQL database?

I am extracting text from a MySQL database table, collation is set to utf8_general_ci. In PHPMyAdmin, I can see the characters correctly: "La consiglio fermamente anche perchè ho già acquistato iWrap per il mio:" But when I extract it myself it prints out this way: "La consiglio fermamente anche perch� ho gi� acquistato iWrap per il ...

HTML pagination

Is there any opensource project for html pagination? I am developing an app for iPhone. I want to display an HTML file on UIWebView and I dont want user to scroll down for seeing the remaining content not being displayed on screen. I want to display the remaining content on the second UIWebView. How can I accomplish this. Any suggestion...

How to find the HTTP links in HTML mail using regular expressions in JavaScript

Hi I am working on mail client application. I want to show all HTTP links as clickable hyper links. I have noticed that some clients are sending HTTP links without enclosing them inside the anchor tags. In this case I am failing to show those links as clickable links. My requirement is to find all HTTP links in a HTML mail and need...

Is there any way to return HTML in a PHP function? using a string

i need to return information from a php grab function in html so i can post it in my form. ...

Extra scroll with IE7

Hi all, I have the following website (and please excuse the language of the site, it's in Hebrew), and I apologize for posting a link here. I promise to replace the link with something generic as soon as the problem is fixed: EDIT: original site replaced with this: http://mysite.com For some reason, there's an extra scroll to the left...

How simple CSS breadcrumbs work.

I am trying to imitate this tutorial about creating a simple Apple-themed breadcrumb found here: http://www.jankoatwarpspeed.com/post/2008/08/14/Create-applecom-like-breadcrumb-using-simple-CSS.aspx Even after looking at the updated example and downloading the source code from here: http://www.lostsockdesign.com.au/apple-breadcrumb/inde...

Html: 2 td's, how to align them center??

Hello, below is the code for Submit and Cancel button. When i have 3 buttons, i aligned the middle one as center. So all the 3 buttons looked good on center. But for something like this, with 2 buttons. How can i align them in the center of tr. With this code it shows on bit left side. Thanks!! <tr align="center"> <td style="width...

Remove individual td's during deleting rows using jQuery

Hello all, In my web application, I was dynamically adding/deleting rows from my HTML table using jQuery. I had a requirement that I needed to delete individual td elements(and not entire row). My jQuery code is as follows: $(function () { /* adding new row to existing table */ // HTML template of a row $("#contactInfo")...

How can I use a link to open file automatically instead of showing open save dialog?

I am trying to open a PPT file. I don't want to show the Save As dialog. I instead just want to open the file immediately on click. How can this be done? ...