html

Packing and minimizing HTML and CSS

What're the best practices for CSS/HTML minimizing? I'm looking for server side tools to fasten the interaction with the browser. ...

Firefox 3.5 "hangs" when rendering TABLE

I have a simple HTML Table (10 columns x 500 rows). When the page loads I start to scroll down and the browser hangs, and won't allow me to scroll for 3-5 seconds. This usually happens around row 75-100. Sometimes I have to scroll all the way to the bottom, and start scrolling back up to the top. Either way, it is rare that I don't e...

Problem with HTML Agility Pack and Visual Studio C++

I am in need of a very simple HTML parser which can extract text, table from well-formed HTML documents in the .NET environment. I found several references to HTMLAgilityPack. My problem is that I am using the Visual C++ environment in the .NET framework. Can anyone help me with instructions on how do I add a "reference" to the C# genera...

Add a red dot and a title to an image

I've got a html-page with a picture on it and would like allow the user to click on the image to add a red dot and a title to the red dot. After adding some dots he should be able to save or print it. What's the best way to implement this with ruby on rails, html, css and (or without) javascript. ...

How to display XML in a HTML page as a collapsible and expandable tree using Javascript?

How to display a XML document in a HTML page as a collapsible and expandable tree? I'd like to display a XML document inside a HTML page as a nicely pretty printed tree structure. I'd like to be able to expand and collapse tree branches. For example Firefox browser does this when you load a plain XML file. Surely there is a some kind o...

Automating HTML font embedding PHP backend

Hi, I understand that css3.0 supports the Font-Face tag, correctly in the latest Opera, Safari, and Firefox browsers, but that Internet Explorer still requires the microsoft .eot format. Is there a reliable way to generate an eot file server side from a .ttf given that the hosting server may not be Windows? I need the entire process a...

CSS font-size property from Percent to Pixel, How to?

Hello I want to convert the font-size property value from percent to pixel lets say I have this html code <div style="font-size: 180%;"> <a href="http://www.example.com"&gt; link </a> </div> How to find the equivalent value for font-size: 180%; in pixel? Thanks ...

insert simple text into iframe ? not .htm file

hi, is it possible to insert simple text into iframe ? trying to do small texteditor with this tutorial http://www.devarticles.com/c/a/HTML/Building-a-WYSIWYG-HTML-Editor-Part-1/ and want to have some text in iframe, which i can then change.. but i don't want to get that text from some external html file. it is possible to insert te...

xhtml user attribute

Hi, Is it possible to use "user defined attribues" in html/xhtml tags? Best regards. ...

Why won't some pictures on my website show up in IE?

In my lovely new website, some of the photos are not showing up in IE(7). Here's the URL: http://highroadnewmexico.com/tour-artists.html All the artists should have photos, but some appear collapsed into horizontal lines. I've tried everything I could find on the Web... Help appreciated! ...

internet explorer 6 box model

I am working on a website and i faced a problem with internet explorer box model (padding & margin) so I tried to fix it, in internet explorer 7 i fixed it by using a appropriate doctype but it doesn't seem to work on internet explorer 6, is there any way to fix the internet explorer 6 box model ? any help is appreciated. ...

web page display problem

Hello All, I have created web pages where am using pixel to position various html elements. It works fine on my current setting (1024 *768 ).But if I change the display setting to 1600 * 1200 then the web page looks really small. Is there a solution for this ? Regards, Mithun ...

Padding in mozilla firedox and in safari

As far as i know and i think it's the standard padding will always add up to the width you specify in your css, for for example: .content{ width:100px; padding:10px; } <div class="content"></div> This div will have 120px actual width. This standard applies to IE Firefox Opera browsers. The problem is in safari it's not the same a...

Hiding a table row without resizing columns or breaking layout

I want to fold a table so that some rows are hidden. I want to maintain the size of columns, so that they don't leap around when you hide rows (this happens if you use display: none; indeed, the table width can also change). I also want the table to reflow when the window size is changed, so that a table full of data uses as much space...

javascript page source code

Is there a way to acces the page HTML source code using javascript? I know that i can use the document.body.innerHTML but it contains only the code inside the body. I want to get all the page source code including head and body tags with their content, and, if it's possible, also the html tag and the doctype. Is it possible? ...

scrollable select consistent accross browsers?

I need to create a dropdown, which can contain 100s of options. I need a scrollbar to appear and be consistent across all browsers. Google came up empty: Is there a good URL that describes if this is consistent or not? Thanks. ...

Count columns in a HTML table with php

Hay Guys, i have a basic string with holds a html table. The table looks like this: <TR> <TD>asdf, dfg</TD><TD>0915</TD><TD>0945</TD><TD></TD><TD>15</TD><TD>45</TD><TD></TD><TD>1315</TD> </TR> <TR> <TD>asdf, dfg</TD><TD>0915</TD><TD>0945</TD><TD></TD><TD>15</TD><TD>45</TD><TD></TD><TD>1315</TD> </TR> <TR> <TD>asdf, dfg</TD>...

Regex to replace reg trademark

I need some help with regex: I got a html output and I need to wrap all the registration trademarks with a <sup></sup> I can not insert the <sup> tag in title and alt properties and obviously I don't need to wrap regs that are already superscripted. The following regex matches text that is not part of a HTML tag: (?<=^|>)[^><]+?(?=<|...

How to get Javascript function's source code from specific site using firebug?

With firebug I found that clicking on the link calls javascript function <a href="#" onclick="viewHide(this);return false;"> But I couldn't find it's implementation in page source. Is it possible to get it? The site is in hebrew, but I don't think it's problem :link text to trigger for this function click on any comments title that f...

How to detect character set encoding?

For example, chinese text(GB2312) is pasted into a text box(or text area) of a html page and the form is posted. At the server side, is there any means by which this character set gets detected? How would this detection behave if texts belonging to different character sets are pasted in a text box? ...