html

Why does all browsers do not set all output perfectely ?!!?

This is an html page : <html> <head> <title> Frame Set </title> <script type="text/javascript" src="jquery-1.4.2.min.js"></script> <!--<script type="text/javascript" src="frame.js"></script>--> <link rel="stylesheet" href="frame.css" type="text/css" media="screen" /> <script language="JavaScript" type="text/javascript"> $(document).rea...

How can I expand' a Flash Movie to Move Other Objects out of it's way on the HTML Page

I have a question regarding flash. I am an intermediate flash user. Basically, I want a flash movie to expand like this homepage video, when the user clicks on the go button: http://www.vitsoe.com/en/gb Is it possible to "expand" the borders of a flash animation in such a way, and if so, how do I set this up in flash? Is it possible to...

Creating dropdown with the first option only as heading.

I want to create a dropdown in such a way that the first option should be avaialable only as a heading. eg: more Sectors Sector1 Sector2 While displaying the dropdown it should be shown with "more Sectors " as the heading.On clicking the dropdown for selecting a particular option, the option "mor...

PHP Header Location Change of Parent Frame

Hi, I have an iFrame that does some background processing. When this processing is complete I would like to re-direct the user to another page, but the header change code is only affecting the embedded iFrame. Is there a way to target the main window? ...

CSS Navigation Sprite - Odd Shapes [not square]

Hey there everyone. I usually have no problems with making CSS sprites, but this one has got me stumped...and I'm not sure how to solve it. Basically I have a navigation sprite that looks like this: http://cl.ly/aa4a5e78eda252e8f4d7 I'm using the standard convention of laying them out in <li> tags such like: <li class="welcome"><a h...

How to let text adapt to a set table width instead of stretching the table?

Hi, I thought that this would make a table with a set width, and that text would automatically try to fit in by starting on a new line. However, the table still gets stretched by long lines of text. <HTML><center><table width="300" border="1"><tr><td> <?php If (file_exists("file.txt")){ Echo nl2br(file_get_contents("file.txt")); }E...

Setting\Placing a DIV(CSS Layer) with table cell as reference

you may skip the following HTML code to proceed to actual question <!-- Some HTML Code--> <table width="100%" height="100%" border="1"> <tr> <td rowspan="03" width="20%">&nbsp;</td> <td width="60%">&nbsp;</td> <td rowspan="03" width="20%">&nbsp;</td> </tr> <tr> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> </tr> </table...

Firefox bug - dynamic input element

Bug: http://www.chubbyfish.co.uk/bug.html I'm dynamically creating the 3rd input field, and then adding a value to it (of "input 3 value"). Refresh the page several times and you'll see input4 and input5 get filled up with the same value. Why? Any ideas?! If you can fix it I'll buy you a luxury yacht and a new house! ...

Should I write script in the body or the head of the html?

I have seen both ways, both implementation work just the structures are a bit different. In your experience, which work better and why? ...

Need help with Javascript html parser for specific needs.

My problem is bit complex, I will try my best to explain it. What I am trying to do? I want to provide users with a script that they can add to their webpage/blog which will highlight cretain text on their web pages and put a menu/box their which displays on hover. Something like kontera. To do this, I am doing the following: 1. Pa...

How can I prepopulate "Add Event" fields when user clicks date in iPhone UIWebView?

Since iOS3, the UIWebview component has had the ability to automatically detect and highlight dates within a UIWebView. Pressing the date brings up an actionsheet with an option to "Create Event" in the local calendar app. Unfortunately, the modal dialog that appears next contains ONLY the date, and no other information about the event. ...

html/css irritating default behaviour

Here's the problem : I have 2 div - The first one has a float:left - The second one has a margin-top Now why, WHY does that margin-top is also applied to the first div ? Here's a demo with background colors to get the idea : http://dl.dropbox.com/u/4225936/whyyyyy.htm -Edit : I'm not looking for a solution but for an explanation of ...

can i include ie conditional comments inside an opening tag

basically I'd like to know if this code is ok <body id="some_id" <!--[if lt IE 7 ]>class="ie6"<![endif]--> > </body> ...

Chunked transfer encoding ... example HTML document

Hi, I would like to know how to implement a chunked HTML document. How it looks? Can anyone post an example of an chunked HTML ducument, because I can't understand how to prepare my HTML document for using the Chunked transfer encoding. Thansk! Cheers Nik ...

Special Google Search Result - How to achieve this? (look at the attached image)

look at the following image when searched for some websites... various websites show the above kind of result on google.. like serach for stackoverflow, flickr, deviantart, Hotmail and so on HOW TO ACHIEVE THIS... ...

Printing API-Generated Google Maps from Internet Explorer

Hello, Having an odd problem printing an API-generated (V3) Google Map from Internet Explorer 7 & 8. I generate my map with JavaScript similar to the following: <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"&gt;&lt;/script&gt; <script type="text/javascript"> function initialize() { var centroi...

WordPress remove <br/> separator from last item in wp_list_categories

Hi, I'm trying to remove the last separator (normally a <br/> tag but I changed it to "//") from the last link from wp_list_categories. Basically I want this: Category 1 // Category 2 // Category 3 // to look like this: Category 1 // Category 2 // Category 3 Here's the current code I'm using: <?php $cat_array = array(); $args=arra...

problem with <select> and :after with CSS in WebKit

Hi, I would like to add some style on a select box with the pseudo :after (to style my select box with 2 parts and without images). Here's the HTML: <select name=""> <option value="">Test</option> </select> And it doesn't work. I don't know why and I didn't find the answer in the W3C specs. Here's the CSS: select { -webkit-appea...

Resizing videos for mobile browsers

Anyone have any ideas how to resize videos from youtube and vimeo for mobile browsers? I'd like to do by percents...but...some videos don't like to use percents.. ...

Pretty-printing Wordpress HTML output for development purposes

Is there a simple way (plugin / function) that uses Tidy or some other lib to pretty-print Wordpress's HTML output? It's unreadable as it is and it's almost impossible to write a theme with proper indentation with all the includes / hooks going on all over the place. Performance is not an issue as this only needs to be active for devel...