html

What is the best way to left align and right align two div tags?

What is the best way to right align and left align two div tags on a web page horizontally next to each other? I would like an elegant solution to do this if possible. ...

Table row height in Internet Explorer

I have the following table: <table> <tr> <td style="height: 7px; width: 7px"> A1 </td> <td style="height: 7px"> B1 </td> <td style="height: 7px; width: 7px"> C1 </td> </tr> <tr> <td style="width: 7px"> A2 </td> <td> B2 </td> <td style="width: 7px"> C2 </td> </tr> <tr> ...

Counting web page fully loaded elements in javascript

Is there any way to find out that how many elements are going to be loaded in a webpage via javascript? for example, I'm going to show the visitor something like this: 3 objects loaded, 10 ones remain! please wait. ...

I have a linux box. How do I see how my html pages look as rendered in IE?

I have a linux box. How do I see how my html pages look as rendered in Microsoft Internet Explorer? How do I test javascript functionality in IE? I don't want to install a VM and a copy of the Windows OS. ...

Html minification?

Is there any online tool that we can input the html source of a page and it will minify the code? I would do that for aspx files that are not a good idea to make the webserver gzip them... thanks! ...

Does Google 'understand' microformats and will it help my SEO?

Semantic HTML makes it easier for Google to crawl and 'understand' a website but what about microformats? Are microformats any more semantic/crawlable then standard HTML markup? ...

How to display HTML in a text Area

Dear all, I save formatted text (bold, changed in font, style...etc) in an nvarchar(max) field, its for some Description field, on another stage, I want to be able to edit this description, so in the Editing Page, I read the original inoformation, fill it in the fields and wait for the user to change it and save, this is working for all ...

Select Box not in line in IE

Ok, didn't really want to ask this question as it should be quite a simple solution, but I've spent hours trying to resolve it to no avail. I have a web page with a text box, and then a select drop down next to each other. In Firefox and chrome they line up fine next to each other, but in IE the select box sits higher than the text box. ...

Can javascript access iframe elements from the parent page?

I have iframe on a page, the iframe and the parent page are in different domain, can a javascript code on the parent page access elements inside this iframe? ...

How can one use scroll bar images?

How can I replace the scrollbar's images using HTML/CSS? I have: scrollbar-base-color: #00acee; scrollbar-dark-shadow-color: #00acee; scrollbar-track-color: #ffffff; scrollbar-face-color: #00acee; scrollbar-shadow-color: #00acee; scrollbar-highlight-color: #00acee; scrollbar-3d-light-color: #00acee; Can I use an image to...

Convert HTML (WSDL/XSD doc) to MHT in a MSBuild step

Folks, I have some HTML generated from my WSDL and XSD files for a web service, and I'd like to convert thos two HTML, along with some images (company logo) and CSS file(s), into a single MHT file during my continuous integration, so that I can distribute it to customers (other devs outside the company using this web service). I'd li...

Show/Hide table elements that were randomly generated using click event

I have multiple tables that are randomly generated. I only want the first row of each table displayed with the rest of the rows hidden. When I click on the visible row for a table I want the rest of its rows/contents to show/hide. How would I accomplish this using Jquery? ...

Html for Snail Mail Addresses

What do you think is the best way to markup a snail mail address? I found some different options such as: <div class="address"> <span class="name">Mr. Bob</span><br/> <span class="street">45654 Bob Ln</span><br/> <span class="city">Imaginery</span>,<span class="state">OH</span><br/> <span class="postalCode">44321</span> </div> I also ...

How do you set the heights of cells in a table that expands to fill the window in IE?

I am trying to construct a simple, one-column layout. I want the top two rows to have smaller, fixed heights. The third row should expand to fill the rest of the page. Here is my current source: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; <html> <head> <style type="te...

CSS spacing issues with Safari?

I have made a list based navigation bar for my newest project and I have added two information bars on each side of the navigation. It is coming out as desired in Firefox and IE but oddly enough Safari is acting up. It is making a large space between the navigation bar and the right side information bar. CSS body{ background-color...

strange javascript form behaviour.

I am generating the following html form with this php: echo "<form name=\"userForm\"> Username: <input type=\"text\" name=\"username\" /> <br /> First name: <input type=\"text\" name=\"firstname\" /> <br /> Last name: <input type=\"text\" name=\"lastname\" /> <br /> <input name=\"Submit\" type=\"submit\" value=\"Update\" onclick=\"submi...

How can I Convert HTML to Text in C#?

I'm looking for C# code to convert an HTML document to plain text. I'm not looking for simple tag stripping , but something that will output plain text with a reasonable preservation of the original layout. The output should look like this: Html2Txt at W3C I've looked at the HTML Agility Pack, but I don't think that's what I need. ...

auto adjust container <DIV> height to accomodate absolutely positioned child <DIV>s

is there a way to auto adjust container DIV height to accomodate absolutely positioned child DIVs? i'd like to get something like +-----------------------+ | container | | +------+ +------+ | | | chld | | chld | | | | 1 | | 2 | | | | | | | | | +------+ +------+ | | +------+ |...

What do I do after printing HTML in my Perl CGI script?

What should you call after printing HTML from a Perl CGI script? I have seen empty return statements, exit statements, and in some cases nothing at all. Does it matter? #!perl print "Content-type: text/html\n\n"; print <<'END_HTML'; <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1...

Image in a PHP File

I have a text link in a php file, but I want to make it an image link. The current code is. $link="<a target='_blank' href='/stuff/morestuff/?url=".rawurlencode($url)."'>".t("Add")."</a>"; Now instead word "Add" I want to have an image in there. My current syntax to do that isn't working though, my error is Parse error: syntax error,...