xhtml

CSS z-indices

Hi, I have an element whose position is fixed and has a z-index = 5. When I resize the browser this element appears in front of (statically positioned) elements whose z-index = 10, which is not the behaviour I expect. If you want to see what I mean, open this page and narrow the browser window until the "Chalets des Bouleaux" logo is ...

Is margin property of an element ignored until its value is equal or greater than...

1) a) Even if inside CSS file we don’t specify a margin property for a particular block ( like <p> ), browser still displays it as if this block has a linebreak before and after it. Is that space ( let’s call that “default” space a dS ) considered a margin with some default value? b) I would assume that if I add ( inside CSS fil...

Proper DOCTYPE... custom attributes and non-standard markup.

Ok, don't get me wrong, I absolutely love the idea of web standards... wrote and validated a number of pages with strict XHTML 1.0 - however, the web is evolving... and the more I use XML, realize the capacity of the DOM, and realize most browsers don't care one way or the other, the more I realize I realize I just want to break conventi...

loopedSlider jQuery plugin problem

Hi i use loopedSlider link text and there is html source. <div id="loopedSlider"> <div class="container"> <div class="slides"> <div><img src="01.jpg" alt="" /></div> <div><img src="02.jpg" alt="" /></div> <div><img src="03.jpg" alt="" /></div> <div><img src="04.jpg" alt="" /></div> </div></div><a href="#" class="previous">previo...

Padding the top and the bottom of inline element

Hello Quote from Head first html: You can add padding to the top and bottom of inline element, but the padding doesn’t affect the spacing of the other inline elements around it, so the padding will overlap other inline elements a) As far as I understand the above quote, adding padding to the top and bottom of inline element does...

Writing XMLDocument unescaped in C#

Currently I'm writing XHTML in a XmlDocument. This works perfect, but I'm stuck on one problem. Some XmlText elements can contain things like &nbsp;. When I want to write such things to a stream it uses the innerXML instead of the innerText value for such nodes. The problem is that the ouput is wrong because now its outputting &amp;nbsp;...

What is the correct way to replace this html/table code with a div or span

I have this html that I use to create a box look around the title, this is for a flowchart looking page. Fairly straight forward and looks correct. <td> <table align="center" border="0" style="border: thin solid black;" cellpadding="0"> <tr> <td align="center" nowrap style="padding: 5px;" class="h...

How are cells of a table impacted by declaring an event in a col element?

When an event, such as onclick, is declared in a col element for an HTML table does that event impact the cells referenced by the col element? Is the event ignored? Does something else happen? ...

Specifity and class selector (cascade)

Hello Suppose we want to find out what will be the color property of particular <h2> element. 1) When trying to figure out how specific a selector is, one of the rules says that selector with greater number of classes is more specific than selector with fewer classes. Thus, in the following example the color of particular <h2> sh...

How do you have a floating/fixed element on a web page depending on which part of the page is visible?

The question is confusing, I know, but I just couldn't put it any other way. Here's the url: Configure - Apple Store (U.S.) The 'Summary' box on the side is aligned below the sub-header (with pictures of all the Mac models) and is at the same height as the content block. If you scroll the page up, the whole page goes up as expected. Ho...

Reporting Services Xhtml Engine

The html output of reporting services is horrendous. My understanding is that all reports are written in a common xml format so that they can be transformed into whatever medium is required (html, pdf etc). Hence, in theroy I could write my own engine to take the raw XML and output nice standards compliant, cross browser Xhtml. But I ...

How do I adjust the width of a DropDown <select> box?

I need to adjust the width of a select HTML box without using css, is there a way? I tried size but then it's adjusting the height, and width does nothing? Is there another way? ...

How do you prevent inline <?= text ?> statement from messing up the displayed source code?

In PHP, whenever I do something like: <span>Blah blah HTML</span> <?= echo $this->foo ?> <br /> In the source it displays like this: <span>Blah blah HTML</span> {$this->foo whatever it is} <br /> Instead of <span>Blah blah HTML</span> {$this->foo whatever it is} <br /> Stuff like this happens all of the time. Inline PHP make...

how to migrate a old website to Xhtml 5 or Css 3.0

i want to migrate our website to Xhtml 5 or css 3.0 how to i migrate our site ...

When will you start using HTML 5?

So HTML 5 has been widely publicised as expected to be ready in 2022. This is a long time to wait, and the test for that readiness is that "at least two browsers to completely pass [HTML 5 test suites]" Obviously for browsers to pass this test they have to start implementing usable HTML 5 features before that. The list of new HTML5 fea...

Aligning a background image to the top of text in a header element

I'm having a problem aligning an image to the top the text in an <h2> element because the space between the top of the text and the top of the elements box is different across browsers (so far it's been different between IE7, Safari 4, and FF3 - haven't tested anything else). Particularly noticeable because I'm using a large font (48px)...

HTML tag replacement regex not quite working correctly

This is a follow up to another question of mine. The solution I found worked great for every one of the test cases I threw at it, until a case showed up that eluded me the first time around. My goal is to reformat improperly formatted tag attributes using regex (I know, probably not a fool-proof method as I'm finding out, but bear with...

Setting the width of inline elements

Hello You can set the width of inline elements like <span>, <em> and <strong>, but you won’t notice any effect until you position them. a) I thought the width of inline an inline element can’t be set? b) Assuming width can be set - we won’t notice any effects ( thus the width we specify ) until we position inline element. Posit...

When margins of adjacent inner and outer element collapse

Hello I’ve read that if one element is nested inside another and they both have margins, then they could collapse ( assuming their vertical margins are touching ). a) Under what conditions would their vertical margins be touching? Perhaps only when a parent element has a fixed height, while inside elements take more vertical space...

Center Div inside another (100% width) div

Quite a "simple" problem here and not sure why it's being so complicated. Have a 100% (width) sized div. Have another div positioned in the middle of this div (sized 940px width) Any ideas? :) ...