xhtml

Why is the page shifting to top with a container that has overflow:hidden ?

I'm facing a problem that's really strange. It's in every browser. Everything is working correctly, until you try to go to a section using the hash ( like #contactUs in my page)... try this url : http://mahersalam.co.cc/projects/2011/#contactUs You will see that the page SHIFTS 10px to the top. if you take off the hash, it works again....

Is the order of attributes in a certain tag releveant?

Is the order of attributes in a certain tag releveant. Specific case: This is from a selenium testfile. Given a testcasse <?xml version="1.0" encoding="UTF-8" standalone="no"?><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head profile="http://selenium-ide.openqa.org/profiles/test-case"&gt; <meta content="text/htm...

How to stop body background displaying between two tables in Iphone Safari

The following markup when viewed in Safari on Iphone and Ipad displays the body background color for 1 pixel between the two tables. What is this and how do I stop it? <!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/xhtm...

Semantically correct XHTML markup

Hello all. Just trying to get the hang of using the semantically correct XHTML markup. Just writing the code for a small navigation item. Where each button has effectivly a title and a descrption. I thought a definition list would therefore be great so i wrote the following <dl> <dt>Import images</dt> <dd>Read in new image nam...

Is there any guide on "When to use display:block when :inline and when :inline-block" and why?

Do you know any good article on "When to use display:block when :inline and when :inline-block" and why? and when we will have to override display:?? through css for any HTML tag/element? ...

How to make one button for open and close div, in this jquery code?

$(document).ready(function(){ $('#content1').hide(); $('a#open').click(function(){ $('#content1').show('slow'); }); $('a#close').click(function(){ $('#content1').hide('slow'); }) }); in this code of toogle open and close button is different <a> and <a id="close"> I want...

How to make jQuery slidetoggle effect for multiple div on same page?

it works fine for one div (function($) { $(document).ready(function(){ $('#div1').hide(); $('a.plus').click(function(){ $('#div1').slideToggle(); $(this).toggleClass("minus_icon"); return false; }); }); })(jQuery); How to make this slide toogle effect for multiple di...

Blackberry web application wrapping floating divs on top of each other

Our site http://m.sa2010.gov.za has a simple menu structure that relies on floating divs to stack 2 columns of menu elements. Unfortunately it seems to wrap all elements on top of each other when viewed from most Blackberry phones? Any suggestions. works beautifully on most mobile devices including iPhone. Check it out. ...

innerHTML doesn't work correctly with xhtml in Chrome

Hi! I've got a trouble with Chrome5.0.375.70, but FF 3.6.3 and Opera 10.53 are OK. Below is the line of code: document.getElementById('content').innerHTML = data.documentElement.innerHTML; The data object from the code is a document (typeof(data) == 'object') and I've got it by ajax request to chapter01.xhtml: <?xml version="1.0" e...

Can we use like this <body class="all" <!--[if IE 7]>class="ie"<![endif]--> >

Can we use like this <body class="all" <!--[if IE 7]>class="ie"<![endif]--> >? I want to keep all CSS in one file. ...

Should I not use those XHTML elements/tags/attributes which will not be in the HTML 5 spec?

If I use XHTML 1.0 Strict currently, then should I not use those XHTML elements/tags and attributes which will not be in the HTML5 spec? E.g. <acronym> and <big> ...

if we are providing a seperate "printer friendly page" for each page of site then do we need to use print media css in site?

if we are providing a seperate "printer friendly page" for each page of site then do we need to use print media css in site? only screen css is enough in this case? ...

Building CSS3 Simulated Lightsource on Background

Is there a way to take a DIV that has a background image on it, then apply a CSS3 gradient on it to simulate a lightsource? The reason I ask was because I was thinking of making the BODY tag on a page use a repeating background pattern, apply the CSS3 gradient lightsource on it, and then stick a white DIV on top of that where all the pa...

What is HTML5 and are there any benefits to it over Flash?

Possible Duplicate: Can HTML5 do most of what Flash does today? I'm not necessarily for Apple, but I am sort of against the need for 3rd party vendors, if a browser can accomplish the same task, efficiently. What are the advantages of HTML5 over HTML4, will there be a new XHTML, and will HTML5 have any interactive features th...

When to use <strong> and when to use <b>?

Possible Duplicate: Is it ok to use <strong> in place of <b> blindly ? When to use <strong> and when to use <b> or other ways to give look of bold? strong has semantic value ( and useful for screen reader while b is presentation (and even valid in HTML 5). my question is not what is the difference between strong and b. The q...

How to register XHTML namespaces??

My page use to validate for XHTML but I added the addthis buttons to page and it gives a new namespace: E.G.: <a addthis:url="http://domain.tld/path/to/stuff" addthis:title="Teh Title here"> I tried: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:addthis="http://addthis.com/" lang="en"> Doesn't work. Can we register namespac...

built-in schema datatype for html / xhtml

Is there a built-in schema datatype for xhtml data? Suppose I want to specify a "boozle" element that contains two "woozles", each of which is arbitrary xhtml. I want to write something like this, using the relax NG compact syntax: namespace nifty = "http://brinckerhoff.org/nifty/" start = element nifty:boozle {woozle, woozle} woozle...

CSS gurus, can I make my absolutely positioned child element force the main parent's height?

This is kind of hard to explain. I have an absolutely positioned floating secondary content box. It works great in all occurrences. Except, when you submit a form and don't fill out the fields (see here, and push send). The box expands to show the errors, and underneath the footer there is a blank space. The best example I can give is...

How to use em perfectly without getting nested issue?

How to use em perfectly without getting nested issue? How to get perfect needed size for every needed element? If i use #Wrapper (font-size:62.5%) because it's easy to calculate font sizes. How to deal with nested issues of font-size and line-height? ...

Pages with tables creating problem in print, even i'm using seperate Print css?

Pages with tables creating problem in print? First page coming blank and content comes in print from 2nd page if pages are having <table> and if table is long i want to print table heading on each print page also. body{ font: 8pt/1.5 Arial, "Helvetica Neue", Helvetica, sans-serif; background: white; } #wra...