I have a text input inside a <td> that has a padding of 5px; When setting its width to 100% it comes out of the boundaries of the <td> for 10px. Is there a way to make it fill the entire <td> (i.e. in practice its width should become 100% - 10px) without using JavaScript?
Thanks in advance
...
Is there a way to embed Google Spreadsheets editor with Compact controls (ctrl+shift+f) by default? Maybe there is some url parameter for it?
Or maybe there is ready js library to add simply row-by-row editor on page using Speadsheets API's list-based or table/records feeds?
...
Hi,
I'm having a problem writing a regular expression for matching HTML tags. I found a similar entry here, but this didn't quite work in my case.
Here's my test string:
<div id="div0" class="myclass">here's some text
that may include whitespace</div><div id="div1" class="myclass">
and some more here
</div>
And here's my regex ba...
Please see the form HTML code below
<form method="post" action="register">
<div class="email">
Email <input type="text" tabindex="1" id="email" value="" name="email"> </div>
</div>
<div class="agreement">
<div tabindex="2" class="terms_radio">
<div onclick="changeTerm(thi...
Consider this CSS Property:
background: url(http://images.something.com/background.png) left top repeat-x;
Is there a way to dynamically specify the URL being used in the external file (Meaning the URL is sort of automatically generated rather than hard-coded in the CSS file) ?
Thanks.
...
How can i get current x & y position of my CURSOR within a text area using javascript.
The event is a Keyup event, not a mouse event.
I am not looking for the current cursor position in terms of charecter but x , y coordinates.
...
I have a website where members can input text using a limited subset of HTML. When a page is displayed that contains a user's text, if they have any unclosed tags, the formatting "bleeds" across into the next area. For example, if the user entered:
Hi, my name is <b>John
Then, the rest of the page will be bold.
Ideally, there'd be ...
I have a setup lets say like follows:
<div id="nav">
<div id="innernav">
//With dynamic content here.
</div>
</div>
I am running a script that sizes #nav to the size of the browser window in height. But sometimes my dynamic content is now getting bigger than the height of the window.. Is there a way I can enforce that when...
I found this useful page for learning how to do localization with ExtJS.
How can I apply the same principle to the column headers of a GridPanel?
...
I have a problem with the select box in my application. I specified some width to the select box.
The width of some of the items in the select box is more than the actual width of the select box.
Each browser is treating it differently. I can see a shrink of the select box items in IE 8.
Whereas google chrome and firefox takes the maxim...
How to you define a row in div tags
High level example in pseudo code:
[DIV TAGS LEFT] [DIV TAGS CENTER] [DIV TAGS RIGHT]
[WHAT GOES HERE?????]
[DIV TAGS LEFT] [DIV TAGS CENTER] [DIV TAGS RIGHT]
[WHAT GOES HERE?????]
[DIV TAGS LEFT] [DIV TAGS CENTER] [DIV TAGS RIGHT]
...
how we can restrict a character to type in a text box.
...
I'm developing a typical web application with functions like add, remove, view, search and other yada yada. However, I'm uncertain how much I should rely on dialog boxes. Should I have a dialog box for adding information to the system or perhaps only as a confirmation when deleting something? I could also, for example, use a login dialo...
I am using textarea to capture book description but textarea doesn't have attribute "value", How to pass the value to bean.
But the following mechanism to capture value doesn't seem to work
<textarea cols="80" rows="3" spellcheck="false">#{_book.description}</textarea>
...
How to make transparent background for png image in ie6
Thanx
...
hihi,
I have this html text response from a particular website:
<tr><td valign="top"><img src="/icons/image2.gif" alt="[IMG]"></td><td><a href="crsdsdfs2221.jpg">crash-2221.jpg</a></td><td align="right">14-Jun-2010 14:29
Notice for every line, there is this href=".__", which is an image file with random name and random format. I wo...
Is knowledge of HTML beyond the basics a prerequisite for learning CSS?
I am making a learning plan so this will help me evaluate the time required better.
...
what are the differences between margin and padding.
Thanx
...
Thank you for your help.
My code looks like:
var CatItems = "";
for(var x=0; x < data.PRODUCTS.length; x++) {
if (x % 3 === 0) CatItems += '<li class="jcarousel-item jcarousel-item-horizontal jcarousel-item-'+[x]+' jcarousel-item-'+[x]+'-horizontal jcarousel-item-placeholder jcarousel-item-placeholder-horizontal">';
CatItems += '<div>...
Hi all,
I'm using ASP.Net 4.0 with MVC 2. I'm recieving user content that may or may not be Html Encoded already. I've read http://weblogs.asp.net/scottgu/archive/2010/04/06/new-lt-gt-syntax-for-html-encoding-output-in-asp-net-4-and-asp-net-mvc-2.aspx which was interesting but what I need is a way to ensure the content is encoded withou...