html

Positioning Columns With Absolute Positioning Instead of Floats

Hello All, I have read several articles regarding templates for web site content. They all seem to recommend that the columns should be placed on your site via floats. Example: <div id="container" style="width: 1000px;"> <div id="main_content" style="border: solid 1px Black; width: 798px; /* width = 800px -2px for border */ floa...

Dead Center for JavaScript Output

Hi - I'm going to apologize in advance for how basic this question is, but this is my first time using javascript in html.. Basically, I have a javascript that produces a different bit of random text every time a user loads the page. I'd like to format that text in helvetica and then display it centered in the middle of the page. I'm...

Any reason at all, for an extra return after </html>?

Are there any microscopic reasons at all (beyond superstition), to add an extra return after </html> in (X)HTML documents? Is there any significant reason at all, not to stop this habit of mine? (To me, it looks a lot cleaner with the last line number being the same as the last bit of code, but I'm curious to know if there are any known...

How to properly link to files with accents in their names in a LAMP envirionment

I have made a php script that iterates through files in a directory and outputs links to them. The file names are in Spanish so some contain characters like á, é, etc. My script works fine in my dev machine which is windows+apache+php, however it does not work in my hosting's server which is linux+apache+php, it does not find the file. ...

Best way to preserve user-generated HTML across a post request?

I am building a site that is an interface used to create XML files that are read as input by a server side program. The website allows users to dynamically create blocks of HTML. Each block can be thought of as an object and contains several input fields. When the user submits the form, the data is turned into an XML file. What is th...

Can I change or control the color of the IFRAME area before the content loads?

I have a site where portions of the content are loaded into IFrames. The problem I'm having is that the inside content of the iFrame is white until the page itself loads, and the content has a different background color (blue, in this case). So I have these white squares on the screen until the contents load. Is there any way to speci...

How to create a xml file at a particular location from the output generated from jsp page.

sports.jsp: <?xml version="1.0" encoding="UTF-8"?> <%@ page contentType="text/xml;charset=ISO-8859-1" %> <% response.setHeader("Content-Disposition", "attachment; filename=\"playlist.xml\""); %> <playlist version="1" xmlns = "http://xspf.org/ns/0/"&gt; <title>My Band Rocks Your Socks</title> <trackList> <%! String[] sports; %>...

How To Overlay a Div on a Container with jQuery opacity

Hi, I have a Container with Opacity 0.3 $('#containerFeatured').css('opacity',0.3) The fact is that when I try to overlay a DIV wrap with images the opacity takes the whole DIV. I tried with z-index but nothing happens. My example here Thank you! ...

How to make a textbox and a textarea same width cross-browsers?

Setting the width of both the textbox (ie. input type="text") and the textarea to 500px doesn't work in IE6 and Chrome, only works fine in FF2 (haven't tested other browsers), IE and Chrome add two pixels to the textbox. Padding and margin is set to 0 on all elements using * { margin: 0px; padding: 0px; } Changing the doctype from xh...

get HTML of current page without ViewState ASP.Net

Is there any way through which I can get HTML of my current page. By current page I mean let's say I am working on Default.aspx and want to get HTML by providing a button on it. How to get it. ...

Rendering remote content through html frame !

I want to display remote content using html 'frame'.Say i want to display the content of www.news.google.com on a frame ...how to do that? ...

elegant solution for automatic downloads

I am currently using the meta http-equiv='Refresh' to automatic start PDF downloads. however this has different effect on each of the browsers. The main problem is with IE (6 & 7) once the user is redirected to the PDF if the user click the back button they are sent back to the page that initiated the download and then promptly redirec...

Multiple Flash objects on a single web page?

Is there any significant performance/load time impact if single web page will load, say, 10 identical flash objects? 20? 30?.. any evidential data on sustainability of such kind of setup? This would be the same flash app, each instance serving its own stream. ...

how to pass parameters from html page to batch file

Hi, I have the following requirement. I need to pass parameters from html page to batch file which in turn passes the paramter to xml file.I need to know how to pass parameters from html to batch file and from batch file to xml file Thanks ...

Tabs in HTML mode in emacs.

So I've started using emacs and I love it. However, I'm a tab person. Unless I'm working on a project that is already using spaces, I use tabs. I mostly do php and html work. I've got tabs in php working well. But I can't figure out how to have html mode use tabs instead of two spaces. Here is what I have so far: (setq c-default-style...

centering text problem

I have a navigation layer, and I cannot seem to get the links to center within. This is the stylesheet I am using .Layer1 { position:absolute; width: 10%; height: 95%; list-style-position: outside; list-style-type: disc; background-color: #D2FFFF; } .Layer1 a { font-family: Verdana, Arial, Helvetica, sans-se...

How can I make a link in HTML turn a color when hovering and remove the underline using CSS?

How can I make a link in HTML turn a color when hovering and remove the underline using CSS? ...

Misuse of the CSS class attribute, or valid design pattern?

As you most likely already know, it's simple in JQuery to select all elements in the document that have a specific CSS class, and then, using chaining, assign common event handlers to the selected elements: $(".toolWindow").click(toolWindow_click); $(".toolWindow").keypress(toolWindow_keypress); As usual the class "toolWindow" is also...

Div border not re-painting after scrolling in IE7

There is a problem only in IE7 where the border of a div is not being re-painted after scrolling. If the is not in the window after scrolling then shown again it shows up as white. here is an example of what I'm talking about: http://imagebin.antiyes.com/467 I've made the border 10px to make it stand out, it should always be solid. ...

jQuery click event for document but ignore a div

I have a online Slide Show I'm working on using jQuery. I have use $(document).click event to detect when a user clicks on the page to know when to show the next bullet point in the slide or to move to the next page. The problem I'm running into is my job had me insert a comment box on the bottom of the page and when ever someone clicks...