xhtml

How to make div expand all the way to the right.

The demo page: CLICK HERE I have made a picture to show: As clearly seen in the picture, there is a gap from the div left_bg and the div middle_bg. The left_bg has no content, and its width should be fluid and fit inside it's div container top-container. Just to help demonstrate the gap I have it set left_bg to width:500px. However, ...

Official XHTML 1.1 DTDs vs. official XHTML 1.1 XML Schemas

I have the option of validating XHTML 1.1 documents against the official XHTML 1.1 DTDs (I use the plural because the "main" DTD actually includes several others) or against the official XHTML 1.1 XML Schemas. Now I know that the XML Schema language is more expressive and powerful and can therefore check for more things. What I'm wonder...

Dynamically added video object to page, how to get plugin player to recognize it?

I've used javascript to dynamically add an object element of type video/mpeg to a web page, but the plugin that is to play the video doesn't handle the new object. Other possibly relevant details: The web browser in use is Opera for Linux Devices, I can connect to Opera Dragonfly and see the new object being added to the DOM as a new ch...

Website menu displays funny in all IE before IE 8

Hi all, I am new to CSS and have coded my first site with CSS. I will admit to not fully understanding CSS yet but would like to learn. I have heard about special XHTML & CSS coding being needed for older IE browsers but really don't know what CSS code is causing the trouble. The website is here. The problem is with the top and bottom ...

CSS3: Transparent Rounded Corner Problem.

Site is located here: CLICK TO VIEW THE WEBSITE Here is an image of the problem: As you can see, using CSS3 border-radius, and background: transparent I was able to make what looks like a "cutout" from the div. The problem should be obvious that the corners are transparent as well. I know I could just use an image and problem would b...

How to make uneven text wrapping (not square or round) like this with semantic and clean HTML, CSS?

How to make text wrapping like this with semantic and clean HTML, CSS ? With compatible in all browser. Adding different classes to <p> is the only solution I'm thinking if there is no other solution. but with that way every time client would not be able to change classes, which is drawback. ...

Three part dynamic spacing wo/Table and Absolute Positioning

I'm trying to place 3 divs within a larger div such that the center one is 800px wide, and centered, and the other two fill the space remaining. I cannot use tables, nor can I use absolute positioning, as I have html below that must be outside the three divs but inside the larger div. I can get the center div: .center-div { width: 8...

how to validate noscript+meta refresh tag in xHTML?

For visitors that don't support JS I'm redirecting them to a certain page "js.html" For this I have the following in all my files: <noscript> <meta http-equiv="Refresh" content="0;URL=js.html" /> </noscript> Of course, this doesn't validate in xHTML as noscript must be placed in <body>. But when I place that code in the body of my do...

Nested Doctype tags

Let's say I begin an HTML file with the usual DOCTYPE declaration. However, let's also assume that another instance of a DOCTYPE tag is introduced inside the body of that document via some soft of included content (eg. a content template). From my testing this doesn't seem to be a problem. But I was wondering if anyone know of a situa...

Replacing document.write()s in an xhtml+xml page

I work for a company that writes software which client sites embed with < script language="JavaScript" src=..... etc. etc. We depend quite a bit on document.write to write elements out to the page. One of our clients for some reason has opted to use the content-type "application/xhtml+xml", which makes document.write() unusable in chrome...

Cufon canvas partially covers a clickable area

Hi everybody, I'm experiencing a problem with Cufon text-replacement library. Take a look at: http://www.dgform.com/new/ Next to the "Twitter" header there's a bird icon, which should be clickable, unfortunately the Cufon canvas - which strangely takes a lot of blank space after the last letter - lays partially on the image, so that ...

using access key for browser to underline the first character of all links with access keys

I am trying to figure out how to use the dom to access the access keys of each access keyed link and underline the first character of all of the links on the page when the access key is pressed. i.e. when the person presses alt in IE and Chrome all of the first letters of the links underline letting the person know which key to press. ...

IE Javascript error checking on Microsoft virtual PC........

I'm checking IE 6 issues of a xhtml css page on locally using VPC image of Microsoft Virtual PC. IE6 showing a JavaScript error. In VPC image i doesn't have MS Visual Studio installed. Web-page has many JavaScript. How to know from Which script and where in script this error is coming?. I can know on My PC with the help of Visual St...

Javascript or regex solution to make markup XHTML compliant

I have an inline markup editor built into my website, which should produce XHTML compliant markup. But as you can see, it uses the deprecated font tag and size attribute. <font style="font-family: Courier New; color: rgb(0, 0, 153);" size="2"> asdfa <span style="color: rgb(0, 51, 0);"> a <font size="5">fds</font> </sp...

PHP solution to sanitize user formatted input and make XHTML Strict compliant

What are best solutions for making user formatted input safe + script/flash free XHTML Strict compliant Tidy converts HTML to XHTML Strict. Any similar/alternative options that does this plus sanitizes and removes embedded scripts and flash? ...

Firefox/XHTML: creating and appending nodes

I'm trying to replace a bunch of innerHTML references in code with DOM-compliant node stuff. <html> <body>hehe</body> <script type="text/javascript"> var myDiv = document.createElement('div'); myDiv.setAttribute('id', 'myDivID'); document.getElementsByTagName('body')[0].appendChild(myDiv); var tex...

How can I use HTML entities in QueryPath?

I tried this: qp(QueryPath::XHTML_STUB, NULL, array('replace_entities' => false))->find('title')->text('T&iacute;tulo teste'); This way, I still get <title>T&amp;iacute;tulo teste</title> ...

Error found in xHTML output due to PHP's variables, $_SERVER and <ADDRESS>

I'm having this problem with validating a document that contains some basic PHP variables. Mainly I'm using html's h1, h2, and pre codes for formatting the text. My problem is that when I validate the document, it comes out with an error. The problem area is this part of the file: <h2>Server Info</h2> <pre> <?php echo $_SERVER; prin...

Name field in the input type for checkbox

Hi, I went through many online documents for checkbox input in XHTML. Can anyone clear my doubt? I mean what does this name field actually stand for? Milk: <INPUT type="checkbox" name="checkbox" value="Milk"> Chocolate: <INPUT type="checkbox" name="checkbox" value="chocolate"> Cold Drink: <INPUT type="checkbox" name="checkbox" value="C...

Is there a keyboard shortcut in Visual Studio to jump up to the parent XML/XHTML node in XML code view?

Not too sure how to elaborate on this over what the title already states, but it would be super great if when I was hovering my carat on a node in the XML/XHTML source view, that I could press a key to jump up to the parent node. If not in Visual Studio, is it in any addons like ReSharper or [can't remember the name of any others..!]? ...