html

Is there a good tool for XSL previews?

Hi guys, I'm a LAMP web developer in Perl and at my current place we use some black magic in using Perl to retrieve the data, throw them into a XML and then pass the XML to an XSL file. And this is all handled magically by the almighty AxKit. Thus you can probably imagine that my XSL is full of XSLT lines, i.e. if test,@value etc. I wa...

What is the best CSS trick to reduce how much HTML you need?

What is the cleverest CSS technique that lets you use less HTML? One of the advantages of using CSS well is that it can let you simplify your HTML, and produce look-and-feel effects entirely in the CSS. In the beginning this was just replacing deprecated HTML presentation mark-up and spacer-GIFs with CSS, but recent years have shown mor...

rotate text from a horizontal to a vertical position

Is it possible to rotate text from a horizontal position to a vertical on a single point without using something like flash? So I would read the same text normally by tilting my head. I was thinking you can do this in jquery but couldn't find a plug in. ...

Using CSS page breaks, but within an absolutely positioned DIV

I am using the ASP.NET AJAX ModalPopupExtender on a page. The popup contains details of one or more customer orders that need to be printed out. Each order needs to be on a separate page. I should be able to use the CSS page-break-after style, but this does not work in this scenario as the ModalPopupExtender causes the containing div to...

Portable relative URLs - folder to domain root

I want to write URL that work regardless whether the base URL is either of: http://example.com/myfolder/ http://example.com/ E.g. <a href="other.html">Other</a> Should go to http://example.com/myfolder/other.html http://example.com/other.html respectively, But instead in both cases they go to: http://exampl...

Question about mouse over and use <ul> <li>

I want to create a drop down menu with submenu, but have problem for one thing, My button appear under the text of main menu. How can I bring it up? see the source: <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt;&l...

How do I prevent line breaks between a radio button and its label, while still allowing line breaks within the label itself?

I'd like to ensure that there's never a line break between a radio button and the start of its adjacent label. However, I want text within the label to be allowed to wrap. Is this possible? You can see my failed attempts by rendering the following HTML: <html> <head> <style type="text/css"> .box { border: solid gray 2px; width: ...

Joomla 1.5 Iframes

I have a joomla 1.5 installation and for some reason when ever i put in an iframe into the site joomla strips it out. I copy and past this code into the code editor and chose save and it will remove it. How do i make it stop this? <iframe src ="client_login.html" width="100%" height="300px"> <p>Your browser does not support iframes....

Force <div></div> to the bottom of the web page centered.

Hi, I have a <div>...</div> section in my HTML that is basically like a toolbar. Is there a way I could force that section to the bottom of the web page (the document, not the viewport) and center it? ...

Paging Through XML Data Using jQuery and HTML

I've got an XML file that contains a list of questions. I'd like to load the first question in the list when an HTML page loads and load the answers as radio buttons. When one of the radio buttons is selected, I'd like to display the results as well as a continue button. The continue button would go to the second element in the XML file....

Creating a Survey using jQuery - Any examples?

I'm looking for a very basic survey/wizard example using jQuery and HTML. I'd like it to connect to a text file or XML file and be independent of SQL, PHP, ASP.NET, or any other scripting language outside of JavaScript. TIA UPDATE: I'm looking for a solution that will ask a single question at a time. Then, based on the multiple choice ...

Semantic HTML markup for FAQs

I want to build a questions and answers page. It is not a list, it is not tabular data and I am not sure if or how I should use <dl><dt><dd>. What is the best semantic way to build it and to format it with css? ...

IE: Conditional commenting linking to file

Hello, all. I'm using conditional commenting in IE to fix some CSS problem that i'm having with IE7. I have a all.css file that work on firefox and ie7 with some execptions that will only fix the IE7 css problem. I put my fix on all_iefixes.css both files is in App_Themes/Default/ folder. I use have a master page (Default.master) that ...

How can I build an alphabetical accordion with XSLT?

Given the following XML: <databases> <database> <title_display>Aardvark</title_display> </database> <database> <title_display>Apple</title_display> </database> <database> <title_display>Blue</title_display> </database> <database> <title_display>Car</title_display> </databas...

Understanding CSS selectors

Why is it that the below makes the text red? #stories li a {color:red} .default li.expand a {color:green} li.expand a {color:blue} <ul id="stories" class="default"> <li>this is the end</li> <li class="expand">this is the end</li> Only if I put #stories on the others will the text change. Does a # have more dominance even tho...

How to make the output text attribute value as a hyperlink?

I should display the bookmarks as hyperlink.so on clicking the bookmark will take me to corresponding web page.Can any one tell me how should i achieve my goal?Thanks. <html> <f:view> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> </head> <body> ...

Whats the best way of caching images on my website ?

I have a website www.somesite1.com which gets all its image content from www.somesite2.com At the moment each time an image is to be displayed we simply use an absolute URL to get it like this <img src="http://www.somesite2.com/images/myimage.jpg" /> So each time a user goes to www.somesite1.com for content www.somesite2.com gets...

Handling events from HTML anchor tags in ExtJS

I have a large application built in ExtJS and am looking for the best way to handle custom events from anywhere in the application. For example I might want to put an anchor tag in some text in the application which will open a custom component in my app. At the moment I listen to clicks on the body and if the target has a css class appl...

Finding all classes that match a pattern in an HTML document?

I got to thinking today: what is the best way of getting a distinct (ie no repeats) list of classes used in a document that (preferably) match a pattern (regular expression) pattern or (alternatively) start with a certain character sequence? JQuery can be used for this or just straight Javascript. Now it should obviously cater for all ...

IE Input type text weird behavior.

Hi, I have a google suggest like utility on my page. It automatically fills a value in one of input type text box. In IE, after the value is being filled. It doesnt allow mouse to click in between and curor jumps to the end always. Also with the left and right keys,the cursor jumps to the beginning. What's the cause. Thanks <div id='in...