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...
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">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">...
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...
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;
}
...
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...
#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.
...
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...
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>
...
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/>.
...
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...
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? 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...
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
...
How can I implement custom-looking scrollbars in YUI containers?
...
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...
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.
...
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" ...
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
...
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)
...
<head>
<meta name="description" content="Directory" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"> </script>
<script type="text/javascript" src="https://sitename.com/javascripts/toggle.js" language="javascript"></script>
</head>
this is the error showing in...