html

Cand I insert all images in HTML from a folder with a single line of code?

I have folder img and inside of the folder I have 200 pictures. Do I have any possibility to insert all the images in a html pages to be shown, without writing this line of code 200 times? <img src="img/ladybug.jpg" alt="Ladybug" title="Ut rutrum, lectus eu pulvinar elementum, lacus urna vestibulum ipsum"></li> ...

Table of width 100% not filling parent <div>

I thought tables are easier to style, but this one got hitting my head. The problem is a table of width 100% is not filling it's parent div. <div style="width:100%; margin-top:20px;"> <div style="width:100%; padding:5px; background:#ccc; font-weight:900;">Table Top</div> <table width="100%" border="0" cellspacing="0" cellpadding...

Why is my "margin: 30px" instruction being ignored?

I'm having difficulty with setting the margin between 2 elements on my page. An example is depicted here: http://jsfiddle.net/fHC9Y/1/ You can see that there's no space between the paging structure under the table and the footer box, where I've specified in the CSS that there should be 30px of space between them. This is an issue in ...

When linking to page with hash in url it flashes the top before jumping to id in IE

We are trying to link to a page and in that link we supply the has to point to an elements id on another page for it to jump immediately down to that element. We know that when checking this functionality on other sites most of the time you don't see the flash of top of the page before the page jumps, we don't know why this might be happ...

Save html page with Silverlight

How can i save html page with silverlight object within? I need to be able later to reopen page and to view sl content. Thanks. ...

Reliable cross-browser info on ContentEditable

Hey All, I am looking for a list of web browsers that fully support using ContentEditable. I know that I.E has supported it since 5 or 5.5, but what about other browsers. I know that the modern versions of Chrome, Flock, Maxthon, Opera and I.E support it. But I don't care about the modern browsers. What about the older versions of them,...

When a span is faded out using JQuery my input box jumps left. How to get it to slide?

Hi, I have a span which contains 2 radio buttons and 2 labels. When a user selects a specific value from a drop down list it is not applicable to have the radio buttons showing so I fade them out. Again when a different value is selected I fade them back in. When I fadeOut the span which contains them the text input box on the right ...

prefilling an iframe form from another domain

Hey, I'm trying to prefill a form that's located in another domain. I have the form in an iframe and I remember that javascript doesn't allow cross domain scripting, so how would I go about filling in a form that's located on another domain? Is it even possible? I want to help my users by pre-filling certain information of the form tha...

Existing List of W3C complient html attribute

It's there a place i can see wich attribute are w3c on all HTML Element, div,p,a,li,hr etc ... I check on w3cshool but find nothing. I need a list where they said someting like ... id : (div, a , hr , etc ...), class (div, a , hr , etc) ... ...

how to combine html forms

How would i combined 2 html forms I am trying to combined to forms that are in different position. so i can post all the data at once. Here is a eg <form action="actions.php"> <input type="text"> <input type="text"> <input type="submit" name="button" id="button" value="submit" /> </form> <form> <input type="text"> <input type="te...

GZIP HTML Files on Hard Disk - not on a web server

Hi, I have quite a few html files with datasets and huge tables and about 8-9 MB in size. These are currently saved on my hard disk and are not being served through a web server. I am looking to deflate/gzip these similar to what a webserver does. The end goal is to reduce the size and when opened in a browser, the file opens and displ...

how to display content with raw html

Hi, @post.body has following content (which is converted from Markdown by using RDiscount).How should I render it to the user in what it means? i.e I want to render it as strong text emphasized text... <p><strong>strong text</strong> </p> <p><em>emphasized text</em> </p> <blockquote> <p>this is a quote</p> </blockquote><p><img src="ht...

How to add contentEditabled div with prototype in IE8

Hi I have the following piece of code: <form action="/fake" > <div id="root"> </div> </form> <script type="text/javascript"> var root = Element.extend($("root")); function addTextControl() { var textCtl = new Element('div', { 'contenteditable': 'true'}).update("Next page"); root.appendChild(textCtl); ...

text with date attached to it.

Hi Friends, I have a text field for documentation, which is working good. Now the problem is whenever user enters some new text into it. I need a date in format(dd.mm.yy), that should be attached to it automatically, with the time stamp. For example, when the user first enters, "Problem with production". then clicks save then it shoul...

osCommerce template system (sts)

hi I found that i can a sysm template STS to design the loock of osCommerce so far I got used to how to use the pre-defined tags. however I am trying to creat the following in the main index page <div class="category"> <ul><li><a href="$gategorylink$"> <img scr="categoryImage" /> </a><li></ul> <!-- all the ...

How does one insert XSLT elements with attributes inside of javascript inside of a html attribute?

Question summary: What changes do I have to make to make the following xslt document valid. The following is a simplified version of a theme document I am trying to modify for a Gizmox WebGUI DataGrid control. The issue I am having with it is the horrendous onclick event attribute on the button element. I have tried the code both this...

Nav menu & CSS spacing issues in IE

A html/CSS problem, if someone would be kind enough to help... I have the following CSS and code for my new menu, but IE8 renders triple the amount of space between lines of text in the menu (span big and small). When I use text-indent on the sub menu items instead of margin, that's when it plays up. IE7 is fine, as is Chrome, Firefox ...

wide table inside div - div not stretching

Probably a dumb question with a simple answer but I can't seem to find a solution I want a parent div to stretch when the child table width goes beyond page width example: http://www.internetmotors.lv/public/table_div_stretch.html what would be the best css solution for this ...

CSS Scrollbar width

Folks, Is it possible to increase the width of scroll on a DIV element placed inside the BODY.( I am not talking about the default scrollbar on the browser itself, This page runs in full screen mode and hence Browser scrollbar never come into picture, the inner DIV element has its own scrollbar.) ...

Designing a HTML tag class in PHP

I've recently learned OOP in PHP,.. and I though I'd try to write a class in PHP that generates tags for forms i.e. something that lets you generate forms. Its probably been done a billion times before/ or isn't a very good idea. I'm just doing it as an exercise. Anyway, how would I go about planning this? $form = new Form_Class($for...