html

How do I keep whitespace formatting using PHP/HTML?

I'm parsing text from a file and storing it in a string. The problem is that some of the text in the original files contains ASCII art and whatnot that I would like to preserve. When I print out the string on the HTML page, even if it does have the same formatting and everything, since it is in HTML, the spacing and linebreaks are not ...

What is currently the best way to get a favicon to display in all browsers that support Favicons?

What is currently the best way to get a favicon to display in all browsers that currently support it? Please include: Which image formats are supported by which browsers. Which lines are needed in what places for the various browsers. ...

How do I make an HTML page print in landscape when the user selects 'print'?

We generate web pages that should always be printed in landscape mode. Web browser print dialogs default to portrait, so for every print job the user has to manually select landscape. It's minor, but would be nice for the user if we can remove this unnecessary step. Thanks in advance to all respondents. ...

Filter out HTML tags and resolve entities in python

Because regular expressions scare me, I'm trying to find a way to remove all HTML tags and resolve HTML entities from a string in Python. ...

Link to samba shares in html

First off if you're unaware, samba or smb == Windows file sharing, \\computer\share etc. I have a bunch of different files on a bunch of different computers. It's mostly media and there is quite a bit of it. I'm looking into various ways of consolidating this into something more manageable. Currently there are a few options I'm looking...

Can I stop .NET eating IDs?

I'm an Information Architect and JavaScript developer by trade nowadays, but recently I've been getting back into back-end coding again. And, whilst trying to get an HTML prototype integrated and working with our C#-based CMS, I've come to blows with our programmers over the HTML ID attributes being arbitrarily rewritten by .NET for for...

Which HTML WYSIWYG tool do you recommend?

Why? Which of Microsoft Expression Suite is recommended for developing a web application (no silverlight or WPF support needed). Which all products available today in the market are standard compliant? ...

Why do I cannot jQuery my page under Internet Explorer

Hello. I have very strange problem. Under some elusive circumstances I fail to apply any jQuery selector on my pages under IE. It's OK under Firefox though. jQuery function simply returns empty array. Any suggestions? Page is too complex to post it here. Practically any selector except #id -ones retur zero element array. jQuery versio...

Simple Ajax/PHP contact form with validation

Does anyone know of a complete Ajax/PHP contact form that includes error handling/form validation and requires minimum effort to setup? It must also still function in cases where JavaScript is disabled. I'm pretty much looking for a plug and play solution (well, as close to it as possible). ...

jquery tablesorter plugin

Im using the tablesorter plugin ( http://tablesorter.com ) and am having a problem with column widths in IE7, it looks fine in firefox and sometimes in IE7. here's a screenshot of the problem: IE7 View and here's how it's supposed to look: Firefox view ...

Java: JApplet, How do you embed it in a webpage?

I searched for this subject on Google and got some website about an expert sexchange...so I figured I should just ask here instead. How do you embed a JApplet in html on a webpage? ...

If you were programming a calendar in HTML would you use Table tags or Div tags?

I converted my company's calendar to XSL and changed all the tables to divs. It worked pretty well, but I had a lot of 8 day week bugs to work out initially owing to precarious cross-browser spacing issues . but I was reading another post regarding when to use tables v. divs and the consensus seemed to be that you should only use divs fo...

How to escape < and > inside <pre> tags

I'm trying to write a blog post which includes a code segment inside a tag. The code segment includes a generic type and uses <> to define that type. This is what the segment looks like: <pre> PrimeCalc calc = new PrimeCalc(); Func<int, int> del = calc.GetNextPrime; </pre> The resulting HTML removes the <> and ends up like th...

How do you get the footer to stay at the bottom of a Web page?

I have a simple 2-column layout with a footer that clears both the right and left div in my markup. My problem is that I can't get the footer to stay at the bottom of the page in all browsers. It works if the content pushes the footer down, but that's not always the case. Update: It's not working properly in Firefox. I'm seeing a st...

IE6 rending UL's incorrectly

Sometimes IE6 will render the text of a UL list the same color as the background color, if you select it, they show back up, or if you scroll the page up and back down. Its obviously a rendering bug, but I was wondering if anyone knows of a workaround to make it reliable? ...

Is there a max number of options (values) in HTML drop down control?

Does anyone know how many options a drop down list can have? Is it unlimited? How many before performance degrades? ...

blockquote vs div

Is there any benefit in using a blockquote over a div? I was looking at a website's mark up to learn css and I couldn't figure out why the blockquote was being used. EDIT: Yeah sorry I didn't clarify, it was used to hold the div tag with username as text and an input tag. There was clearly no quote. ...

Is there a standard HTML layout with multiple CSS styles available?

When it comes to web-design, I am horrible at producing anything remotely good looking. Thankfully there are a lot of free sources for design templates. However, a problem with these designs is that they just cover a single page, and not many use cases. If you take a look at CSS Zen Gardens, they have 1 single HTML file, and can radicall...

Images not displaying in WebKit based browsers

For some strange, bizarre reason, my images in my website just will not display on webkit based languages (such as safari and chrome). This is the image tag `<img src="images/dukkah.jpg" class="imgleft"/>` Not only does it not display in the website, it wont display when accessed directly at http://kilkin.massiveatom.com/kilkin/image...

Max length for html text areas

What's the best (cross browser) way of restricting the maximum number of characters that can be entered into an html textarea? ...