xhtml

<p> tag is a block-level element in XHTML?

I know that in HTML4.0 <p> tag is not a block-level element. What about in XHTML 1.0? Thank you This is the reference for HTML4.0 http://www.w3.org/TR/html401/struct/text.html The P element represents a paragraph. It cannot contain block-level elements (including P itself). Was that my misinterpretation? ...

Adjusting <ul>'s width to accommodate menu items using jQuery

This is an expansion of a question I posted a while ago: http://stackoverflow.com/questions/3275997/fitting-a-uls-width-to-accommodate-the-menu-items Is there a snippet of jQuery code that can adjust the width of every <ul> inside a certain <ul> to make sure the <li> items don't overflow? The menu looks something like this: <ul id="men...

IE7 phantom border-top

Hi everyone, On this site that i'm working on, http://boldstyle.allthingswebdesign.com there is a gray border-top on the footer ul elements. If you look in FF or chrome, you can see that it creates a subtle effect. If you view it in IE7, the border is way out of place. I cannot figure out why. Please help. ...

site zoom problem

I have a very simple question. I recently develop this site: http://revenuephilosophy.eu/ and I noticed that when I use the scroll zoom(ctrl+mouse wheel) on other sites it works great but on mine it has a strange behavior with not all of the components scalling as they should. On the css file I used only percentages in order to keep r...

Pure CSS emulation of a frameset

I have been searching for more than 1 hour with no success. Is there a pure CSS way of emulating a frameset? I mean, really emulating it. I have found some interesting stuff where you will have fixed top and bottom blocks, but the scroll bar for the content is the regular browser body scrollbar. What I need is a scrollbar only for the co...

WPF application which outputs html

I'm creating a WPF (in c#) application that will create html files based on it's output. Is there a way to use the concept of an html 'view' (from the asp.net mvc) in a desktop application without reinventing the wheel? Basically I just want to save a list of outputted items in html which is so simple in a web application (and even using...

EXT JS Layout XHTML

Hi, I am trying to integrate ExtJS 2.0 with Java rich faces. I am trying to obtain a basic layout using Ext.Panel. So I have written a code like: Ext.onReady(function() { Ext.QuickTips.init(); var myBorderPanel = new Ext.Panel( { renderTo: document.body, width: 700, height: 500, title: 'Border Layout', layout: 'border', items: [ { ...

Set distance between spans using margin

Here is two spans(in real life a lot of spans) situated at the web page. I would like to set the distance betwwen them. I want to use margin-bottom attribute for this, but I can't see any affect of using it. The spans are still on the previous position. That is wrong. Here is my code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transit...

I need Some CSS Ideas for Visualization for visitors

I am currently trying to improve the look of my website (beta) for book accommodations and hostels, the site is a basically a directory for hostels. Well, at front page, you will notice that all headings are almost sharing same color... However i am unhappy with that, i mean i want to colorize things a bit, but need some advices from c...

Div Collapsing around Definition List

I'm designing a meta data area for a blog, and am having some trouble formatting it correctly. I've got 3 definition lists contained in a Div. The Div will not honor the padding I place on the DL items. I've linked to a picture to demonstrate. The first image shows what looks to be proper formatting. This is because the padding of the D...

Php : How to add odd/even loop to my unordered list

Here an example my wordpress post. I want to add some class to the last of <li> something like <li class='lastli'> <ul class="tabs"> <?php global $post; $myposts = get_posts('numberposts=3'); foreach($myposts as $post) : setup_postdata($post); ?> <li><a href="#"><?php the_title(); ?></a></li> <?php endforeach; ?> ...

How to remove "blank markup" with PHP - i.e. multiple nested elements with no text node.

I've installed CKeditor on a client's site that allows them to enter some text using a WYSIYG editor. It is locked down for the most part, only allowing bold, italic, unordered lists, etc. I also run the user submitted HTML through HTML purifier to make sure they don't get smart and start trying to add tables, for example. It is also a ...

Insert a single HTML page as an article in Joomla

I have a landing page created as a single html file with an external css file and a bunch of jpeg images. It looks fine and everything is good with it. I need to insert this page as an article in Joomla so that it looked the same way as it does now, without broken styles and missing images. It should show all header, footer and sidebar c...

Nested optgroup solution from drop down list

I have a drop down <select> list of pages in a site, however the structure is quite complicated to go in the list e.g.; Home Projects Category 1 Item 1 Item 2 Item 3 Category 2 Item 4 Item 5 Item 6 Category 3 Item 4 Item 5 Contact Accessibility Sitemap What I want to do is say "select a page to link to" and then present the ...

Right-align legal-styled numbers and left-align text in ordered lists using CSS

While composing documentation, I created an outline using ordered lists within ordered lists and applied a pseudo-legal-style row numbering using CSS. The default behavior of lists is to right-align numbers and left align text; however, the CSS2 snippet I'm using is changing that behavior so that numbers are left-aligned and text, thoug...

(HTML + CCS3 Generated Content for Paged Media) to PDF?

Is there any way to render a PDF from a HTML doc styled with CSS3 Generated Content for Paged Media? If there is not an application like that, what can I use as a base to build such a converter? Thanks ...

Should we consider Flash as a last resort?

When we make a website with some interactivity (not whole flash site). should we always find a way JavaScript way before to use Flash? Should we consider Flash a last resort, if possible? It is true Flash will not be indexed by Search engine. and it will not run on apple devices. Will javascript also perform better than flash, in terms...

Highlight active link.

How can I have the active link highlighted when clicked but keep the home page link highlighted until another link is clicked? I'm using PHP if that helps. Here is my (x)HTML code. <div id="nav"> <ul> <li><a href="http://localhost/link-1/" class="active">Link 1</a></li> <li><a href="http://localhost/link-2/"&gt;Lin...

(Where) is there a W3C XML Schema for XHMTL 1.1?

There is an old W3C recommendation containing an XML schema for XHTML 1.0, and claiming that schemata for 1.1 will be forthcoming. I'm not having any success with Our Friend Google on this. Is it out there? ...

Wordpress - HTML Entities are being Displayed

Hi, I am currently developing a Wordpress site, and everytime a comment, page or article is added/retrieved, the HTML entites in the text are encoded, particulary single quotes/double quotes, like #089A. Is there a setting or something that can be enabled/disabled that does this? I've tried the usual Google searches but alas I can't f...