xhtml

Nested DIV elements

I am trying to enclose two DIV elements, inner-1 & inner-2, (dotted red border) inside a wrapper DIV (solid green border) but the wrapper DIV element does not expand to enclose the inner DIVs. What am I doing wrong? <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xm...

Tidy causing bad spacing issues (JTidy)

We are using JTidy to clean up some html for sax processing. We've had a lot of trouble around spacing issues as shown in this example: Html <i>stack<span class="bold">overflow</span></i> which outputs "stackoverflow" But... Post JTidy <i>stack <span class="bold">overflow</span></i> which outputs "stack overflow" (note the new ...

JQuery Tooltip Plugin from Jorn

I am thinking someone may have run across this one, but not sure. From a high level, I am trying to roll over a input [type=text] and display a tool tip (with the contained value) using the plugin available at http://bassitance.de. I have to use titles and classes for validation on the specific elements, so I put a blank div to hold ...

Ordering your title tags

I haven't found this question, feel free to close if it's already up here. What is you favorite way to set your titles in HTML? <h1> Main Part </h1> <h2> In here there are many sections</h2> <div id="section1"> <h1> Section 1 </h1> <h2> Subtitle </h2> </div> <div id="section2"> <h1> Section 2 </h1> <h2> Subtitle </h2> </div> ...

Get HTML page <input> values and names using regex on PHP

Ok, so as the title says, I have an HTML page that I fetch using libcurl (cURL inside PHP). That page has one <form> that I need to extract the <input> names and values, and I would like to do that using Regex. I'm making it using Regex because I think that's the easier way. If you think I shouldn't use regex, but something like xpath, s...

CSS, menu behind div

Hey guys, I'm having a problem with IE7, my menu always drops down behind the div where it's in. The code: (style.css) @CHARSET "ISO-8859-1"; body { background: #fff url('images/bg.gif') repeat-x; } #everything { width: 100%; height: auto; text-align: center; } #bar { position: relative; float: left; background: #022c3e; width: 100%;...

dropdown Menu behind flash

Hey guys, I've got a neat dropdown menu and also a flashfile in my webpage. Now when I hover the menu and it expands. It's behind the flash... The problem is only in IE 7 Here's my code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html> <head> <meta ...

serving xhtml + mathml to firefox and IE

Firefox requires xhtml extension for mathml but IE will not display pages with xhtml extension (it displays a download dialog box instead). I have tried apache content negotiation like so: RewriteEngine on RewriteCond %{HTTP_USER_AGENT} .*MSIE.* RewriteRule \.xhtml$ - [T=text/html] but IE seems only to care about the extension. I ha...

Pure Python Tidy-like application/library

Hi, I'm looking for a pure Python library which works like Tidy. Please kindly advise. Thank you. ...

Text Overflow Problem & Text Non Wrap

Scenario: One header DIV with three DIV's inside side by side floated left. Problem: "Text" from HEADER_A div is overflowing into HEADER_B DIV and so on. Screenshot / CSS: #header{ height:127px; width: 718px; } #header_a { width:181px; height: 127px; color:#FFFFFF; float:left; } #header_b{ width: 363px; float:left...

HTML & XHTML Elements That Are Centered Automatically

can you list all the elements that are centered automatically without using style sheets like the < th > element. ...

How do I align a div at the bottom right corner of a web page even if the content is less?

I have this extremely simple splash page here: http://iph0wnz.com It has the main graphic in the middle, followed by my 'a.' logo at the bottom right. I want that logo to be aligned to the bottom right hand of the entire page, which means that if there is a lot of text content in the page, it appears after all that (i.e. it doesn't hove...

Fix a CSS problem with a Wordpress theme and a syntax highlighting plugin

Hello! I installed the latest version of Wordpress and added the WP-Syntax plugin (and also the Markdown Extra plugin, but I think it's unrelated to this issue). It works perfectly with both themes that ship with Wordpress: looking good using WordPress Default 1.6 and looking equally good with the WordPress Classic 1.5 theme. However ...

Set selected option via CSS?

Is it possible to set the selected attribute of an option tag via a CSS class? I'm wondering if something like the following is possible in a stylesheet: option.selected { selected: true; } Then in HTML: <option class="selected"> Which would have the same effect as setting the selected attribute. Is this technique possible? ...

.XHTML Extension & Syntax Highlighter

i tried to use Syntax Highlighter in a XHTML/CSS Template. i noticed if i use the .xhtml extension the Syntax Highlighter fails. if i rename the extension to .html it works. so the question is: - Syntax Highlighter does not work with XHTML? - whats the difference between .xhtml vs .htm/html? if i still have the same code? xml declarat...

What is necessary to become a professional web designer?

As a professional web designer, what are the essential techniques? In my opinion, these are the must-learns. XHTML CSS JavaScript Script language like PHP, Perl, and Python But however, learning these and skills using these languages may only produce well-written codes, as a skilled C/C++ programmer does. The layout of a page, colou...

web link in svg

Hi all. I need to have a linked text inside a svg graph. Here is what I did <?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg width="138pt" height="188pt" viewBox="0.00 0.00 138.00 188.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:html="http://www.w3.org/1999/xhtml"&gt; <g id="graph0...

sharepoint accessibility

How compatible / compliant is sharepoint with current accessibility rules. Also how compliant is it with the UK disability act? ...

CSS: Fluid Sidebar - Fluid Content

http://img263.imageshack.us/img263/6135/csso.png Everything's explained in the above image link above. Basically, I need a sidebar div whose width expands according to the content inside of it and a mainContent that expands to the rest of the width of the window. ...

In a nutshell, what's the difference between XHTML and HTML?

I keep being confused about the two. Can someone sum up the key difference(s) and maybe a typical use case very briefly? Is XHTML just more "strict" / clean / XML-y? If XHTML is just the "more correct" version of HTML, why should I ever use HTML at all? ...