html

How to have a scrollbar that's not next to the scroll object?

Hi there, I want an overall scrollbar on the rightmost but it will only scroll a div within the Window and everything else stays static. Is this a css thing or a java script thing? I appreciate any help I can get. Thanks. ...

PHP: Truncate HTML, ignoring tags

I want to truncate some text (loaded from a database or text file), but it contains HTML so as a result the tags are included and less text will be returned. This can then result in tags not being closed, or being partially closed (so Tidy may not work properly and there is still less content). How can I truncate based on the text (and p...

Is it possible to display an enumerated list in HTML starting from given position?

I have following list of elements: <ol> <li>First item</li> <li>Second item</li> <li>Third item</li> </ol> I want to display the list starting from 'C', like this: C First item D Second item E Third item Is it possible? Does the list always have to start from '1', 'a', 'A', etc? ...

IE6 bugs! side panel

My right side navigation is pushed down to the bottom on the page for some reason in IE6 but its only on my blog pages! Am I right in thinking its somthing to do with the sidepanels width? http://bradburyembroidery.com/houses4cash/blog/ ...

How can I set a tabindex in a foreach loop in an ASP.NET MVC view?

How can I set the tabindex value of a set of checkboxes within a foreach loop in ASP.NET MVC? My current solution uses a Response.Write to output the checkboxes, but I'd rather find something more elegant. Does anyone have a good solution? This code does not work: <label for="country"> Country: </label> <%= Html.DropDownList("cou...

how can i access dynamically added html tags?

hello, i am self-studying asp.net and was trying some small projects to help understand the concepts better. i am creating a simple e-learning website using html and asp.net(c#), that has a fixed number of multiple choices questionnaire on one of its pages, i create the questionnaire by choosing random questions, out of a database tabl...

HR tag renders white pixel

In IE8 and mozilla 3.5 theres an white pixel to the right. How can i get rid of that? Seting background-color changes nothing. neither does width. hr { border-top: 1px solid #111; border-bottom: 1px solid #444; } This is how it looks right now Thanks alot! ...

how to change html background dynamically

I have a page which has a style like this in a css file: body { background: #000000 url(images/back_all.gif) repeat-x top; font: 12px Tahoma, Arial, Helvetica, sans-serif; color: #666666; } and I have either a javascript which is loaded after window.onload and causes page to be expand vericaly and so the rest of my page wi...

Can Dynamically Generating an HTML Table in ASP.net cause Significant Performance Issues?

I am working on a page with several dynamically generated tables where the original developers used approximately the following logic: <table> <tr>...</tr> <asp:PlaceHolder ID="ph1" runat="server" /> </table> In the code behind: // Do lots of stuff HtmlTableCell cell = new HtmlTableCell(); // set cell text, formatting, etc ph1.Co...

Html LogIn form not functioning

Ok, I have a login form that looks like this: <form id="loginForm" name="loginForm" method="post" action="login-exec.php"> <table width="300" border="0" align="center" cellpadding="2" cellspacing="0"> <tr> <td width="112"><b>Login</b></td> <td width="188"><input name="login" type="text" class="textfield" id="login" /></td> </tr> <tr...

use variable in shtml include statement

I would like to use a path contained in a variable to include a file in an shtml/SSI page. Basically, I would like to set a variable with mod_rewrite first and then process the filename contained in the var. <!--#include virtual="some_variable"--> Is this possible without using another scripting language? ...

Create row ID for dynamic JS Table

Hi, I have working script that the user completes inputs on a form and when they submit the form and the content of the form inputs are entered as a table row. Is there any way of, I think within the JS to make each row have a unique ID and add a delete button to the last colum of each row so the user can delete an individual row. T...

Opening a folder through FireFox with HTML

Hello: I recently built a HTML and Javascript web application that opens specific folders throughout a network of accessible drives. This app works well when it is rendered in IE; however, the folder paths do not work in FireFox. The following is an example of the path format that I am using to open the folders in IE: { window.op...

ASP.NET C# Properly Generating HTML for Page

I realize this is probably a fundamental thing I should know but I am self-teaching myself C# and asp.net so I am a little lost at this point. I right now have 2 pages. One is an .aspx (with aspx.cs file included) that is blank and html is generated for it from a Page_Load function in the cs file. The HTML is very simple and it is jus...

how can one "unstyle" a div html element?

Is there a simple way via CSS or javascript or anything really to take a div and make it not inherit any styles? I'm creating a bookmarklet which adds a header to a website. It modifies the DOM as follows: var bodycontent = document.body.innerHTML; document.body.innerHTML = ''; var header = document.createElement('div'); var bodyconta...

UTF-8 output with CakePHP

Hello! I'm trying to move some Excel-Data to MySQL, but having troubles with encoding. What I did: Data export from OpenOffice 3.1 as csv (utf-8 encoded) Import to phpMyAdmin via file upload (Table encoding: '*utf8_unicode_ci*') In phpMyAdmin's view mode, the data is displayed correctly (it is using utf-8 as charset): <meta http-e...

outer div wrap inner div tightly?

#main .thumbBorder { background-color:#e1e1e1; padding:2px; border:solid 1px #cfcfcf; margin:14px; } #main .thumbnail { background-image:url('http://images.idealer1.com/getimage/188/4937261.jpg'); height:125px; width:188px; } <div class="thumbBorder"> <div class="thumbnail"> </div> </div> What would be ...

How do I prevent my style from being overridden another style on a surrounding div?

It seems elementary, but here is problem. Stylesheet like so: #Content h1, #Content h2, #Content h3, #Content h4, #Content h5, #Content h6 { color: #405679; } h3#issueHeader { color: blue; } HTML like so: <div id="Content"> <h3 id="issueHeader">In This Issue:</h3> </div> Instead of my issueHeader selector overriding the Co...

I have an input box, want text to be just below it

Hi, I have an input box, and I want some nice light grey text right below it (1 line instruction). As of now the text is sitting a lower than I want in relation to the textbox (which is above it). I am doing a clear:both, and if I remove it the next is all the way to the right of the input box. What is wrong here? ...

Using regular expressions to extract the first image source from html codes?

Hello, I would like to know how this can be achieved. Assume: That there's a lot of html code containing tables, divs, images, etc. Problem: How can I get matches of all occurances. More over, to be specific, how can I get the img tag source (src = ?). example: <img src="http://example.com/g.jpg" alt="" /> How can I print out ht...