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
...
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 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>.
...
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...
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...
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.
...
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?
...
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...
I was wondering how can I create an accordion menu for my side nav menu?
...
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 officially recommended HTML and CSS version, for web development?
Is it XHTML 1.1 and CSS 3?
...
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...
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?
...
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">
<html>
<head>
<meta http-equiv="Content-Type" content="text/xml+xhtml...
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...
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...
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">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta con...
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>
...
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.
...
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...