html

Should I use <button> or <a>, submitting a styled web form

For my html form, it seems that I'm unable to create cross browser hover and pressed states for <button>. I really want this as it creates good user feedback (and a polished look and feel). With <a> it's easy to do, but it breaks accessibility rules. What should I do? As requested, an example: <form name="contact" action="index.php"...

problem with my menu

hi is andrea from rome I created a macro for my menu on the left and it is ok I would use the same macros for the menu to the right without creating another, help me, there can, What should I do? thanks so much <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE xsl:Stylesheet [ <!ENTITY nbsp "&#x00A0;"> ]> <xsl:stylesheet versio...

How can I do width = 100% - 100px in CSS?

In CSS, how can I do something like this: width: 100% - 100px; I guess this is fairly simple but it is a bit hard to find examples showing that. ...

html select option separator

How do you make a separator in a select tag? New Window New Tab ----------- Save Page ------------ Exit ...

Can you target <br /> with css?

Hi, wondering if anyone knows if it is possible to target line-break tag with css. Basically all I want to do is have a 1px dashed line every-time there is a line-break. I am customising a site with my own css and cannot change the set html, otherwise I would use some other way. I don't think it is possible but maybe there is a way someo...

Why won't an HTML form load into a Javascript-created iframe?

So, in pure HTML, I can create a form that loads its results into an iframe (instead of moving the user to the result url). <html> <head> <title>Google Preview</title> <style>iframe { width: 800px; height: 600px }</style> </head> <body> <form method='get' action='http://www.google.com/search' target='results'> <l...

RegEx-how to parse html page for pattern (in JavaScript)

I need to parse the html page for a patern. I am assuming that the matches are loaded into an array. And then I need to output the contents of the array. <script language="JavaScript" type="text/javascript"> var adBookmarkletData=[ '<html><head><title>MYSA Yahoo! APT Debugger</title></head><body><center><div style=\"background:#ccc;colo...

C# library for (x)html compliance

Hi, Curious if anyone has come across a C# library which will clean up invalid html. Basically our CMS has some areas where we allow users to enter in HTML, and invariably this leads to some poorly formatted code. Example - if someone puts in: <div><span>blah blah blah</div> We'd like to rip out any unterminated tags to end up with...

Html TextEditor

I need html/css text editor, that is: free quick (no java or like) no wisywyg can autocomplete attributes and styles i write <script type="", autocomplete should show me list with text/javascript I like Notepad++, but cant find smart autocomplete for it, as in visual studio. Windows or Linux, no Mac please ...

Insert one HTML file in another dynamically?

There are 2 html files, file-1.htm and file-2.htm. There is another html file, test.htm, with a drop-down having 2 values, "Load Sample-1" and "Load Sample-2". This is what I am trying: When "Load Sample-1" is selected from the drop-down, file-1.htm should be loaded as a nested html in test.htm. Right now I am able to achieve this thro...

SELECT element in the multiple selection display style without allowing multiple selection

I want to have a element that displays in the multiple selection display style (it --the box instead of the drop down), but only allows you to select on thing at a time. Is that possible? ...

HTML & Javascript: Using a customized Text Input for Password input

Hi all, I don't think I'm the first one in the world who want to re-invent the wheel for the password input in HTML. I keep Googling but still unable to find the solution. Okay, here is the work I'd done: h t t p: / / www.symplik.com/password.html (It just a plain html code, nothing really fancy :>) The "password" is indeed a text i...

jQuery idTabs plugin link options

Hi, I am using jQuery idTabs plugin. I want to give click link (href) feature and using default options with this feature. How can I do? <ul class="idTabs"> <li> <a href="#div_1" href="google.com"> Hover call div_1 and Click Call go to google </a> </li> </ul> Note: I am using hover feature > $("...").idTabs("!mo...

Cocoa - Prevent caching of Javascript in WebKit - Safari Beta 4 bug?

I have a Cocoa app containing a WebView. I'm targeting the 10.4 SDK due to the app's installed customer base. (i.e. I cannot require Leopard.) I have two files: index.html and data.js. At runtime, in response to user input, I write over the data.js file, often, populating it with current data from the app. (The data.js file is used b...

html select scroll bar

how do you add a scroll bar to the html select box? is there any javascript library that emulate this behavior? or is there anyway to redesign, the interface I have 2 select box, items can be shifted to the right select box via >> & << Filezilla, norton commander, total commander kind of interface where items can be shifted left and ri...

set charset in rails application

I'm trying to setup my charset in a html view in a RoR application. I configured already the charset by meta equiv tag: **meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" ** It didn't work, so i tried to change my .htaccess (its a RoR application running under apache) but here is my problem. Normally i could use th...

What new browser features are available today?

It's the year 2009. Internet Explorer 8 has finally been released, and Firefox is coming up to 3.5. Many of the large browsers are starting to integrate features from CSS3 and HTML 5, or have been doing that for quite a while now. Still, I find myself developing web pages exactly the same way I did back in 2005. A lot of progress has b...

HTML to text conversion in shell script

I wrote a shell script to convert HTML source to plain text using lynx. Here it is: #!/bin/sh if [ -f = "/usr/bin/lynx" ] then if [ -f = "$1" ] then lynx -dump $1 > $2 else echo "File $1 does not exist!" fi else echo "Lynx is not installed!" fi Now, although lynx exists in the right direct...

change html text from link with jquery

Hello, a simple question here Is there a way to change the text "click here" <a id="a_tbnotesverbergen" href="#nothing">click here</a> in this link Richard ...

Simple css question about div's

I have a very simple page like this !!@#@ apparently I cant add link to my page on jsbin since new users aren't allowed to add links. I want to have certain amount of gap between different options provided to the user (say 15px). Code I have is following: <div id="question" > What month is it? <div style="padding-right: 15...