html

How can I use templates to generate static web pages?

I want to add one HTML file into another. For example: I have header.html and footer.html Now I am trying to create aboutus.html where I want to add these two HTML files there is no dynamic code in these file except JavaScript. How can I do this without using any scripting language except JavaScript and CSS? ...

Table which doesn't shrink while resizing

Hello, Can someone please tell me how to create a table which doesn't shrink when the window is resized. I tried creating a table with a fixed width, but it causes problems in the Print Preview.I also tried white-space:nowrap which also didn't help. Can someone please help me to fix this. ...

Using HTML to present stuctured data

I have a question about how to present some structured data using HTML. I have some tree-like data, which you might normally present using sections and subsections (i.e. <h1>, <h2>, etc.) and/or using nested lists (i.e. lists whose items contain lists of sub-items). An example of this data is a to-do list, which has tasks that include ...

Why does the DIV tag render differently in IE8 and Firefox?

Why do div tags render differently in IE8 and Firefox? Is there a way to have them rendered the same? This is a very general question, the reason I ask is I am fighting both browsers when using div tags, some elements are not rendering the same. ...

Webpage design with embedded flash flv videos...

I need to create a webpage for a family website that has a video section in it. There are about 50 videos that the server will be hosting. I'm looking for an photo album like list where people can scroll through and click on a video and start watching it. Are there any good webpage templates that someone can point me to? ...

Is there anything like hpricot or beautiful soup for php?

Possible Duplicate: Robust, Mature HTML Parser for PHP I am looking for a good way to parse and modify html documents server side in php. Beautiful soup and hpricot look like very good tools but they are not available for php. Are there any good libraries that can do this in php? Tidy appears to be partially what I am looking fo...

How to stop text in table HTML

How to stop text from make the table width longer and make a new line insted ...

JavaScript - Form OnSubmit works but Action doesn't

On my FORM, for some reason, I can get my form input variable via onsubmit but not using action. This works: <form onsubmit="javascript:myFunc(this.city.value);"> <p><input type="text" id="city-field" name="city" onfocus="this.select();" /> <input type="submit" value="Find" /></p> </form> This doesn't work (this.city.value is fou...

How to refresh <DIV>

How to refresh the auto refresh div inside the div theres is php The following code dont work? var refresh = setInterval(function() { $("#recent_activity").html(); }, 1); ...

Repeating a section of an image in CSS

I want take a section of a picture, for example the middle of a picure, and repeat only that section in the background of a div. Is this even remotely possible? I suppose I could do this in javascript, but that would be messy. In theory the answer to my question should be able to take a single pixel from a picture and repeat it in a li...

Only allowing selection of one radio button in a form with PHP

A very basic question... How can I only allow the selection of one option in a list of radio buttons? <form action="process_repair.php" method="POST"> <label for "repair_complete">Repair complete</label> <input type="radio" name="Yes" value="true"> <input type="radio" name="No" value="false"> </form> When this code runs, it's po...

Javascript timing problem.

I wont to run a block of code in a certain amount of time and then when done, carry on with another block of code. ...

IE space below image?

How can I fix this page for Internet Explorer? It seems to add a space below the background images for some reason.. http://orangeguy.biz/profile/ The design is like this: ------------------ | TOP IMAGE |<- base_top.png ------------------ | | | | base_...

Is machine readability a valid point for xhtml if it does not validate?

I often run across developers that insist on using the XHTML doctype and when I ask why they common response is that its "machine readable". Once the project is underway the markup does not validate. Now that their markup does not validate...is machine readability valid anymore? I assume that if it does not validate it can't be process...

jquery ajax and html

Does anybody know how to execute javascript functions in an html that is loaded via ajax? I mean the html contains both plain text and javascript. In my case it seems that only the in-line javascript (eg. onclick="dosomething();return false") gets executed. The pre-defined functions which are wrapped by < script language = "javascr...

Basic Html style font-family question

<span style="font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif;"> content </span> Does this mean that there is going to be a priority list for the specified font families on the client, i.e. if no 'Segoe UI' will check for Tahoma, no Tahoma will go for Arial and so on? Answer with YES or NO will be good enough! ...

Ajax Open, Close Effect

Can someone tell me how to do an animation like this: http://dageniusmarketer.com/DigitalWonderland/Animation inside my current site, which is dageniusmarketer.com/DigitalWonderland/ I would like for the window where you see all the text content, to open and close as you go thru the navigation links to open up a new page (close the o...

Custom attributes - Yay or nay?

Recently I have been reading more and more about people using custom attributes in their HTML tags, mainly for the purpose of embedding some extra bits of data for use in javascript code. I was hoping to gather some feedback on whether or not using custom attributes is a good practice, and also what some alternatives are. It seems like...

Non transparent div inside a transparent div

I am creating a webpage that have a transparent div. I want to add a non-transparent div inside that transparent div and I find that it is also transparent. I try to set the div inside to opacity:1 but it doesn't work. What should I do? ...

Reading HTML content from a UIWebView

Is it possible to the raw HTML content of a web page that has been loaded into a UIWebView? If not, is there another way to pull raw HTML content from a web page in the iPhone SDK (such as an equivalent of the .NET WebClient::openRead)? Thanks in advance! ...