I have a table with dynamic data.
Depending on data,it expands or collapses.
I dont want it.I want a fixed width that never expand or collapse.
How can i do that?
I've already try <table width="300px"></table>
but doenst work
...
I created this question as community wiki in the hope that it and its answers will be edited as the situation with HTML5 changes.
Time to use HTML5?
This question gets trotted out about once a year, so I might be beating a dead horse, but is it finally time (in the summer of 2010) to use HTML5 when developing a brand new web site?
Rel...
How can I put <input type="text"/> and <input type="button"/> in one line, like this...
...so that they fit inside their parent (<div> for example), textbox taking maximal possible width?
Of course, additional divs can be used. tables are also allowed :D
...
Hi,
what is the syntax to store a block of html code to a javascript variable?
<div class='saved' >
<div >test.test</div> <div class='remove'>[Remove]</div></div>
I want to assign the above code to a variable 'test'
var test = "<div class='saved' >
<div >test.test</div> <div class='remove'>[Remove]</div></div>";
but it does not w...
In what cases justify the "height" attr of TD over use of the "height" attribute in TR. I understand needs to be bounded to a 2D space. And TR only has "height" because it's horizontal object concept. But TD could be qualified as a column so potentially could just be satisfied with a "width" attribute.
Sure, you can claim that TD is ac...
Hello,
I'm having difficulties with spaces between div blocks:
<div id="maincontentwrapper" >
<img src="images/content-top.png" alt="main content border image" border="1" />
<div id="maincontent" >
<div id="pagecontent">
<h1>Mission Statement</h1>
</div>
</div>
<img src="images/content-bottom.png" alt="main conten...
My site root is an english version of the site (/index.php).
I used an DirectoryIndex to point my users to a french version of the site by default (/fr/index.php).
I would like people to be able to click an link that would take them to the english version (/index.php).
Is there anyway to do this without changing the folder structure? ...
So I have an iframe on my site, on that iframe I have a menu, some links have a drop down list, now here is the problem, I can't see the drop-down because of the iframe height, is there a hack or something for this.
I want the height of the iframe to stay the same, but the drop-down to display normally, over the content, I have positio...
Hi,
I have a asp.net page with a repeater\datalist control on it. I bind this grid during page load and show the first 20 thumbnails of a photo album.
There can be multiple pages for which I have a pager 1 2 3. When user clicks the second page(2), I go and get the second set of album thumbnails and show.
Currently this is a postback an...
Hi!
I'd like to get field values corresponding to an arbitrary URL.
I.e. given "http://example.com/hello?q=1&b=1"
I want a dictionary {'q':1, 'b':1}. How do I use cgi.FieldStorage for that?
Thanks!
...
EDIT: I switched back to XHTML 1.0 Transitional. It renders fine, but isn't valid. Help is still appreciated.
Hello.
I am trying to integrate the Facebook plugins into my website, PlugB. To make them validate at W3 validator, I added a XHTML + RDFa doctype. But I am getting errors with Iframes and FBML.
How can I fix this?
http://val...
Is there a way (I assume it would be with javascript) that I can have a checkbox or link on my page that will make all the links on my page have target="_blank"?
I want to have a checkbox that says something like "Open all links in new page/tab" on my site that when checked will change the target and unchecked will put it back to how it...
I am trying to validate the following code with the W3C validator:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Test</title>
</head>
<body>
</body>
</html>
I get two errors:
...
Is it possible to get and place content within an html tag by its class name?
For Example:
<div class='edit'>
Wow! I'm the Content.
</div>
Is it possible to get that value, edit and place it back or a new value to that div etc? If it's possible... will it work if it has multiple classes? Like:
<div class='span-20 edit'>
Wow! I'm the ...
I have a site with a frame:
<frameset cols="69%,31%">
<frame src="main.php" />
<frame src="result.html" />
</frameset>
Its looks like this:
------------|-----------
|
search | result1
| result2
| result3
|
|
|
|
------------|---------
Here ...
Hi,
I don't know what kind of position shall I announce if the parent has a position: absolute.
Here's the code,
<div id="new_map">
<div id="map_nbc_pop">
<div class="nm_bubbletop1"></div>
<div id="nm_bubblebg">
<u...
Ok so above is an image of pretty much what I'm trying to do. You see how the logo has a solid background behind it that reaches to the VERY top of the page (so there's no white at the top)... that's what I'm trying to do.
This is my html for that part:
<body>
<div id="wrapper">
<div id="divider">
<h1>NAME / SLOGAN</h1>
<ul cla...
Hi I have labels beside text boxes in my application. They are contained within a table. In IE6 the labels always appear slightly higher than the textboxes.
Can someone please tell me how to style to fix this?
Thanks!
...
Hi,
I have a an iframe that has a report within it. What I also have, is a feature to allow the user to detach the report within the iframe and open it up in it's own window, using window.open() call.
My problem is, when I press on the detach button, the whole report that initially loaded in the iframe actually goes through the motions...
I want to understand how event binding/unbinding works in browsers. Specifically, if I remove an element that already has an event bound to it, using for example jQuery: $("#anElement").remove();, will the bound event get removed as well?
In other words, if I don't unbind() the event first, am I creating some sort of memory leak?
Edit:...