html

Can I substitute a submit input element with an image to postback a form without using javascript?

Hello, I've seen buttons that have some nice shape. I downloaded a couple of them to try on my application. I was expecting to get an image to be used as background for my buttons and textboxes. But, The downloaded file contains 2 images and a script. It looks to me like those shaped controls are aimed at replacing the html buttons and ...

Mass CSS adaptation to IE 7

I've got 5k lines of CSS for Firefox, Opera and sometimes IE 8. After all that, account told me, that it has to work properly under IE 7. How can I do it, without rewriting 40% of code? ...

Problem with HTML/PHP script in IE

I have a page where I want to display a form if the user clicked the url for that page, and well... This script below works totally fine in Firefox and Opera, but Internet Explorer (6 in my case) just shows a blank page. Although, when I refresh after visiting the page, it shows up fine. Deleting cookies etc from the browser doesn't solv...

Make A List Item Clickable (HTML/CSS)

Hi, So I'm trying to make each list-item on my site clickable but I'm not sure what is the best way to do it. Please help me out. So here is the relevant HTML: <ul> <li>Backpack <a href="#" title="Buy on Amazon" target="_blank"><img src="img/basket.png" height="16" width="16" alt="Buy" class="buy" onClick="pageTracker._trackEvent(...

css overflow-x:auto to show only when width less than certain amount

my <html style="overflow-x:hidden; overflow-y:hidden inside have a div with overflow-x:auto; overflow-y:scroll; min-width:960px; but when my browser viewing mode is larger than 960px, it still showing the horizontal scroll bar. how to make the horizontal scoll bar only show if necessary when width less than 960? ...

show images in textarea

I have to implement gtalk like chat application using UDP in java. i have written server and client programs to send/receive text,smileys(compulsory). the problem is that image can't be displayed in text area.i want to display both the incoming text and smiley in a control.Text area won't work. please suggest some other control... ...

Maximum number of divs allowed in web page

Hi I was wondering if there is a limit to the number of divs that are allowed on a web page? For example will Internet Explorer start to choke when it has to render a webpage with a thousand divs? ...

IE8 rendering on each keystroke in textarea gets slower as page size expands

I have a page using JQuery and I've implemented infinite scrolling on a div. There is a text area on the page. I've noticed that as more rows get added to a table in the scrollable div performance of the page gets worse. You can really tell when the page size is large and you try to type anything in the text area because there is a large...

Firefox loading all css files referenced in conditional comments

I have a regular css file plus two IE specific css files. In Firebug in Firefox I noticed the same div is getting properties from the three files. Why is Firefox loading iestyle.css & ie6style.css? <!--[if IE 7]> <link rel="stylesheet" type="text/css" media="all" href="iestyle.css" /> <![endif]--> <!--[if lt IE 7]> <link rel="style...

Using custom attributes in DOM elements, with boolean value

Is there a way to add attributes to a DOM element with boolean value like this: <body test='false'></body> I need to set this without using javascript. Thanks ...

how to use css and <li> to make a 1 to 50 pixel square with no border

I'd like to use different sized squares from a to make pie shapes, but I'm having trouble with the css to make a square one pixel in height and width with no borders. Here is my current css #q-graph {position: relative; width: 300px; height: 300px; margin: 1.1em 0 3.5em; padding: 0; background: #DDD; border: 2px solid gray; list-st...

Margin/Padding where there shouldn't be

Web site: http://www.srstage.d19.us * { padding: 0; margin: 0; } works, but that is for every element I've worked out this hacky solution: #header { margin-bottom: -30px; margin-top: -20px; } The problem is there is a space at the top and under the header image. However, all the relevant elements including body seem to have its ma...

Changing images of elements using JavaScript

i have a container and below it, a table of 3 rows and a column and in each column, there is an image. i want to do such that onmouseover , the container gets filled with that image.. help me do this.. ...

ckEditor and jQuery what am I missing ?

<html> <head> <script type="text/javascript" src="jquery-1.4.2.min.js"></script> <script type="text/javascript" src="ckeditor.js"></script> <script type="text/javascript" src="adapters/jquery.js"></script> <script type="text/javascript"> $(document).ready(function() { $('#myeditor').ckeditor(); }); </script> </head> ...

create html box with custom UI

I need to create a specifci of 600px x 800px dimension and I need the box with its very own scroll bar with custom UI. i dont want to use the browser's scrollbar as that would not gel with the rest of the design. Can anyone help me with this? ...

How do I maintain text layout when using file_get_contents?

Let's say I have the following text file: This is the first line of the text file. This is the second line, and here goes the third. When using echo file_get_contents($_SERVER{'DOCUMENT_ROOT'} . "/file.txt"); The output is This is the first line of the text file. This is the second line, and here goes the third. How do...

C# read HTML/PHP files code

I want to write an application using the C# that takes a URL as a parameter/input and then get the source code of the page, extract some URLs and some text based on given criteria ... ...

Shared NSMutableString for local html filename iphone

I am relatively new to Objective C/iPhone Development. I am developing a simple app with two views using a Navigation controller. The first view contains several buttons a and the second view contains a uiwebview. The idea is that when a button is pressed it switches to the second view and the web view loads a local html file. Which h...

a:hover - using images in text navigation

Hey there! I'm trying to code my navigation on my portfolio and am looking for a simpler way of doing this than using background position and css sprites. Basically I want navigation similar to that of this website: http://www.ernesthemingwaycollection.com/ where when you hover over the navigation, a bar appears below it. Is there a s...

How to get images from over webscope using PHP?

Hi ! How can i display an image on my webpage which i located above webscope? The image is located at /home/image.jpg and the website is located at /home/www/example.com/index.php which refers to http://example.com/. I have tried this code to retrieve the image, but it does not work :( header('Content-type: image/jpeg'); read...