Let me explain the basic layout below:
|----------------------------|
| title banner |
| |
|----------------------------|
| logut-row |
|----------------------------|
| aN |
| <<to be explained>> |
| |
| ...
I'm using the following list:
<ol id="footnotes">
<a name="footnote1"><li></a>This is the first footnote...</li>
<a name="footnote2"><li></a>This is the second footnote...</li>
</ol>
With the following .css:
#footnotes {list-style-type: decimal;
list-style-color: #f90;
}
#footnotes li
{colo...
What is the importance of DTD and how it affects the display of the web page page at runtime
...
Essentially I want to embed some XHTML in an XML document that must validate against a custom schema.
Full background:
I have a webservice that consumes an XML document. This XML document is validated against a custom schema. The data in the XML is parsed and stored in a database, and displayed in a useful format on a website.
The cus...
I'm making a ul-based horizontal navbar, but I want to have two levels heading in each item, a bit like this:
Nav item1 Nav item2 Nav item3
Nav item1 subtitle Nav item2 subtitle Nav item3 subtitle
The subtitle has to be in a different style to the main nav item.
I did this first (naively?) by using a ...
I need to build a form for data input, let's say FirstName and LastName. I know how to do this with a table. In the first <td> I'd put a label tag and in the second I'd use an input tag with a type="text" attribute. This way the labels and textboxes would be lined up in two columns.
Is there a way to do this with CSS?
Thanks Lars
...
I know it's wrong to put a block element inside an inline element, but what about the following?
Imagine this valid markup:
<div><p>This is a paragraph</p></div>
Now add this CSS:
div {
display:inline;
}
This creates a situation where an inline element contains a block element (The div becomes inline and the p is block by defau...
EDIT: After re-reading my post I think I am being a little bit unclear about what the problem is. Let me try to re-phrase it:
Users can leave comments on my site using a textarea field in a form. It should be possible to add line breaks in the comment using <br />. The comment is then stored as a string in a mysql-database (escaped to m...
I used to just use p and span elements for this... but I'm always pushing to use the right elements, and this is something I haven't really thought about before with regard to testimonials.
This is what I had in mind
<div class="testimonial">
<blockquote>i love your products</blockquote>
<span>Jim Testimonial-giver</span>
</div>
Do...
I have a layout with a menu DIV on the left. This is floated left with a fixed EM width. I then have a content DIV which has a left margin of more than the menu's width. So it sits nicely to the right of the menu and fills up the remaining space with both menu and content lined up perfectly.
However, in Internet Explorer 6, if the co...
Dear all
What is the difference between the 2 lines shown below?:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB">
<meta http-equiv="content-language" content="en-GB" />
If i didn't have the meta tag, what would be the consequence?
Does the meta one affect screen readers and the top one not? I'm a bit confused as to wha...
I need to convert HTML4 input to valid XHTML (strict) in PHP5 for further processing (SAX for instance). Any suggestions?
...
I usually prefer linux for programming( i program in django on Ubuntu).
But often i need to design html pages which renders properly in Windows and Linux?
How iam currently doing the above is
Design (Fix) html page in linux
Reboot to windows check whether the
design is proper or not. if not
reboot to linux
repeat step1 ,step...
I can't determine why this text can't be scrolled over and the hyperlink (all in the body of the page) can't be clicked. I'm not sure if it's a CSS issue, or some other kind of issue.
The XHTML is valid, but the CSS isn't totally. Wondering if I can fix without totally remedying every CSS element.
http://www.writershore.com/ltlaw
Tha...
Hi,
I am trying to change the class of an element using javascript.
So far I'm doing :
var link = document.getElementById("play_link");
link.className = "play_button";
edit: here is the actual code that replace the classname
In the HTML :
<a href="#play_link_<%=i%>" id="play_link_<%=i%>"onclick="changeCurrentTo(<%=i%>);return fals...
I've generally tried to stick with DOM-only attributes when writing Javascript. Now that I've switched from Prototype to jQuery, I can get some serious mileage out of adding my own attributes to various DOM elements, mostly in the realm of being able to set up a very readable coding convention for handling AJAX requests.
As a short exa...
I would like to know the best way to markup scientific names in XHTML. This answer says I should use the <i> element, which I'm not too in favour of, unless of course, it is the right element to use.
I could use <span class="scientific">, but seeing as one of the first uses of HTML was to markup scientific documents, I'd imagine there'd...
Guys, I need to develop a tool which would meet following requirements:
Input: XHTML document with CSS rules within head section.
Output: XHTML document with CSS rules computed in tag attributes
The best way to illustrate the behavior I want is as follows.
Example input:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
...
Ive been trying to display formatted content blocks from a xml file with no luck. Ive been using simplexml_load_file and other varients which Im now seeing cannot deal with the xhtml tags within the called tag ... eg.
//php contents
<?php $xml=simplexml_load_file("file.xml");
echo ($xml->entry); ?>
//xml contents
<entry>
<p>This...
hey.
for now, i'm using WMD for my site, but lately i've been needing to work on its code, and the supplied code is near impossible to read, due to code obscurity (no tabs, var names such as _1, _2 etc). now, i assume that code has a non-obscured version, but its nowhere to be found. (for example, i need to be able to supply RTL support,...