xhtml

Is it a good idea to create new XHTML markup for speed and readability reasons?

Hi folks, I develop for a web app startup and I come across the following code quite often. <div class="items container"> <div class="item"> <div class="property propertyA">Some stuff</div> </div> </div> Our typical jQuery selector looks pretty much similar to: $("div.items.container > div.item > div.property.propert...

100% Width div's and form elements + padding?

Hello, What do I have to do to prevent the following from stretching more than 100%? It obviously stretches to 100% then adds on the padding... Thanks! <!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" xml:lang="en" lang="en">...

Performance of creating XML using StringTemplate?

I'm developing an application which uses different components to create an XHTML document, I used StringTemplate for creating the document data of the components and then combined them into a one large document. This is an example of a component: public class BoxImpl extends AbstractContainerImpl implements Box { private static fin...

Image floating out of screen

Hi I need to align a image to the center of the browser window, therefore i created the following css: @charset "utf-8"; /* CSS Document */ html { background-color:#CCCCCC; } body { margin:0px 0px 0px 0px; } img { position:absolute; border:0px; left:50%; top:50%; margin-left:-156px; margin-top:-217px; } ...

jquery select text from between text

i want to grab the text between two tags, which is in main div, following is the example... <div class="main_result"> some text.... <div>other divs</div> <p>some other html</p> <div class="bread_crump"></div> text i want to grab <b>selected category</b> some other text and div... </div> obviously following example dont work, but i...

CSS liquid code

#top{ background:url(images/stites-template-r4_05.png) no-repeat center top; height:61px; width:100%; height:61px;} if i will zoom in on the browser this div will be just on the center and i wanted to function correctly by zooming in this div and the background image will be on the whole div. ...

Google Map not working with XHTML Doctype (Document Type)

Why on the earth there is always a chance that if we use "Doctype" with Google Maps, there will be a problem in showing the Google Map correctly? In a recent case, this "Doctype" just took my 2 days without any productivity. What a disgusting case? This time I got a help from one of my colleague (Subhankar Bannerjee), and many thanks...

Why style for <select> not working in same way in all browser?

This is HTML <div class="DatetimePanel"> <select class="DaysList"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> ...

Why does the browser go crazy when I write things like <div/>?

I mean, aren't <div/> and <div></div> supposed to be exactly the same thing? By browser I mean the latest Firefox and Internet Explorer. And by go crazy I mean ignore styles of tags that contain the <div/>. ...

How to make a html tag expand as much as possible to fit the parent width?

I want to make a textfield in my html page to expand as much as possible to fit the parent width. Here is an image shows what I want. I try to use width: 100%, but the browser sets the width of elemnt as its parent's, which makes no room for other elements, they have to to be placed in second line. How can I let the element to expan...

Why float behave differently than other options when we give float to parent element to clear float?

In this example http://jsbin.com/inoka4 no width is defined for parent element if i want to wrap red boxes in container border. then we can make this in 5 ways to giving float also to <div class="container"> overflow:hidden or overflow:auto any clearfix hack to <div class="container clearfix"> Giving height to <div class="container">...

How can Facebook make work external iFrames?

How can Facebook make work external iFrames? nThat's my quiestion. I have always know that for security reasons, external HTML iFrames (i.e. An iFrame with src attribute different from the actual domain root), but then I realized that Facebook iFrame applications does really work, something that really surprised me because I knew that th...

How to vertical space blank under <li> bullet background?

This is css li { background: transparent url(bullet-arrow.png) no-repeat left 4px; padding-left: 10px; list-style-image: none; list-style-position: outside; list-style-type: none; } this is current output I need in this format ...

YUI skinning scrollbar used in container

How can I implement custom-looking scrollbars in YUI containers? ...

selecting the last node from a list of matches

Hi everyone, I'm trying to figure out a way of finding the last node that matches a given xpath using last() function. The problem is that the last element of path also has a constraint specified. "//div[@id='someId']/ul/li/div[@class='class1 class2 ']/span[@class='someType2 ']" if I use "//div[@id='someId']/ul/li/div[@class='class...

iphone mobile web + remove safari interface bars

Hello, anone knows how to remove the bar at the top and bottom on safari iphone. I have this mobile web page am writing and I cannot get rid of the navigation bar. Is that even possible ? Thanks. ...

ie6 PNG fix causing 24 bit PNG images not to scroll when nested in div with overflow auto

I am using the following PNG fix for IE6: http://www.dillerdesign.com/experiment/DD_belatedPNG/ It is referenced thus in the head of my document: <!--[if lt IE 7]> <script type="text/JavaScript" src="../../Scripts/DD_belatedPNG_0.0.8a-min.js" defer="defer"></script> <script type="text/JavaScript" src="../../Scripts/DD_PNG_listing.js" ...

Why does £ turn to A using xhtml and css

Hello, I have noticed when i put a £ sign in it turns out to be a A when i look at my website in firefox. Do you know the reason why this is happening? Thanks ...

Create two column footer Using div?

How do I create a two column footer using div only? (tableless) The footer is 980px it should contain.... Copyright 2010 xyz.com (left side) About us | privacy | terms (right side) ...

'jQuery' is undefined error in IE7

<head> <meta name="description" content="Directory" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"&gt; </script> <script type="text/javascript" src="https://sitename.com/javascripts/toggle.js" language="javascript"></script> </head> this is the error showing in...