xhtml

How to indent text in a select drop down menu using CSS.

How can I indent categories and endless sub categories that I have in a select drop down menu using CSS? 1. Apple 2. Arts & Entertainment 1. Amusement 2. Art 3. Artists 1. A 1. a1 2. a2 2. B 3. C 4. D ...

How to indent text in a select drop down menu using PHP & CSS? [REPHRASED]

I asked a similar question earlier but I'll ask it again in a different way. How can I indent categories and endless sub categories that I have in a select drop down menu using PHP & CSS? Here is my PHP code. while (list($id, $parent_id, $category) = mysqli_fetch_array($r, MYSQLI_NUM)) { // Add to the select menu: echo '<optio...

What is the prefered method to preload images <img> and why?

What is the best method to preload images <img> and why? I want to show images on link's hover i can't use images in CSS background so i can't use CSS sprite. but i want to preload all images while page load . which are add as <img>. ...

How to indent text in a select drop down option menu using PHP & CSS? [REDUX]

I asked a similar question earlier but I'll ask it again in a different way because I re-worked the code a little. I was wondering how can I indent categories and endless sub categories that I have in a select drop down menu using PHP & CSS? Here is my PHP code to display the select drop down. echo '<select name="parent_id"> <o...

Is there a simpler option to "nest" or embed content without using iFrames or JavaScript to generate content?

I've read some related articles (like http://stackoverflow.com/questions/2907109/making-javascript-generated-content-possible-for-search-engines-to-index), but what I'd like to know, is there a simpler option to embed content from another site? Without the use of iFrames. What I'd like to achieve in the end is to create some sort of rep...

accesskey on mobile browser

Is accesskey still be supported among the current browsers on mobile? How can I navigate website with accesskey on mobile browser? I have tried to search online but can't find any answer. Thanks. ...

How can I pair handlers for mouse event in CSS

According to XHTML 1.0 transitional events handlers should be paired. I.e the event handler onmouseout should be paired with onblur. How can I do that? ...

XUL / XML Parsing Error: undefined entity <listitem

Does anybody know why this error is poping up ? <?xml version="1.0"?> <?xml-stylesheet href="chrome://onsip/content/options/options.css"?> <!DOCTYPE dialog SYSTEM "chrome://onsip/locale/options.dtd"> <dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" id="onsip-options-dialog" title="OnSIP Opt...

How to create an accordion menu with many nested lists.

I was wondering how can I create an accordion menu for my side nav menu? ...

Wrap text inside float

I would like to display floated images with a caption underneath. But using the code below, the caption text doesn't wrap, meaning that the floated image-with-caption takes up a huuuuuge amount of horizontal space. If there's a better way to have an image with a caption, I'll take that over any improvements to this code. Failing that, h...

What is W3C latest officially recommended HTML and CSS version, for web development?

What is W3C officially recommended HTML and CSS version, for web development? Is it XHTML 1.1 and CSS 3? ...

How to display category link layout question?

I was wondering how would I be able to display my categories in steps 2 - 4 when I click a link so that all the parent and sub categories are displayed like in steps 2 - 4? All my parent and sub categoris should take me to another page. I genereate all my links using PHP. I use PHP, CSS, xHTML and JQuery. Step 1 Arts & Humanities A...

How do you customize/style codeigniter errors?

I'm trying to customize the CSS/HTML for error message displays in codeigniter so I can apply a tag too each and style them up. I tried to Google this and search the manual but must have been searching for the wrong terms - can anyone help me out? ...

Code is not behaving in strict mode

Can some body explain why the TD element is taking width when its not allowed in strict mode.This is the code [Was not able to put code because of HTML rendering problem.] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; <html> <head> <meta http-equiv="Content-Type" content="text/xml+xhtml...

validation errors when validating a page that has a flash object

I use the following doctype in a page that has a flash object, html code <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="379" height="180"> <param name="movie" value="Flash/header.swf" /> <param name="quality" value="hi...

tfooter doesn't validate for xhtml?

Hello, I had my webpage validated for xhtml transitional till I added this table (see below). Since then it doesn't validate and says " document type does not allow element "tfoot" here <tfoot> The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- suc...

Single HTML Anchor Tag Actually Renders TWICE! Screenshot.

I'm 10 lines in to my second attempt at HTML and CSS and it is immediately doing completely barmy things. I have the following code (this the entire page): <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <meta con...

Side Nav Menu Question.

How can I have all my nested lists collapse and expand when clicked. Here is my xHTML. <ul> <li><a href="some-link.php">First Nested List</a></li> <li><a href="some-link.php">First Nested List</a></li> <li><a href="some-link.php">First Nested List</a> <ul> <li><a href="some-link.php">Second Nested List</a></li> ...

Equal height columns with no background

Here is an example code http://paste.ideaslabs.com/show/kmGATPRovx. How can I make the second block looks like the first one with more content in .front-content block? The most problem is the position of .front-description's bottom border. ...

How to show image randomly with fade-in fade-out using jquery?

This is HTML Code. <div id="Slogan"> <h1> <img src="img1.gif" /> <img src="img2.gif" /> <img src="img3.gif" /> <img src="img4.gif" /> <img src="img5.gif" /> </h1> </div> #slogan {float:left;position:relative;width:100%;} I want show all image randomly but one by one like slide show, with fade-in fade-out effect. How to do with jquery...