xhtml

CSS Menu (Can't get the tabs to full height)

<style type="text/css"> html, body { background: #fff; margin: 0; padding: 0; } #nav { font-family: Verdana, sans-serif; height: 29px; font-size: 12px; padding: 0 0 0 10px; /* this is used for something else */ background-color: #456; } #nav ul, #nav ul li { list-style: none; margin: 0; paddi...

Trying to Add Radio Inputs (+Labels) To An Example Form

<style type="text/css"> body{ font-family:Helvetica, sans-serif; font-size:12px; } p, h1, form, button{border:0; margin:0; padding:0;} .spacer{clear:both; height:1px;} /* ----------- My Form ----------- */ .myform{ margin:0 auto; width:400px; padding:14px; } /* ----------- basic ----------- */ #basic{ bo...

How can I create a menu in HTML without using Javascript?

Since many years a GUI-standard are the menu-bars of applications with menus popping up, if you click or hover an entry in the menu-bar. Some websites implement this feature too, but they are using Javascript, as far as I can see. For different reasons Javascript can be a problem, so the question: Is this possible to implement without J...

How to access HTML element without ID?

For instance in the snippet below - how do I access the h1 element knowing the ID of parent element (header-inner div)? <div id='header-inner'> <div class='titlewrapper'> <h1 class='title'> Some text I want to change </h1> </div> </div> Thanks! ...

Web pages and barcode fonts

I'm working on a small app where I can generate a list of barcodes. I have the correct fonts installed on my computer. Right now I am printing them directly to a webpage and it works properly in Chrome and IE 7, but not Firefox. Does anyone know what Firefox would be doing differently than IE and Chrome? Here is my code: <html> <he...

is using class names like 'right' considered bad practice?

If I have class names such as "left", "right", "clear" and xhtml like <a href="index.php" class="right continueLink">Continue</a> With CSS like .right { float: right; } I know it's not a semantic name, but it does make things much easier sometimes. Anyway, what are your thoughts? ...

What do you wish you knew before you spent hours trying to fix a bug in IE6

Mine would have to be the float and margin bugs... If you float an element, and then specify a margin for it, it will double the margin. The solution to this is to add display: inline to the element. This will stop the double margin, and all other browsers will ignore it because only block level objects can be floated. ...

C# code to convert XHTML doc to plain text

I'm writing a utility to export evernote notes into Outlook on a schedule. The Outlook API's need plain text, and Evernote outputs a XHTML doc version of the plain text note. What I need is to strip out all the Tags and unescape the source XHTML doc embedded in the Evernote export file. Basically I need to turn; <note> <title>Test Sy...

Cross Browser dropdown/popup menu over a flash movie

I need to make my dropdown menu apprear over the top of a flash movie, how is this done cross browser? It can be done, IBM do it: http://www.ibm.com/us/ so do GE: http://www.ge.com/ Setting the the WMODE to transparent doesn't work for Firefox Putting it into an Iframe doesnt work below IE7 Any one know the best way to achieve this? ...

What's the diference between the different XML parsing libraries in PHP5?

The original question is below, but I changed the title because I think it will be easier to find others with the same doubt. In the end, a XHTML document is a XML document. It's a beginner question, but I would like to know which do you think is the best library for parsing XHTML documents in PHP5? I have generated the XHTML from HTML...

what is the correct way to include license information on an element within a microformated block of xhtml?

Seems like rel-license only applies to pages not to specific elements... anyone spotted usage for page elements in the wild? ...

Internet explorer creates horizontal scrollbar for vertical scrollbar's width

A div, containing a table has the following CSS styling: #formulaAlts{ float: right; height: 200px; overflow: auto; } This makes it so that when the table is >200px, a scrollbar appears only for the table and the other elements on the page stay put. Great! Now for our friend IE... In IE, the element spawns the vertical...

Center Align on a Absolutely Positioned Div

div#thing { position: absolute; top: 0px; z-index: 2; margin: 0 auto; } <div id="thing"> <p>text text text with no fixed size, variable font</p> </div> The div is at the top, but I can't center it with <center> or margin: 0 auto; ...

<noscript> in <head>

Am I allowed to place <noscript> in the <head>? ...

Why won't this XHTML form validate?

Any ideas why this won't validate here: http://validator.w3.org/#validate_by_input It seems the form input tags are wrong but reading through the XHTML spec they should validate fine. Any ideas? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.o...

xHTML IE7 MIME-Type

Can someone tell me method to define the MIME-Type of a static XHTML File as text/html …. I don’t want to use php, asp.net…….. javascript would be ok ...

What are the different doctypes in html and what do they mean?

As the title describes, what are the different doctypes available and what do they mean? I notice that the layout looks a little different in IE7 when I switch from <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > to <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1...

HTML 5 versus XHTML 1.0 Transitional?

It seems that HTML 5 is going to be supported (partially) by Firefox 3.1 and other browsers. It is adding support for video and audio as tags, but these are new tags that XHTML 1.0 Transitional does not recognize. What is the behavior supposed to be if I use a new HTML 5 tag in a future version of Firefox but use the DTD for XHTML? And w...

Using XPath: find last text node of each paragraph under the root node.

I want to trim trailing whitespace at the end of all XHTML paragraphs. I am using Ruby with the REXML library. Say I have the following in a valid XHTML file: <p>hello <span>world</span> a </p> <p>Hi there </p> <p>The End </p> I want to end up with this: <p>hello <span>world</span> a</p> <p>Hi there</p> <p>The End</p> So I w...

Display HTML in an Actionscript 3 project

Folks, I am pulling all my Flash (pure AS3 project, not Flash CS3) content from a Drupal back-end for SEO purposes. This works great, except the HTML rendering built into the TextField object leaves a lot to be desired. Could anyone recommend any libraries that would allow me to display HTML elements? At this stage, commercial or ope...