xhtml

How do i reduce the width of the cell which is longer

Iam Generating the Html in excel sheet and entire table is fine and except the two cells are much wider How do i reduce the width of those cells .I treid changing the width and everything but no use .:It works fine on Html table .On excel spread sheet it looks different ...

how to clear the last <li> tag within a <ul>

I know this is pretty basic, but it is giving me hangups. I have a basic list: <ul> <li><a href="#">Insert Link Here</a></li> <li><a href="#">Insert Link Here</a></li> <li><a href="#">Insert Link Here</a></li> </ul> What do I need to do to make sure the last <li> item gets cleared? I've tried adding style="clear:both" to...

'Movie not loaded.." IE6 using swfobject2.2

Hi, I'm getting and error that only occurs with IE6 using swfobject to dynamically embed flash on a page. the link to the test page is: http://maxtest.7thsensedesign.com/ I could post some code if that helps. ...

PHP code or javascript code for converting html to xhtml

I'm looking a php code or js code for converting html to xhtml. PHP tidy is not my option because my hosting does not support it. ...

Problem displaying a CSS 'popup' properly.

I'm having some trouble with displaying a popup div with CSS. The problem is better explained with an example. Take the following html: <html> <head> <style type"text/css"> #popup { color: #fff; background: #8c0000 } #form { background: #ccc...

Why in the input type button the cursor is an arrow and not a hand?

This question is because normally when you want to click a button or link the user expect a HAND in the cursor but in the case of input type="button" you get a cursor arrow , does any know why is this? is cause is inherit from base class input?? and all inputs have pointer cursor? I Know a simple css lik {cursor:pointer} //make the work...

Generating a list of categories and subcategories with asp.net mvc2

I have a feeling I'm doing this horribly, horribly wrong. Nested for loops? What is the best practice method of listing subcategories? I have a feeling it involves preparing the list in my controller action and sending it to the client via some actionresult, but I don't know where to start? Anybody able to point me in the right direction...

Table and Body with two separate background colors.

Hey all, simple question I'm sure, but I would like to have the body of a page be one color and to have the table in the center a separate color. I tried specifying body color and table color, but body always overrides it. I'm attempting this in css, and I have a feeling I need to use a "not" excluder to make this happen? Such as specify...

getElementsByTagNameNS in (X)HTML documents.

Hi everybody, I have a question on Javascript and DOM; shouldn't the following code retrieve the three foo:bar elements in the body? The alert window displays zero. It doesn't work in any browser I have (not even Chrome Canary). Thank you for helping, have a nice weekend. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http:...

Meta tags; Some short questions

I am writing meta tags for my website. With meta, I mean SEO, like keywords and description. I have some questions though: Does the DOCTYPE matter when writing meta tags? Is meta case sensitive or not? Should I use comma between keywords or space? What if a keyword of your choice consists of two words, like "new ad"? What else is impo...

capturing title and metatags from a textarea

Hi There I am trying to capture html <title></title> and Metadata from with in a form1 but not exactly sure how to do it... My quess is to do it like: document.write(document.form1.title); or document.write.texteara.(document.form1.title); but this is not working for me... <textarea name="textarea" id="textarea" cols="45" rows...

CSS/JQuery menu navigation

What code or script am I looking for in order to sticky a menu to the top of the website even as the user scrolls down the page? ...

XHTML Favicon - proper usage

Hello! What is the proper way to have a favicon for a website in XHTML? 1.Does it have to be .ico or can it be .gif or .png? 2.Is this the proper code for embedding and rel value: <link rel="shortcut icon" href="http://yoursitedotcom.here/favicon.ico"/&gt; 3.Does the favicon file have to reside in the root of the site or it can be ...

How can I programmaticaly disable IE compatibility mode?

I have been stuck on this one for a while - I couldn't figure out why a website renders differently in two identical versions of Internet Explorer. Half an hour ago I came across a compatibility mode button in IE which made me really angry. Disabling compatibility mode has fixed my problem. Is there a way to disable it programmaticall...

How to custom text prompt in input tag ?

Is there a way ( with languages like css, html or javascript ) to custom the text prompt in input tags ? For text prompt I mean that vertical flashing line in the input tags. ...

Is there any control like contentplaceholder which is in asp.net for plain html

I have HTML pages like example1.html, example2.html, example3.html, and example4.html. All pages have the same header, footer, and sidebar. How can I make one master template which replicates any one of those so that I will avoid repeating header and footer code in each of the HTML pages? My server side will be asmx web services coded...

Wrap text around relative positioned div

I have a square div that is housing a javascript image slideshow. I incorporated a caption into the slideshow which requires the containing div to be position:relative. I then want text to wrap around this slideshow... is this possible? My pseudo structure: <div position:relative> <div slideshow stuff> <div position:absolute>Capt...

Stretching TD's

I have a layout where I need tabs at the top, and content to fill the rest of the space. So to make the bottom content div stretch I would need to have: style="height:100% - 20px;" Where 20px is the height of my tabs. Obviously that code isn't valid but it illustrates my point. So what I tried next was a table where the td in the fis...

What version of HTML is used on Struts Tags?

Are the Struts2 Tags compliant to the HTML 4.01 strict standard, the HTML 4.01 transitional, XHTML 1.1 or something else entirely? ...

XTHML thead, tfoot and tbody importance

Hello! Does XHTML have an 'opinion' regarding the use of <thead>, <tfoot> and <tbody>? Is there a case where they should be used? Thank you. ...