html

Multiple <script> tags and <!-- //required for FF3 and Opera -->

I've used Spring Roo to generate a basic web project. The UI is JSP based, with a Tiles layout. Looking at the default layout code, I noticed that tags were defined as follows: <script src="${dojo_url}" type="text/javascript" ><!-- //required for FF3 and Opera --></script> <script src="${spring_url}" type="text/javascript"><!-- //req...

Object Element Content for 508 Compliance

One of the 508 compliance rules are that all OBJECT tags should contain element content. I'm not familiar with OBJECT tags or anything, but what should the content usually be? I noticed if I just put any string within the OBJECT tags I seem to pass the 508 test. Is it acceptable to put anything within the OBJECT tags to make this pass v...

Button type submit not working in IE6.0

Hallo Friends, I need a button with text on it in 2 lines. The length of the text is more than the space i have for it.:-) Image is not of my preference. I have used the following code <tr> <td align="center"> <button type="submit" name="add_invoice" id="buttonstyle"> Add to Ready for<br /> ...

CSS next element

if i have a header tag <h1 class="hc-reform">title</h1> h1.hc-reform{ float:left; font-size:30px; color:#0e73bb; font-weight:bold; margin:10px 0px; } and after that i have a paragraph <p>stuff here</p> how can i say using CSS that every <p> tag that follows the h1.hc-reform to use: clear:both; would that be: h1....

Storing web page with selection modified in IE

I'm working on a javascript extension for IE and I'd like to capture the HTML of a page and add an anchor and highlighting around the current selection. I've gotten this mostly working several different ways, but each approach has problems. I'd like to leave the original page unmodified, which is harder than it seems. For example, I've t...

100% Height <div> based on floating sibling

I have a container div with a floating left-hand navigation pane and a content pane to the right: <div id="header"></div> <div id="container"> <div id="leftnav"></div> <div id="content"></div> <div class="clearfix"></div> </div> <div id="footer"></div> CSS: body { text-align: center; /* IE center div fix */ } #contai...

Simple CSS Query

<div class="priceBox"> <a href="#"> <div class="priceBtn"> <span class="priceBtnTxt">Order Now</span> </div> </a> </div> What CSS properties would any of the classes need so that priceBtn is centered within priceBox ? ...

HTML hiding content in the middle of UL or OL

Hello! I have long text that gets hidden if it exceeds 300 characters. Hiding is done with a <span> that has style="display:none;" set. Basically, after the 300th caracter the rest of the content in wrapped inside that display:none span. The algorithm is clever enough not to break text in the middle of a tag, so the invisible span wil...

HTML CSS Remainder of space

How do I get the footer to take up the remainder of the page's vertical space without actually knowing how tall the content is? I can't figure out how to use javascript/css to accomplish this... Just to be clear... Scenario 1: The content ends halfway through the page, the footer would take up the remaining half. No scrollbars necessar...

Google classic home: September 7, 2010

Can anyone explain exactly what is going on with the Google homepage today? It seems like a lot of divs moving around? Not a canvas in sight. http://www.google.com/ ...

In PHP, why do I have to execute the removeChild method twice on a DOMNode from which I have just removed the style-attribute?

I have a script in PHP which removes empty paragraphs from an HTML file. The empty paragraphs are those <p></p> elements without textContent. HTML File with Empty Paragraphs: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!-- This page is used with remove_empty_paragraphs.php script. This page contains empty parag...

With three divs, how to make one float to the right?

I have three divs: <div class="A">A</div> <div class="B">B</div> <div class="C">C</div> I want them to be positioned like this: A C B Where C should always be in the top right corner of the container they're in. How do I go about this in CSS using only the three divs and in that order? I've tried a lot of different combination...

content not allowed in prolog from document created by DOM when printing using flying saucer

I'm trying to print some text using my flying saucer (https://xhtmlrenderer.dev.java.net). The document is generated using DOM-API but when the print starts there is a 'content not allowed in prolog' exception. What is the reason for this exception? My code is this: DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory...

Getting rid of the blue focus rectangle on input boxes in HTML/CSS?

I'm running Mac OS so I can't really tell if this effect is presented on windows machines or not, so I apologize if this effect is not seen for you. Input and TextFields seem to have a blue rectangle when focused, atleast on Firefox and Chrome on a Mac. I have a custom focus effect on a site, and I'm wondering if I can avoid having thi...

Expire the page after submission

I'm implementing an iAuth form for a credit application in a J2EE container (JSTL+JSP+Stripes). The vendor states in the implementation guide: Expire the “Questions” page after answers submission When performing iAuth transactions you will need to “expire” the page on which the consumer's questions will be displayed after they h...

How can I keep css rules of tags containing text the same before and after I put them inside <li> tag?

Hello, I've difficulties to set up css rules of tags containing text inside li tag. Anything inside li becomes anormaly smaller. To make it readable, I need to make it bigger in an important scale (for instance, from .8em to 1.1 em). Unfortunately, the new text's size doesn't always match the one before it was put inside the anchor tag....

Adding a doctype w/o killing off current functionality

I had to repurpose some old code for a rush job, and while that code QA's fine it turns out not to have a doctype declared. When I add a doctype, it breaks the design in IE. Ideally, I would be able to declare whatever doctype is assumed when none exists, but don't know if that's possible. Is there a way I can declare a doctype without c...

CSS-only tooltips - problem w/z-index?

My goal is to use CSS ONLY for some tooltips. I like the solution here: http://sixrevisions.com/css/css-only-tooltips/ The problem I'm having is when hovering over the first "qwer" (the second TD of the first TR), you can see the second "qwer" (second TD of the SECOND TR) over the tooltip. I've been playing with the z-index propertie...

HTML frame problem

This is the code of the main page: <frameset cols="12%,19%,69%" framespacing="0" frameborder="NO" border="0" name="mainframeset"> <frame src="1.html" name="maoinFrame" scrolling="no"> <frame src="2.html" name="mainFrame" scrolling="yes" noresize="resize" > <frame src="3.html" name="bottomFrame" > </frameset> 1.html is a blank page...

How to capture HTML of redirect page before it redirects?

I am trying to read the HTML of a page that contains a non-delayed redirect. The following snippet (C#) will give me the destination/redirected page, not the initial one I need to see: using System.Net; using System.Text; public class SomeClass { public static void Main() { byte[] data = new WebClient().DownloadData("http:/...