html

Web / HTML design methods and tools

Since I'm new to the world of professional web/HTML and ASP design, I'm curious of what others in the field use when building pages from nothing. I'm not one to use MS Word to design my page or form, and then just stick it on the net. My background in UI design is really in Win32, then MFC, WTL, and now some Winforms... But, I'm findi...

Automatic selection of <p></p>-text rendered in browser

Hello who would know of a possibility to automatically select Paragaph text as it gets rendered in a browser, preferably using JavaScript? In my case I have an amount of text in <p></p> tags and would like the page to appear with the text fully selected, just as if someone had done it manually with the mouse. Many thanks for your sugg...

Why are Doctype declarations split on two lines?

I know there's more important questions to discuss probably, but at the cost of appearing a fool, I'd like an answer ;-) Take this for instance: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; Is it to comply to the 80 column standard? Also, i normally use single quotes in my HTML as they...

Prevent Wrapping of Containers (span or div)

I'd like to put a group of div elements of fixed width into a container and have the horizontal scroll bar appear. The div/span elements should appear in a line, left to right in the order they appear in the HTML. (essentially unwrapped) This way the horizontal scroll bar will appear and can be used instead of the vertical scroll bar f...

Why would browser text be larger on a particular browser/machine?

On a website I made, one person sent me a screenshot which shows that my subtitle font is too large. I've checked the site on two machines (Vista) with FF, IE6, IE7, IE8, Safari/win, opera/win. I can increase the font size of the browser, but the subtitle stays the same size (since it is 8pt as shown below) which is what I want (so it ...

Can Javascript read the source of any web page?

I am working on screen scraping, and want to retrieve the source code a particular page. How can achieve this with javascript? Please help me. ...

How can I detect a Scrollbar presence ( using Javascript ) in HTML iFrame ?

How can I detect a Scrollbar presence ( using Javascript ) in HTML iFrame ? I have already tried : var vHeight = 0; if (document.all) { if (document.documentElement) { vHeight = document.documentElement.clientHeight; } else { vHeight = document.body.clientHeight } } else { vHeight...

ASP.NET bug iframe hides textboxes?

Well here is my problem: I have a table with an iframe in the first cell and then some rows below I have some textboxes and buttons. But as long as the iframe is on the page the buttons and textboxes do not show up. What am I doing wrong? <table> <tr> <td> <Iframe/> </td> </tr> <tr> <td> <input type="password"> </td> </tr> </table> t...

IFrames in HTML

Hi everyone i am using iframes in html.loading different html pages into iframes.in that html pages i have image. whenever i load the image into iframes i getting flickering. can we stop that flickering by using Iframes How to do ? Thanks & Regards Ravi Kumar ...

Styling A Link Button Using CSS Across Browsers

UPDATE #2: I have solved almost all my issues bar the one major one. With the same structure and CSS IE7/6 displays each a with 100% width of it's container. I need this to no happen. Besides that everything else is fine. Can anyone enlighten me? UPDATE: Should Look Like This I have the following html page (detailed below). It...

JavaScript rounded corners with transparent background

I'm looking for a JavaScript library that can create round corners on div tags with a transparent background, such that the background colour/image of the parent element is visible at the rounded corners. For an example of rounded corners without a transparent background, have a look at the left menu on this page. Notice that the backgro...

jQuery Animation problem using nested tables

Hi, I have a problem with animations using jQuery on nested tables. I want to make a table that is a bit like a treeview, with a little + / - to expand and get more details about the clicked row. How can I modify the following code for the animations to work both in Internet Explorer 6.0+ and in Firefox ? I can change the markup or the...

Web page restrictions for use on iphone / smartphones

I want to allow our main application to generate document files that can be easily read on the iphone, or other smart phones. The easiest way to do this, I think, is to create a simple HTML file and use javascript to show / hide different bits of it. For example, when the user clicks / touches "section 1", the section expands to show its...

name of form input causes errors.

I have never seen this, have no idea what is going on: <form action="/cgi-bin/Lib.exe" method=POST name="slider" ID="Form2"> <input type="text" name="user" value="" ID="Text1"> <input type="text" name="end" value="" ID="Text2"> </form> function setval() { alert(s.getValue()); alert(s2.getValue()); document.slider.user.va...

Select dropdown with fixed width cutting off content in IE

The issue: Some of the items in the select require more than the specified width of 145px in order to display fully. Firefox behavior: clicking on the select reveals the dropdown elements list adjusted to the width of the longest element. IE6 & IE7 behavior: clicking on the select reveals the dropdown elements list restricted to 145px...

How can I position a web page in the middle of the screen?

How can I position a web page in the middle of the screen? like the pages on stackoverflow web site? I'm writing the masterpage of my website and I want to use HTML and css to position the master page in the middleof the screen and then build the inside positioning block using css. But I can't get my page to be visualized in the middle!...

What is the best way to achieve a multi-column layout in CSS and HTML?

I have a problem in HTML. I have divided the HTML page into two columns: My code: <div id="outer"> <div id="inner1"> <div id="data1"> </div> <div id="response"> </div> </div> <div id="inner2"> <div id="data2"> </div> </div> </div> My CSS: #outer { background-color:#FFFF99; } #in...

calling javascript from a html form

I am basing my question and example on Jason's answer in this question I am trying to avoid using an eventListner, and just to call handleClick onsubmit, when the submit button is clicked. Absolutely nothing happens with the code I have. Why is handleClick not being called? <html> <head> <script type="text/javascript"> fu...

Creative ideas for display large amount of text on web page

I have a 2 column table in a database 1,000 rows long(All integer data). The display will allow for the user to delete a certain range of data from the table. What I am looking for is a creative way to display all the data so the user can get to different parts of it really fast. Maybe displaying different chunks at once, represent wit...

Generating browser side web page thumbnails

I want to generate a thumbnail of a web page in the browser, so I can have multiple scaled down iFrames within a single page. IE can do this using filters. Mozilla can do this inside a <canvas> with drawWindow() if you have Chrome privileges (like an installed plug-in). Is there any way to do this in WebKit? Is there any generic cross ...